summaryrefslogtreecommitdiffstats
path: root/ash/wm/property_util.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 01:52:16 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-20 01:52:16 +0000
commit14d8e6ad02c6268fcbcb2965a27196d32dd7921c (patch)
tree365a12c3e1af18b2db1911dc04d1814145b905ca /ash/wm/property_util.cc
parent26effd10fe11d820b3040e72d85e00dd3bd524d5 (diff)
downloadchromium_src-14d8e6ad02c6268fcbcb2965a27196d32dd7921c.zip
chromium_src-14d8e6ad02c6268fcbcb2965a27196d32dd7921c.tar.gz
chromium_src-14d8e6ad02c6268fcbcb2965a27196d32dd7921c.tar.bz2
Changes maximize/fullscreen to always reset the restore bounds. Doing
otherwise leads to unexpected behavior. I'm also changing double clicking the caption to go back to restore bounds if set. This too makes things more consistant. BUG=122324 TEST=covered by tests R=jamescook@chromium.org Review URL: https://chromiumcodereview.appspot.com/10803048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/property_util.cc')
-rw-r--r--ash/wm/property_util.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/ash/wm/property_util.cc b/ash/wm/property_util.cc
index 8453ce3..733d1b1 100644
--- a/ash/wm/property_util.cc
+++ b/ash/wm/property_util.cc
@@ -29,11 +29,6 @@ void SetRestoreBoundsInParent(aura::Window* window, const gfx::Rect& bounds) {
new gfx::Rect(ScreenAsh::ConvertRectToScreen(window->parent(), bounds)));
}
-void SetRestoreBoundsIfNotSet(aura::Window* window) {
- if (!GetRestoreBoundsInScreen(window))
- SetRestoreBoundsInParent(window, window->bounds());
-}
-
const gfx::Rect* GetRestoreBoundsInScreen(aura::Window* window) {
return window->GetProperty(aura::client::kRestoreBoundsKey);
}
@@ -49,12 +44,6 @@ void ClearRestoreBounds(aura::Window* window) {
window->ClearProperty(aura::client::kRestoreBoundsKey);
}
-void ToggleMaximizedState(aura::Window* window) {
- window->SetProperty(aura::client::kShowStateKey,
- wm::IsWindowMaximized(window) ? ui::SHOW_STATE_NORMAL
- : ui::SHOW_STATE_MAXIMIZED);
-}
-
void SetTrackedByWorkspace(aura::Window* window, bool value) {
window->SetProperty(internal::kWindowTrackedByWorkspaceKey, value);
}