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

Side by Side Diff: ash/wm/wm_event.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: Pull forward a change from the dependant CL to this 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
« no previous file with comments | « ash/wm/window_state.cc ('k') | ash/wm/wm_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 11
12 namespace ash { 12 namespace ash {
13 namespace wm { 13 namespace wm {
14 14
15 // WMEventType defines a set of operations that can change the 15 // WMEventType defines a set of operations that can change the
16 // window's state type and bounds. 16 // window's state type and bounds.
17 enum WMEventType { 17 enum WMEventType {
18 // Following events are the request to become corresponding state. 18 // Following events are the request to become corresponding state.
19 // Note that this does not mean the window will be in corresponding 19 // Note that this does not mean the window will be in corresponding
20 // state and the request may not be fullfilled. 20 // state and the request may not be fullfilled.
21 21
22 // NORMAL is used as a restore operation with a few exceptions. 22 // NORMAL is used as a restore operation with a few exceptions.
23 WM_EVENT_NORMAL, 23 WM_EVENT_NORMAL,
24 WM_EVENT_MAXIMIZE, 24 WM_EVENT_MAXIMIZE,
25 WM_EVENT_MINIMIZE, 25 WM_EVENT_MINIMIZE,
26 WM_EVENT_FULLSCREEN, 26 WM_EVENT_FULLSCREEN,
27 WM_EVENT_SNAP_LEFT, 27 WM_EVENT_SNAP_LEFT,
28 WM_EVENT_SNAP_RIGHT, 28 WM_EVENT_SNAP_RIGHT,
29 WM_EVENT_DOCK,
29 30
30 // A window is requested to be the given bounds. The request may or 31 // A window is requested to be the given bounds. The request may or
31 // may not be fulfilled depending on the requested bounds and window's 32 // may not be fulfilled depending on the requested bounds and window's
32 // state. This will not change the window state type. 33 // state. This will not change the window state type.
33 WM_EVENT_SET_BOUNDS, 34 WM_EVENT_SET_BOUNDS,
34 35
35 // Following events are compond events which may lead to different 36 // Following events are compond events which may lead to different
36 // states depending on the current state. 37 // states depending on the current state.
37 38
38 // A user requested to toggle maximized state by double clicking window 39 // A user requested to toggle maximized state by double clicking window
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 gfx::Rect requested_bounds_; 100 gfx::Rect requested_bounds_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent); 102 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent);
102 }; 103 };
103 104
104 } // namespace wm 105 } // namespace wm
105 } // namespace ash 106 } // namespace ash
106 107
107 #endif // ASH_WM_WM_EVENT_H_ 108 #endif // ASH_WM_WM_EVENT_H_
108 109
OLDNEW
« no previous file with comments | « ash/wm/window_state.cc ('k') | ash/wm/wm_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698