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 62730f27695681eea7a9a45747df207c716aa800..5b5e1aa137f0ea71700b0d383e34574b20fc36e6 100644 |
| --- a/ash/wm/dock/docked_window_layout_manager.h |
| +++ b/ash/wm/dock/docked_window_layout_manager.h |
| @@ -121,6 +121,10 @@ class ASH_EXPORT DockedWindowLayoutManager |
| // Used to snap docked windows to the side of screen during drag. |
| DockedAlignment CalculateAlignment() const; |
| + void set_preferred_alignment(DockedAlignment preferred_alignment) { |
| + preferred_alignment_ = 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); |
| @@ -299,6 +303,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. |
|
varkha
2014/10/01 19:08:51
nit: s/added/docked or s/added/'added to docked la
dtapuska
2014/10/01 20:17:42
Done.
|
| + DockedAlignment preferred_alignment_; |
| + |
| // The last active window. Used to maintain stacking order even if no windows |
| // are currently focused. |
| aura::Window* last_active_window_; |