Chromium Code Reviews| Index: ash/wm/dock/docked_window_layout_manager.h |
| diff --git a/ash/wm/dock/docked_window_layout_manager.h b/ash/wm/dock/docked_window_layout_manager.h |
| index 214a7a19da5a810842ca0097f9068813646641aa..8a23ef207e74c1060e3113f3ced84b2d2e577cd5 100644 |
| --- a/ash/wm/dock/docked_window_layout_manager.h |
| +++ b/ash/wm/dock/docked_window_layout_manager.h |
| @@ -118,6 +118,9 @@ class ASH_EXPORT DockedWindowLayoutManager |
| // Used to snap docked windows to the side of screen during drag. |
| DockedAlignment CalculateAlignment() const; |
| + // Set the preferred alignment of the dock |
|
varkha
2014/09/29 21:04:34
s/Set/Sets.
nit: period at the end of the sentence
|
| + void SetPreferredAlignment(DockedAlignment preferred_alignment); |
| + |
| // Returns true when a window can be docked. Windows cannot be docked at the |
| // edge used by the shelf or the edge opposite from existing dock. |
| bool CanDockWindow(aura::Window* window, DockedAlignment desired_alignment); |
| @@ -291,6 +294,9 @@ class ASH_EXPORT DockedWindowLayoutManager |
| // Side of the screen that the dock is positioned at. |
| DockedAlignment alignment_; |
| + // The preferred alignment of the next window to be added. |
| + DockedAlignment preferred_alignment_; |
| + |
| // The last active window. Used to maintain stacking order even if no windows |
| // are currently focused. |
| aura::Window* last_active_window_; |