| Index: ash/wm/workspace/workspace_layout_manager.h
|
| diff --git a/ash/wm/workspace/workspace_layout_manager.h b/ash/wm/workspace/workspace_layout_manager.h
|
| index 50942682f7dbc7b7ceaca747630290a8dd33d1c2..bbbb61633e97439a9434ca03ed4407935a0ed58a 100644
|
| --- a/ash/wm/workspace/workspace_layout_manager.h
|
| +++ b/ash/wm/workspace/workspace_layout_manager.h
|
| @@ -107,6 +107,24 @@ class ASH_EXPORT WorkspaceLayoutManager
|
| // true is returned. Does nothing otherwise.
|
| bool SetMaximizedOrFullscreenBounds(aura::Window* window);
|
|
|
| + // Enum for bits that contain edges that a window can be stuck to.
|
| + // Multiple edges can be combined in a bitmask
|
| + enum StuckWindowEdges {
|
| + EDGE_NONE = 0,
|
| + EDGE_LEFT = 1,
|
| + EDGE_RIGHT = 2,
|
| + EDGE_TOP = 4,
|
| + EDGE_BOTTOM = 8,
|
| + EDGE_ALL = EDGE_LEFT | EDGE_RIGHT | EDGE_TOP | EDGE_BOTTOM
|
| + };
|
| +
|
| + // set the bitmask with edges
|
| + int CalculateStuckEdges(aura::Window* window);
|
| +
|
| + // restores stuck state for right or bottom edges
|
| + gfx::Rect AdjustWindowBoundsForStuckEdges(aura::Window* window,
|
| + const gfx::Rect& bounds);
|
| +
|
| WorkspaceManager* workspace_manager();
|
|
|
| aura::RootWindow* root_window_;
|
|
|