Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1100)

Unified Diff: ash/wm/dock/docked_window_layout_manager.h

Issue 597683003: Add window states docked; and docked minimized. Add wm window event to set docked and undocked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dock
Patch Set: Address Restore of App Windows and DockLeft/Dock Right issues Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..214a7a19da5a810842ca0097f9068813646641aa 100644
--- a/ash/wm/dock/docked_window_layout_manager.h
+++ b/ash/wm/dock/docked_window_layout_manager.h
@@ -107,6 +107,8 @@ class ASH_EXPORT DockedWindowLayoutManager
// Records |action| by |source| in UMA.
void FinishDragging(DockedAction action, DockedActionSource source);
+ void SetDockedAlignment(DockedAlignment desired_alignment);
varkha 2014/09/29 18:59:28 nit: Not sure if Set is the right name here since
dtapuska 2014/09/29 20:59:57 Done.
+
Shelf* shelf() { return shelf_; }
void SetShelf(Shelf* shelf);
@@ -183,6 +185,8 @@ class ASH_EXPORT DockedWindowLayoutManager
// Ideal (starting) width of the dock.
static const int kIdealWidth;
+ DockedAlignment CalculateAlignment(const aura::Window* query_window) const;
varkha 2014/09/29 18:59:28 CalculateAlignment name is already used and is pub
dtapuska 2014/09/29 20:59:57 Done.
+
// Keep at most kMaxVisibleWindows visible in the dock and minimize the rest
// (except for |child|).
void MaybeMinimizeChildrenExcept(aura::Window* child);

Powered by Google App Engine
This is Rietveld 408576698