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 51b302ec3cf0bfeab47e1605d50dc4e2a953afd5..62730f27695681eea7a9a45747df207c716aa800 100644 |
| --- a/ash/wm/dock/docked_window_layout_manager.h |
| +++ b/ash/wm/dock/docked_window_layout_manager.h |
| @@ -107,6 +107,11 @@ class ASH_EXPORT DockedWindowLayoutManager |
| // Records |action| by |source| in UMA. |
| void FinishDragging(DockedAction action, DockedActionSource source); |
| + // Checks the rules and possibly updates the docked layout to match |
| + // the |alignment|. May not apply the |alignment| when |
| + // the current shelf alignment conflicts. Never clears the |alignment_|. |
| + void MaybeSetDesiredDockedAlignment(DockedAlignment alignment); |
| + |
| Shelf* shelf() { return shelf_; } |
| void SetShelf(Shelf* shelf); |
| @@ -183,6 +188,13 @@ class ASH_EXPORT DockedWindowLayoutManager |
| // Ideal (starting) width of the dock. |
| static const int kIdealWidth; |
| + // Return the alignment of the docked windows other than the |child|. |
|
varkha
2014/10/01 18:16:34
nit: Returns
dtapuska
2014/10/01 20:05:08
Done.
|
| + DockedAlignment CalculateAlignmentExcept(const aura::Window* child) const; |
| + |
| + // Determines if the |alignment| is applicable taking into account |
| + // the shelf location. |
|
varkha
2014/10/01 18:16:34
nit: s/location/alignment
dtapuska
2014/10/01 20:05:08
Done.
|
| + bool IsDockedAlignmentValid(DockedAlignment alignment) const; |
| + |
| // Keep at most kMaxVisibleWindows visible in the dock and minimize the rest |
| // (except for |child|). |
| void MaybeMinimizeChildrenExcept(aura::Window* child); |