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

Unified Diff: ash/wm/common/window_positioning_utils.h

Issue 1901773002: Removes most of aura dependencies from DefaultState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wm_window_positioner
Patch Set: nit and merge 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/common/window_parenting_utils.cc ('k') | ash/wm/common/window_positioning_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/window_positioning_utils.h
diff --git a/ash/wm/common/window_positioning_utils.h b/ash/wm/common/window_positioning_utils.h
index 8145082f7890b79376a36c4ae49abb42ceab3a2b..b0ad13501500bd58984b5c76de87bc0ec4c379ee 100644
--- a/ash/wm/common/window_positioning_utils.h
+++ b/ash/wm/common/window_positioning_utils.h
@@ -15,6 +15,8 @@ class Size;
namespace ash {
namespace wm {
+class WmWindow;
+
// We force at least this many DIPs for any window on the screen.
const int kMinimumOnScreenArea = 25;
@@ -38,6 +40,16 @@ ASH_EXPORT void AdjustBoundsToEnsureMinimumWindowVisibility(
const gfx::Rect& visible_area,
gfx::Rect* bounds);
+// Returns the bounds of a left snapped window with default width in parent
+// coordinates.
+ASH_EXPORT gfx::Rect GetDefaultLeftSnappedWindowBoundsInParent(
+ WmWindow* window);
+
+// Returns the bounds of a right snapped window with default width in parent
+// coordinates.
+ASH_EXPORT gfx::Rect GetDefaultRightSnappedWindowBoundsInParent(
+ WmWindow* window);
+
} // namespace wm
} // namespace ash
« no previous file with comments | « ash/wm/common/window_parenting_utils.cc ('k') | ash/wm/common/window_positioning_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698