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

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

Issue 594383002: Change behaviour of the Alt-] and Alt-[ keys so that it cycles through SnapLeft/SnapRight to DockLe… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event
Patch Set: Fix comment Created 6 years, 2 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
« no previous file with comments | « ash/wm/dock/dock_types.h ('k') | ash/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4a918c6cb018165f5e03ac9d13b73e5901ae4375..a7b59d4eeff70e9f48f56a32a1b0b6e0ebead850 100644
--- a/ash/wm/dock/docked_window_layout_manager.h
+++ b/ash/wm/dock/docked_window_layout_manager.h
@@ -121,6 +121,14 @@ 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;
+ }
+
+ void set_event_source(DockedActionSource event_source) {
+ event_source_ = event_source;
+ }
+
// 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 +307,12 @@ 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 to docked layout.
+ DockedAlignment preferred_alignment_;
+
+ // The current event source
+ DockedActionSource event_source_;
+
// The last active window. Used to maintain stacking order even if no windows
// are currently focused.
aura::Window* last_active_window_;
« no previous file with comments | « ash/wm/dock/dock_types.h ('k') | ash/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698