Chromium Code Reviews| 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; |
|
flackr
2013/11/06 21:41:41
Making this externally visible doesn't seem to be
varkha
2013/11/06 22:40:15
This was to maintain snapping when kAshEnableStick
|
| + |
| // 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); |
| }; |