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

Side by Side 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: Use Compound Events for snap/dock as per oshima's request 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_WM_EVENT_H_ 5 #ifndef ASH_WM_WM_EVENT_H_
6 #define ASH_WM_WM_EVENT_H_ 6 #define ASH_WM_WM_EVENT_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/wm_types.h" 9 #include "ash/wm/wm_types.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // top/bottom edge. 47 // top/bottom edge.
48 WM_EVENT_TOGGLE_VERTICAL_MAXIMIZE, 48 WM_EVENT_TOGGLE_VERTICAL_MAXIMIZE,
49 49
50 // A user requested to toggle horizontal maximize by double clicking 50 // A user requested to toggle horizontal maximize by double clicking
51 // left/right edge. 51 // left/right edge.
52 WM_EVENT_TOGGLE_HORIZONTAL_MAXIMIZE, 52 WM_EVENT_TOGGLE_HORIZONTAL_MAXIMIZE,
53 53
54 // A user requested to toggle fullscreen state. 54 // A user requested to toggle fullscreen state.
55 WM_EVENT_TOGGLE_FULLSCREEN, 55 WM_EVENT_TOGGLE_FULLSCREEN,
56 56
57 // A user requested a toggle of dock and snap left
varkha 2014/10/02 22:17:59 I think this would be a good place to describe the
dtapuska 2014/10/03 15:44:59 Done.
58 WM_EVENT_TOGGLE_SNAP_DOCK_LEFT,
oshima 2014/10/02 21:58:41 nit: CYCLE_
dtapuska 2014/10/03 15:44:59 Done.
59
60 // A user requested a toggle of dock and snap right
61 WM_EVENT_TOGGLE_SNAP_DOCK_RIGHT,
62
57 // A user requested to center a window. 63 // A user requested to center a window.
58 WM_EVENT_CENTER, 64 WM_EVENT_CENTER,
59 65
60 // TODO(oshima): Investigate if this can be removed from ash. 66 // TODO(oshima): Investigate if this can be removed from ash.
61 // Widget requested to show in inactive state. 67 // Widget requested to show in inactive state.
62 WM_EVENT_SHOW_INACTIVE, 68 WM_EVENT_SHOW_INACTIVE,
63 69
64 // Following events are generated when the workspace envrionment has changed. 70 // Following events are generated when the workspace envrionment has changed.
65 // The window's state type will not be changed by these events. 71 // The window's state type will not be changed by these events.
66 72
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 gfx::Rect requested_bounds_; 106 gfx::Rect requested_bounds_;
101 107
102 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent); 108 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent);
103 }; 109 };
104 110
105 } // namespace wm 111 } // namespace wm
106 } // namespace ash 112 } // namespace ash
107 113
108 #endif // ASH_WM_WM_EVENT_H_ 114 #endif // ASH_WM_WM_EVENT_H_
109 115
OLDNEW
« ash/wm/default_state.cc ('K') | « 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