summaryrefslogtreecommitdiffstats
path: root/ash/wm/window_properties.h
diff options
context:
space:
mode:
authorskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-06 03:11:06 +0000
committerskuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-06 03:11:06 +0000
commit20e38a0d55bec21a582b9c414381439c8152c57c (patch)
tree155cac7d878080f8677444e8fa30e93eca3141cd /ash/wm/window_properties.h
parente954c09fbd2537919137a3bd2431c37d32b30068 (diff)
downloadchromium_src-20e38a0d55bec21a582b9c414381439c8152c57c.zip
chromium_src-20e38a0d55bec21a582b9c414381439c8152c57c.tar.gz
chromium_src-20e38a0d55bec21a582b9c414381439c8152c57c.tar.bz2
Adding persistence of user defined window positions / sizes to return to that state if only a single window is left on the destop.
BUG=153431 TEST=unit tests & visual Review URL: https://chromiumcodereview.appspot.com/11365012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/window_properties.h')
-rw-r--r--ash/wm/window_properties.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ash/wm/window_properties.h b/ash/wm/window_properties.h
index 0d2bff3..3e8e71b 100644
--- a/ash/wm/window_properties.h
+++ b/ash/wm/window_properties.h
@@ -11,6 +11,10 @@
#include "ui/aura/window.h"
#include "ui/base/ui_base_types.h"
+namespace gfx {
+class Rect;
+}
+
namespace ui_controls {
class UIControlsAura;
}
@@ -71,6 +75,12 @@ extern const aura::WindowProperty<ui_controls::UIControlsAura*>* const
ASH_EXPORT extern const aura::WindowProperty<bool>* const
kUserChangedWindowPositionOrSizeKey;
+// A property to remember the window position which was set before the
+// auto window position manager changed the window bounds, so that it can get
+// restored when only this one window gets shown.
+ASH_EXPORT extern const aura::WindowProperty<gfx::Rect*>* const
+ kPreAutoManagedWindowBoundsKey;
+
// Property to tell if the container uses the screen coordinates.
extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey;