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

Side by Side Diff: ash/shell_window_ids.h

Issue 1954523002: Refactors StackingController::GetDefaultParent to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk Created 4 years, 7 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_SHELL_WINDOW_IDS_H_ 5 #ifndef ASH_SHELL_WINDOW_IDS_H_
6 #define ASH_SHELL_WINDOW_IDS_H_ 6 #define ASH_SHELL_WINDOW_IDS_H_
7 7
8 #include "ash/wm/common/wm_shell_window_ids.h" 8 #include "ash/wm/common/wm_shell_window_ids.h"
9 9
10 // Declarations of ids of special shell windows. 10 // Declarations of ids of special shell windows.
(...skipping 10 matching lines...) Expand all
21 // containers. 21 // containers.
22 const int kShellWindowId_LockScreenContainersContainer = 1; 22 const int kShellWindowId_LockScreenContainersContainer = 1;
23 23
24 // A higher-level container that holds containers that hold lock-screen-related 24 // A higher-level container that holds containers that hold lock-screen-related
25 // windows (which we want to display while the screen is locked; effectively 25 // windows (which we want to display while the screen is locked; effectively
26 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used 26 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used
27 // by PowerButtonController for animating lower-level containers. 27 // by PowerButtonController for animating lower-level containers.
28 const int kShellWindowId_LockScreenRelatedContainersContainer = 2; 28 const int kShellWindowId_LockScreenRelatedContainersContainer = 2;
29 29
30 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. 30 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent.
31 // This container is not visible. 31 // This container is not visible. Defined in wm_shell_window_ids.
32 const int kShellWindowId_UnparentedControlContainer = 3; 32 // kShellWindowId_UnparentedControlContainer = 3;
33 33
34 // The desktop background window. 34 // The desktop background window.
35 const int kShellWindowId_DesktopBackgroundContainer = 4; 35 const int kShellWindowId_DesktopBackgroundContainer = 4;
36 36
37 // The virtual keyboard container. 37 // The virtual keyboard container.
38 const int kShellWindowId_VirtualKeyboardContainer = 5; 38 const int kShellWindowId_VirtualKeyboardContainer = 5;
39 39
40 // The container for standard top-level windows. Defined in wm_shell_window_ids. 40 // The container for standard top-level windows. Defined in wm_shell_window_ids.
41 // kShellWindowId_DefaultContainer = 6; 41 // kShellWindowId_DefaultContainer = 6;
42 42
43 // The container for top-level windows with the 'always-on-top' flag set. 43 // The container for top-level windows with the 'always-on-top' flag set.
44 // kShellWindowId_AlwaysOnTopContainer = 7; 44 // kShellWindowId_AlwaysOnTopContainer = 7;
45 45
46 // The container for windows docked to either side of the desktop. Defined in 46 // The container for windows docked to either side of the desktop. Defined in
47 // wm_shell_window_ids. 47 // wm_shell_window_ids.
48 // kShellWindowId_DockedContainer = 8; 48 // kShellWindowId_DockedContainer = 8;
49 49
50 // The container for the shelf. Defined in wm_shell_window_ids. 50 // The container for the shelf. Defined in wm_shell_window_ids.
51 // kShellWindowId_ShelfContainer = 9; 51 // kShellWindowId_ShelfContainer = 9;
52 52
53 // The container for bubbles which float over the shelf. 53 // The container for bubbles which float over the shelf.
54 const int kShellWindowId_ShelfBubbleContainer = 10; 54 const int kShellWindowId_ShelfBubbleContainer = 10;
55 55
56 // The container for panel windows. Defined in wm_shell_window_ids. 56 // The container for panel windows. Defined in wm_shell_window_ids.
57 // kShellWindowId_PanelContainer = 11; 57 // kShellWindowId_PanelContainer = 11;
58 58
59 // The container for the app list. Defined in wm_shell_window_ids. 59 // The container for the app list. Defined in wm_shell_window_ids.
60 // kShellWindowId_AppListContainer = 12; 60 // kShellWindowId_AppListContainer = 12;
61 61
62 // The container for user-specific modal windows. 62 // The container for user-specific modal windows. Defined in
63 const int kShellWindowId_SystemModalContainer = 13; 63 // wm_shell_window_ids
64 // kShellWindowId_SystemModalContainer = 13;
64 65
65 // The container for the lock screen background. 66 // The container for the lock screen background.
66 const int kShellWindowId_LockScreenBackgroundContainer = 14; 67 const int kShellWindowId_LockScreenBackgroundContainer = 14;
67 68
68 // The container for the lock screen. 69 // The container for the lock screen. Defined in wm_shell_window_ids.
69 const int kShellWindowId_LockScreenContainer = 15; 70 // kShellWindowId_LockScreenContainer = 15;
70 71
71 // The container for the lock screen modal windows. 72 // The container for the lock screen modal windows. Defined in
72 const int kShellWindowId_LockSystemModalContainer = 16; 73 // wm_shell_window_ids.
74 // kShellWindowId_LockSystemModalContainer = 16;
73 75
74 // The container for the status area. 76 // The container for the status area.
75 const int kShellWindowId_StatusContainer = 17; 77 const int kShellWindowId_StatusContainer = 17;
76 78
77 // A parent container that holds the virtual keyboard container and ime windows 79 // A parent container that holds the virtual keyboard container and ime windows
78 // if any. This is to ensure that the virtual keyboard or ime window is stacked 80 // if any. This is to ensure that the virtual keyboard or ime window is stacked
79 // above most containers but below the mouse cursor and the power off animation. 81 // above most containers but below the mouse cursor and the power off animation.
80 const int kShellWindowId_ImeWindowParentContainer = 18; 82 const int kShellWindowId_ImeWindowParentContainer = 18;
81 83
82 // The container for menus. 84 // The container for menus. Defined in wm_shell_window_ids.
83 const int kShellWindowId_MenuContainer = 19; 85 // kShellWindowId_MenuContainer = 19;
84 86
85 // The container for drag/drop images and tooltips. 87 // The container for drag/drop images and tooltips. Defined in
86 const int kShellWindowId_DragImageAndTooltipContainer = 20; 88 // wm_shell_window_ids.
89 // const int kShellWindowId_DragImageAndTooltipContainer = 20;
87 90
88 // The container for bubbles briefly overlaid onscreen to show settings changes 91 // The container for bubbles briefly overlaid onscreen to show settings changes
89 // (volume, brightness, input method bubbles, etc.). 92 // (volume, brightness, input method bubbles, etc.).
90 const int kShellWindowId_SettingBubbleContainer = 21; 93 const int kShellWindowId_SettingBubbleContainer = 21;
91 94
92 // The container for special components overlaid onscreen, such as the 95 // The container for special components overlaid onscreen, such as the
93 // region selector for partial screenshots. 96 // region selector for partial screenshots.
94 const int kShellWindowId_OverlayContainer = 22; 97 const int kShellWindowId_OverlayContainer = 22;
95 98
96 // ID of the window created by PhantomWindowController or DragWindowController. 99 // ID of the window created by PhantomWindowController or DragWindowController.
97 // Defined in wm_shell_window_ids. 100 // Defined in wm_shell_window_ids.
98 // kShellWindowId_PhantomWindow = 23; 101 // kShellWindowId_PhantomWindow = 23;
99 102
100 // The container for mouse cursor. 103 // The container for mouse cursor.
101 const int kShellWindowId_MouseCursorContainer = 24; 104 const int kShellWindowId_MouseCursorContainer = 24;
102 105
103 // The topmost container, used for power off animation. 106 // The topmost container, used for power off animation.
104 const int kShellWindowId_PowerButtonAnimationContainer = 25; 107 const int kShellWindowId_PowerButtonAnimationContainer = 25;
105 108
109 static_assert((kShellWindowId_UnparentedControlContainer - 1 ==
110 kShellWindowId_LockScreenRelatedContainersContainer) &&
111 (kShellWindowId_UnparentedControlContainer + 1 ==
112 kShellWindowId_DesktopBackgroundContainer),
113 "unparented-control between lock-screen-related and "
114 "desktop-background");
115
106 static_assert((kShellWindowId_DefaultContainer - 1 == 116 static_assert((kShellWindowId_DefaultContainer - 1 ==
107 kShellWindowId_VirtualKeyboardContainer) && 117 kShellWindowId_VirtualKeyboardContainer) &&
108 (kShellWindowId_DefaultContainer + 1 == 118 (kShellWindowId_DefaultContainer + 1 ==
109 kShellWindowId_AlwaysOnTopContainer), 119 kShellWindowId_AlwaysOnTopContainer),
110 "default between keyboard and always-on-top"); 120 "default between keyboard and always-on-top");
111 121
112 static_assert((kShellWindowId_AlwaysOnTopContainer - 1 == 122 static_assert((kShellWindowId_AlwaysOnTopContainer - 1 ==
113 kShellWindowId_DefaultContainer) && 123 kShellWindowId_DefaultContainer) &&
114 (kShellWindowId_AlwaysOnTopContainer + 1 == 124 (kShellWindowId_AlwaysOnTopContainer + 1 ==
115 kShellWindowId_DockedContainer), 125 kShellWindowId_DockedContainer),
(...skipping 16 matching lines...) Expand all
132 (kShellWindowId_PanelContainer + 1 == 142 (kShellWindowId_PanelContainer + 1 ==
133 kShellWindowId_AppListContainer), 143 kShellWindowId_AppListContainer),
134 "panel between shelf-bubble and app-list"); 144 "panel between shelf-bubble and app-list");
135 145
136 static_assert((kShellWindowId_AppListContainer - 1 == 146 static_assert((kShellWindowId_AppListContainer - 1 ==
137 kShellWindowId_PanelContainer) && 147 kShellWindowId_PanelContainer) &&
138 (kShellWindowId_AppListContainer + 1 == 148 (kShellWindowId_AppListContainer + 1 ==
139 kShellWindowId_SystemModalContainer), 149 kShellWindowId_SystemModalContainer),
140 "app-list between panel and system-modal"); 150 "app-list between panel and system-modal");
141 151
152 static_assert((kShellWindowId_SystemModalContainer - 1 ==
153 kShellWindowId_AppListContainer) &&
154 (kShellWindowId_SystemModalContainer + 1 ==
155 kShellWindowId_LockScreenBackgroundContainer),
156 "system-modal between app-list and lock-screen-background");
157
158 static_assert((kShellWindowId_LockScreenContainer - 1 ==
159 kShellWindowId_LockScreenBackgroundContainer) &&
160 (kShellWindowId_LockScreenContainer + 1 ==
161 kShellWindowId_LockSystemModalContainer),
162 "lock-screen between lock-screen-background and "
163 "lock-screen-system-modal");
164
165 static_assert((kShellWindowId_LockSystemModalContainer - 1 ==
166 kShellWindowId_LockScreenContainer) &&
167 (kShellWindowId_LockSystemModalContainer + 1 ==
168 kShellWindowId_StatusContainer),
169 "lock-screen-system-modal between lock-screen status");
James Cook 2016/05/05 02:11:39 nit: "lock-screen and status"
sky 2016/05/05 15:33:17 Done.
170
171 static_assert((kShellWindowId_MenuContainer - 1 ==
172 kShellWindowId_ImeWindowParentContainer) &&
173 (kShellWindowId_MenuContainer + 1 ==
174 kShellWindowId_DragImageAndTooltipContainer),
175 "app-list between panel and system-modal");
176
177 static_assert((kShellWindowId_DragImageAndTooltipContainer - 1 ==
178 kShellWindowId_MenuContainer) &&
179 (kShellWindowId_DragImageAndTooltipContainer + 1 ==
180 kShellWindowId_SettingBubbleContainer),
181 "drag-image-and-tooltip between menu and settings-bubble");
182
142 static_assert((kShellWindowId_PhantomWindow - 1 == 183 static_assert((kShellWindowId_PhantomWindow - 1 ==
143 kShellWindowId_OverlayContainer) && 184 kShellWindowId_OverlayContainer) &&
144 (kShellWindowId_PhantomWindow + 1 == 185 (kShellWindowId_PhantomWindow + 1 ==
145 kShellWindowId_MouseCursorContainer), 186 kShellWindowId_MouseCursorContainer),
146 "phanton between overlay and mouse-cursor"); 187 "phanton between overlay and mouse-cursor");
147 188
148 } // namespace ash 189 } // namespace ash
149 190
150 #endif // ASH_SHELL_WINDOW_IDS_H_ 191 #endif // ASH_SHELL_WINDOW_IDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698