summaryrefslogtreecommitdiffstats
path: root/ash/wm/window_util.h
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-20 04:36:34 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-20 04:36:34 +0000
commita41b4e1e294a336a0e9589b432bb02d76121daca (patch)
tree5295194b4966e4a0e046ebfc32f0fba6da9504b7 /ash/wm/window_util.h
parent67ca0eb3295d44f3e347557152ac58b88c4efdc2 (diff)
downloadchromium_src-a41b4e1e294a336a0e9589b432bb02d76121daca.zip
chromium_src-a41b4e1e294a336a0e9589b432bb02d76121daca.tar.gz
chromium_src-a41b4e1e294a336a0e9589b432bb02d76121daca.tar.bz2
Rename WindowSettings to WindowState
Move window control methods from window_util.h to WindowState Removed property_util which is no longer necessary. BUG=272460 Review URL: https://chromiumcodereview.appspot.com/24108003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/window_util.h')
-rw-r--r--ash/wm/window_util.h52
1 files changed, 3 insertions, 49 deletions
diff --git a/ash/wm/window_util.h b/ash/wm/window_util.h
index a911099..7c8ffe9 100644
--- a/ash/wm/window_util.h
+++ b/ash/wm/window_util.h
@@ -27,7 +27,7 @@ const int kMinimumOnScreenArea = 10;
namespace wm {
-// Convenience setters/getters for |aura::client::kRootWindowActiveWindow|.
+// Utility functions for window activation.
ASH_EXPORT void ActivateWindow(aura::Window* window);
ASH_EXPORT void DeactivateWindow(aura::Window* window);
ASH_EXPORT bool IsActiveWindow(aura::Window* window);
@@ -41,44 +41,8 @@ ASH_EXPORT bool CanActivateWindow(aura::Window* window);
// this is probably what you're looking for.
ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window);
-// Returns true if |window| can be maximized.
-ASH_EXPORT bool CanMaximizeWindow(const aura::Window* window);
-
-// Returns true if |window| can be minimized.
-ASH_EXPORT bool CanMinimizeWindow(const aura::Window* window);
-
-// Returns true if |window| can be resized.
-ASH_EXPORT bool CanResizeWindow(const aura::Window* window);
-
-// Returns true if |window| can be snapped to the left or right.
-ASH_EXPORT bool CanSnapWindow(aura::Window* window);
-
-// Returns true if |window| is normal or default.
-ASH_EXPORT bool IsWindowNormal(const aura::Window* window);
-
-// Returns true if |state| is normal or default.
-ASH_EXPORT bool IsWindowStateNormal(const ui::WindowShowState state);
-
-// Returns true if |window| is in the maximized state.
-ASH_EXPORT bool IsWindowMaximized(const aura::Window* window);
-
-// Returns true if |window| is minimized.
-ASH_EXPORT bool IsWindowMinimized(const aura::Window* window);
-
-// Returns true if |window| is in the fullscreen state.
-ASH_EXPORT bool IsWindowFullscreen(const aura::Window* window);
-
-// Maximizes |window|, which must not be NULL.
-ASH_EXPORT void MaximizeWindow(aura::Window* window);
-
-// Minimizes |window|, which must not be NULL.
-ASH_EXPORT void MinimizeWindow(aura::Window* window);
-
-// Restores |window|, which must not be NULL.
-ASH_EXPORT void RestoreWindow(aura::Window* window);
-
-// Maximizes or restores |window| based on its state. |window| must not be NULL.
-ASH_EXPORT void ToggleMaximizedWindow(aura::Window* window);
+// TODO(oshima): remove this.
+ASH_EXPORT bool IsWindowMinimized(aura::Window* window);
// Moves the window to the center of the display.
ASH_EXPORT void CenterWindow(aura::Window* window);
@@ -86,16 +50,6 @@ ASH_EXPORT void CenterWindow(aura::Window* window);
// Change the availability of animation to the fullscreen of the |window|.
ASH_EXPORT void SetAnimateToFullscreen(aura::Window* window, bool animate);
-// Get |window| bounds of the window before it was moved by the auto window
-// management. As long as it was not managed, it will return NULL.
-ASH_EXPORT const gfx::Rect* GetPreAutoManageWindowBounds(
- const aura::Window* window);
-
-// Remember the |bounds| of a |window| before an automated window management
-// operation takes place.
-ASH_EXPORT void SetPreAutoManageWindowBounds(aura::Window* window,
- const gfx::Rect& bounds);
-
// Move the given bounds inside the given |visible_area|, including a
// safety margin given by |kMinimumOnScreenArea|.
ASH_EXPORT void AdjustBoundsToEnsureMinimumWindowVisibility(