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

Unified Diff: ash/wm/wm_event.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/panels/panel_layout_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/wm_event.h
diff --git a/ash/wm/wm_event.h b/ash/wm/wm_event.h
index c4fade4e4c562497e5bc36b18e3d9df87fcc85c8..ad64a21196a8ae0a6782984df6cc065b470afa3f 100644
--- a/ash/wm/wm_event.h
+++ b/ash/wm/wm_event.h
@@ -54,6 +54,19 @@ enum WMEventType {
// A user requested to toggle fullscreen state.
WM_EVENT_TOGGLE_FULLSCREEN,
+ // A user requested a cycle of dock and snap left.
+ // The way this event is processed is the current window state is used as
+ // the starting state. Assuming normal window start state; if the window can
+ // be snapped left, snap it; otherwise progress to next state. If the window
+ // can be docked left, dock it; otherwise progress to next state. If the
+ // window can be restored; and this isn't the entry condition restore it;
+ // otherwise apply the bounce animation to the window.
+ WM_EVENT_CYCLE_SNAP_DOCK_LEFT,
+
+ // A user requested a cycle of dock and snap right.
+ // See decription of WM_EVENT_CYCLE_SNAP_DOCK_LEFT.
+ WM_EVENT_CYCLE_SNAP_DOCK_RIGHT,
+
// A user requested to center a window.
WM_EVENT_CENTER,
« no previous file with comments | « ash/wm/panels/panel_layout_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698