diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-11 03:09:27 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-11 03:09:27 +0000 |
commit | 9aac22a97a65239b84964bc12b917403bbf39bc2 (patch) | |
tree | 5bcc0fa6a63a07c2a6cc4c65e6158dc199eb22e6 /ash/wm/property_util.h | |
parent | cf118b96d96263228cb386b88edfb0518ccfd771 (diff) | |
download | chromium_src-9aac22a97a65239b84964bc12b917403bbf39bc2.zip chromium_src-9aac22a97a65239b84964bc12b917403bbf39bc2.tar.gz chromium_src-9aac22a97a65239b84964bc12b917403bbf39bc2.tar.bz2 |
ash: Allow enforcing the window-restore bounds when restoring from a minimized state.
BUG=151267
Review URL: https://codereview.chromium.org/11468032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/property_util.h')
-rw-r--r-- | ash/wm/property_util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ash/wm/property_util.h b/ash/wm/property_util.h index 48f6e53..0d70fb4 100644 --- a/ash/wm/property_util.h +++ b/ash/wm/property_util.h @@ -52,6 +52,16 @@ enum WindowPersistsAcrossAllWorkspacesType { ASH_EXPORT void SetIgnoredByShelf(aura::Window* window, bool value); ASH_EXPORT bool GetIgnoredByShelf(const aura::Window* window); +// Sets whether |window| should always be restored to the restore bounds +// (sometimes the workspace layout manager restores the window to its original +// bounds instead of the restore bounds. Setting this key overrides that +// behaviour). The flag is reset to the default value after the window is +// restored. +ASH_EXPORT void SetWindowAlwaysRestoresToRestoreBounds(aura::Window* window, + bool value); +ASH_EXPORT bool GetWindowAlwaysRestoresToRestoreBounds( + const aura::Window* window); + // Sets whether the specified window is tracked by workspace code. Default is // true. If set to false the workspace does not switch the current workspace, // nor does it attempt to impose constraints on the bounds of the window. This |