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

Unified Diff: ash/wm/workspace/workspace_window_resizer.h

Issue 55363004: Enables docked windows by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enables docked windows by default Created 7 years, 1 month 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
Index: ash/wm/workspace/workspace_window_resizer.h
diff --git a/ash/wm/workspace/workspace_window_resizer.h b/ash/wm/workspace/workspace_window_resizer.h
index 5acaf8e5b0ddab5b57c252fb5e762a5c97f72079..d393f1f71d4e046172ad817e0ba2b096000ae9f3 100644
--- a/ash/wm/workspace/workspace_window_resizer.h
+++ b/ash/wm/workspace/workspace_window_resizer.h
@@ -134,6 +134,9 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
// snapping.
void AdjustBoundsForMainWindow(int snap_size, gfx::Rect* bounds);
+ // Returns true if the window should stick to the edge.
+ bool ShouldStickToEdge(int distance_from_edge, int sticky_size) const;
+
// Stick the window bounds to the work area during a move.
bool StickToWorkAreaOnMove(const gfx::Rect& work_area,
int sticky_size,
@@ -221,6 +224,9 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
// gets dragged into another browser window.
base::WeakPtrFactory<WorkspaceWindowResizer> weak_ptr_factory_;
+ // Current instance for use by the WorkspaceWindowResizerTest.
+ static WorkspaceWindowResizer* instance_;
+
DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer);
};

Powered by Google App Engine
This is Rietveld 408576698