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

Side by Side Diff: ash/common/shell_window_ids.h

Issue 2033843003: Makes ash/mus use RootWindowControllerCommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_mash_wm
Patch Set: tweaks Created 4 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_SHELL_WINDOW_IDS_H_ 5 #ifndef ASH_COMMON_SHELL_WINDOW_IDS_H_
6 #define ASH_COMMON_SHELL_WINDOW_IDS_H_ 6 #define ASH_COMMON_SHELL_WINDOW_IDS_H_
7 7
8 // Declarations of ids of special shell windows. 8 // Declarations of ids of special shell windows.
9 9
10 namespace ash { 10 namespace ash {
11 11
12 // Used to indicate no shell window id.
13 const int kShellWindowId_Invalid = -1;
14
12 // A higher-level container that holds all of the containers stacked below 15 // A higher-level container that holds all of the containers stacked below
13 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for 16 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for
14 // animating lower-level containers. 17 // animating lower-level containers.
15 const int kShellWindowId_NonLockScreenContainersContainer = 0; 18 const int kShellWindowId_NonLockScreenContainersContainer = 0;
16 19
17 // A higher-level container that holds containers that hold lock-screen 20 // A higher-level container that holds containers that hold lock-screen
18 // windows. Only used by PowerButtonController for animating lower-level 21 // windows. Only used by PowerButtonController for animating lower-level
19 // containers. 22 // containers.
20 const int kShellWindowId_LockScreenContainersContainer = 1; 23 const int kShellWindowId_LockScreenContainersContainer = 1;
21 24
22 // A higher-level container that holds containers that hold lock-screen-related 25 // A higher-level container that holds containers that hold lock-screen-related
23 // windows (which we want to display while the screen is locked; effectively 26 // windows (which we want to display while the screen is locked; effectively
24 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used 27 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used
25 // by PowerButtonController for animating lower-level containers. 28 // by PowerButtonController for animating lower-level containers.
26 const int kShellWindowId_LockScreenRelatedContainersContainer = 2; 29 const int kShellWindowId_LockScreenRelatedContainersContainer = 2;
27 30
28 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. 31 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent.
29 // This container is not visible. 32 // This container is not visible.
30 const int kShellWindowId_UnparentedControlContainer = 3; 33 const int kShellWindowId_UnparentedControlContainer = 3;
31 34
32 // The desktop background window. 35 // The desktop background window.
33 const int kShellWindowId_DesktopBackgroundContainer = 4; 36 const int kShellWindowId_DesktopBackgroundContainer = 4;
34 37
35 // The virtual keyboard container. 38 // The virtual keyboard container.
39 // NOTE: this is lazily created.
36 const int kShellWindowId_VirtualKeyboardContainer = 5; 40 const int kShellWindowId_VirtualKeyboardContainer = 5;
37 41
38 // The container for standard top-level windows. 42 // The container for standard top-level windows.
39 const int kShellWindowId_DefaultContainer = 6; 43 const int kShellWindowId_DefaultContainer = 6;
40 44
41 // The container for top-level windows with the 'always-on-top' flag set. 45 // The container for top-level windows with the 'always-on-top' flag set.
42 const int kShellWindowId_AlwaysOnTopContainer = 7; 46 const int kShellWindowId_AlwaysOnTopContainer = 7;
43 47
44 // The container for windows docked to either side of the desktop. 48 // The container for windows docked to either side of the desktop.
45 const int kShellWindowId_DockedContainer = 8; 49 const int kShellWindowId_DockedContainer = 8;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 96
93 // ID of the window created by PhantomWindowController or DragWindowController. 97 // ID of the window created by PhantomWindowController or DragWindowController.
94 const int kShellWindowId_PhantomWindow = 23; 98 const int kShellWindowId_PhantomWindow = 23;
95 99
96 // The container for mouse cursor. 100 // The container for mouse cursor.
97 const int kShellWindowId_MouseCursorContainer = 24; 101 const int kShellWindowId_MouseCursorContainer = 24;
98 102
99 // The topmost container, used for power off animation. 103 // The topmost container, used for power off animation.
100 const int kShellWindowId_PowerButtonAnimationContainer = 25; 104 const int kShellWindowId_PowerButtonAnimationContainer = 25;
101 105
106 const int kShellWindowId_Min = 0;
107 const int kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer;
108
102 // TODO(sky): remove. Temporary for rietveld to pick up file move rather than 109 // TODO(sky): remove. Temporary for rietveld to pick up file move rather than
103 // new file. 110 // new file.
104 111
105 static_assert((kShellWindowId_UnparentedControlContainer - 1 == 112 static_assert((kShellWindowId_UnparentedControlContainer - 1 ==
106 kShellWindowId_LockScreenRelatedContainersContainer) && 113 kShellWindowId_LockScreenRelatedContainersContainer) &&
107 (kShellWindowId_UnparentedControlContainer + 1 == 114 (kShellWindowId_UnparentedControlContainer + 1 ==
108 kShellWindowId_DesktopBackgroundContainer), 115 kShellWindowId_DesktopBackgroundContainer),
109 "unparented-control between lock-screen-related and " 116 "unparented-control between lock-screen-related and "
110 "desktop-background"); 117 "desktop-background");
111 118
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 191
185 static_assert((kShellWindowId_PhantomWindow - 1 == 192 static_assert((kShellWindowId_PhantomWindow - 1 ==
186 kShellWindowId_OverlayContainer) && 193 kShellWindowId_OverlayContainer) &&
187 (kShellWindowId_PhantomWindow + 1 == 194 (kShellWindowId_PhantomWindow + 1 ==
188 kShellWindowId_MouseCursorContainer), 195 kShellWindowId_MouseCursorContainer),
189 "phantom between overlay and mouse-cursor"); 196 "phantom between overlay and mouse-cursor");
190 197
191 } // namespace ash 198 } // namespace ash
192 199
193 #endif // ASH_COMMON_SHELL_WINDOW_IDS_H_ 200 #endif // ASH_COMMON_SHELL_WINDOW_IDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698