diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-15 04:36:43 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-15 04:36:43 +0000 |
commit | 1dfd402217ff6af094c8077823edd184aa6319e6 (patch) | |
tree | 6784dae2c1e0d1c6ba235608f3669d9333f17474 /ash/wm/property_util.cc | |
parent | 5132e942aece67587f1395cefb3982c7d338bace (diff) | |
download | chromium_src-1dfd402217ff6af094c8077823edd184aa6319e6.zip chromium_src-1dfd402217ff6af094c8077823edd184aa6319e6.tar.gz chromium_src-1dfd402217ff6af094c8077823edd184aa6319e6.tar.bz2 |
Moves window dragging/resizing logic into standalone class. I've got
some more cleanup to do in WorkspaceEventFilter, but I'll do that
separately.
BUG=111285
TEST=none
R=ben@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9368057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122043 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/property_util.cc')
-rw-r--r-- | ash/wm/property_util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ash/wm/property_util.cc b/ash/wm/property_util.cc index 4975f35..4ae645b 100644 --- a/ash/wm/property_util.cc +++ b/ash/wm/property_util.cc @@ -4,6 +4,7 @@ #include "ash/wm/property_util.h" +#include "ash/wm/window_util.h" #include "ui/aura/client/aura_constants.h" #include "ui/aura/window.h" #include "ui/base/ui_base_types.h" @@ -30,4 +31,10 @@ void ClearRestoreBounds(aura::Window* window) { window->ClearProperty(aura::client::kRestoreBoundsKey); } +void ToggleMaximizedState(aura::Window* window) { + window->SetProperty(aura::client::kShowStateKey, + window_util::IsWindowMaximized(window) ? + ui::SHOW_STATE_NORMAL : ui::SHOW_STATE_MAXIMIZED); +} + } |