Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Unified Diff: ash/wm/window_util.h

Issue 1890713002: Adds WmWindow and converts WindowState to use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/window_state_util.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_util.h
diff --git a/ash/wm/window_util.h b/ash/wm/window_util.h
index e1240ae22d46d160ba8dc48dd012e555d38890ed..d8f861bfba3cd56f8b8b00f9e95ab526323bfbc0 100644
--- a/ash/wm/window_util.h
+++ b/ash/wm/window_util.h
@@ -29,6 +29,8 @@ const int kMinimumOnScreenArea = 25;
namespace wm {
+class WmWindow;
+
// Utility functions for window activation.
ASH_EXPORT void ActivateWindow(aura::Window* window);
ASH_EXPORT void DeactivateWindow(aura::Window* window);
@@ -52,6 +54,11 @@ ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window);
// Moves the window to the center of the display.
ASH_EXPORT void CenterWindow(aura::Window* window);
+ASH_EXPORT gfx::Rect GetDefaultLeftSnappedWindowBoundsInParent(
+ wm::WmWindow* window);
+ASH_EXPORT gfx::Rect GetDefaultRightSnappedWindowBoundsInParent(
+ wm::WmWindow* window);
+
// Returns the bounds of a left snapped window with default width in parent
// coordinates.
ASH_EXPORT gfx::Rect GetDefaultLeftSnappedWindowBoundsInParent(
« no previous file with comments | « ash/wm/window_state_util.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698