OLD | NEW |
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_COMMON_SHELL_WINDOW_IDS_H_ |
6 #define ASH_SHELL_WINDOW_IDS_H_ | 6 #define ASH_COMMON_SHELL_WINDOW_IDS_H_ |
7 | |
8 #include "ash/common/wm/wm_shell_window_ids.h" | |
9 | 7 |
10 // Declarations of ids of special shell windows. | 8 // Declarations of ids of special shell windows. |
11 | 9 |
12 namespace ash { | 10 namespace ash { |
13 | 11 |
14 // A higher-level container that holds all of the containers stacked below | 12 // A higher-level container that holds all of the containers stacked below |
15 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for | 13 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for |
16 // animating lower-level containers. | 14 // animating lower-level containers. |
17 const int kShellWindowId_NonLockScreenContainersContainer = 0; | 15 const int kShellWindowId_NonLockScreenContainersContainer = 0; |
18 | 16 |
19 // A higher-level container that holds containers that hold lock-screen | 17 // A higher-level container that holds containers that hold lock-screen |
20 // windows. Only used by PowerButtonController for animating lower-level | 18 // windows. Only used by PowerButtonController for animating lower-level |
21 // containers. | 19 // containers. |
22 const int kShellWindowId_LockScreenContainersContainer = 1; | 20 const int kShellWindowId_LockScreenContainersContainer = 1; |
23 | 21 |
24 // A higher-level container that holds containers that hold lock-screen-related | 22 // 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 | 23 // windows (which we want to display while the screen is locked; effectively |
26 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used | 24 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used |
27 // by PowerButtonController for animating lower-level containers. | 25 // by PowerButtonController for animating lower-level containers. |
28 const int kShellWindowId_LockScreenRelatedContainersContainer = 2; | 26 const int kShellWindowId_LockScreenRelatedContainersContainer = 2; |
29 | 27 |
30 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. | 28 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. |
31 // This container is not visible. Defined in wm_shell_window_ids. | 29 // This container is not visible. |
32 // kShellWindowId_UnparentedControlContainer = 3; | 30 const int kShellWindowId_UnparentedControlContainer = 3; |
33 | 31 |
34 // The desktop background window. | 32 // The desktop background window. |
35 const int kShellWindowId_DesktopBackgroundContainer = 4; | 33 const int kShellWindowId_DesktopBackgroundContainer = 4; |
36 | 34 |
37 // The virtual keyboard container. | 35 // The virtual keyboard container. |
38 const int kShellWindowId_VirtualKeyboardContainer = 5; | 36 const int kShellWindowId_VirtualKeyboardContainer = 5; |
39 | 37 |
40 // The container for standard top-level windows. Defined in wm_shell_window_ids. | 38 // The container for standard top-level windows. |
41 // kShellWindowId_DefaultContainer = 6; | 39 const int kShellWindowId_DefaultContainer = 6; |
42 | 40 |
43 // The container for top-level windows with the 'always-on-top' flag set. | 41 // The container for top-level windows with the 'always-on-top' flag set. |
44 // kShellWindowId_AlwaysOnTopContainer = 7; | 42 const int kShellWindowId_AlwaysOnTopContainer = 7; |
45 | 43 |
46 // The container for windows docked to either side of the desktop. Defined in | 44 // The container for windows docked to either side of the desktop. |
47 // wm_shell_window_ids. | 45 const int kShellWindowId_DockedContainer = 8; |
48 // kShellWindowId_DockedContainer = 8; | |
49 | 46 |
50 // The container for the shelf. Defined in wm_shell_window_ids. | 47 // The container for the shelf. |
51 // kShellWindowId_ShelfContainer = 9; | 48 const int kShellWindowId_ShelfContainer = 9; |
52 | 49 |
53 // The container for bubbles which float over the shelf. | 50 // The container for bubbles which float over the shelf. |
54 const int kShellWindowId_ShelfBubbleContainer = 10; | 51 const int kShellWindowId_ShelfBubbleContainer = 10; |
55 | 52 |
56 // The container for panel windows. Defined in wm_shell_window_ids. | 53 // The container for panel windows. |
57 // kShellWindowId_PanelContainer = 11; | 54 const int kShellWindowId_PanelContainer = 11; |
58 | 55 |
59 // The container for the app list. Defined in wm_shell_window_ids. | 56 // The container for the app list. |
60 // kShellWindowId_AppListContainer = 12; | 57 const int kShellWindowId_AppListContainer = 12; |
61 | 58 |
62 // The container for user-specific modal windows. Defined in | 59 // The container for user-specific modal windows. |
63 // wm_shell_window_ids | 60 const int kShellWindowId_SystemModalContainer = 13; |
64 // kShellWindowId_SystemModalContainer = 13; | |
65 | 61 |
66 // The container for the lock screen background. | 62 // The container for the lock screen background. |
67 const int kShellWindowId_LockScreenBackgroundContainer = 14; | 63 const int kShellWindowId_LockScreenBackgroundContainer = 14; |
68 | 64 |
69 // The container for the lock screen. Defined in wm_shell_window_ids. | 65 // The container for the lock screen. |
70 // kShellWindowId_LockScreenContainer = 15; | 66 const int kShellWindowId_LockScreenContainer = 15; |
71 | 67 |
72 // The container for the lock screen modal windows. Defined in | 68 // The container for the lock screen modal windows. |
73 // wm_shell_window_ids. | 69 const int kShellWindowId_LockSystemModalContainer = 16; |
74 // kShellWindowId_LockSystemModalContainer = 16; | |
75 | 70 |
76 // The container for the status area. | 71 // The container for the status area. |
77 const int kShellWindowId_StatusContainer = 17; | 72 const int kShellWindowId_StatusContainer = 17; |
78 | 73 |
79 // A parent container that holds the virtual keyboard container and ime windows | 74 // A parent container that holds the virtual keyboard container and ime windows |
80 // if any. This is to ensure that the virtual keyboard or ime window is stacked | 75 // if any. This is to ensure that the virtual keyboard or ime window is stacked |
81 // above most containers but below the mouse cursor and the power off animation. | 76 // above most containers but below the mouse cursor and the power off animation. |
82 const int kShellWindowId_ImeWindowParentContainer = 18; | 77 const int kShellWindowId_ImeWindowParentContainer = 18; |
83 | 78 |
84 // The container for menus. Defined in wm_shell_window_ids. | 79 // The container for menus. |
85 // kShellWindowId_MenuContainer = 19; | 80 const int kShellWindowId_MenuContainer = 19; |
86 | 81 |
87 // The container for drag/drop images and tooltips. Defined in | 82 // The container for drag/drop images and tooltips. |
88 // wm_shell_window_ids. | 83 const int kShellWindowId_DragImageAndTooltipContainer = 20; |
89 // const int kShellWindowId_DragImageAndTooltipContainer = 20; | |
90 | 84 |
91 // The container for bubbles briefly overlaid onscreen to show settings changes | 85 // The container for bubbles briefly overlaid onscreen to show settings changes |
92 // (volume, brightness, input method bubbles, etc.). | 86 // (volume, brightness, input method bubbles, etc.). |
93 const int kShellWindowId_SettingBubbleContainer = 21; | 87 const int kShellWindowId_SettingBubbleContainer = 21; |
94 | 88 |
95 // The container for special components overlaid onscreen, such as the | 89 // The container for special components overlaid onscreen, such as the |
96 // region selector for partial screenshots. Defined in wm_shell_window_ids. | 90 // region selector for partial screenshots. |
97 // const int kShellWindowId_OverlayContainer = 22; | 91 const int kShellWindowId_OverlayContainer = 22; |
98 | 92 |
99 // ID of the window created by PhantomWindowController or DragWindowController. | 93 // ID of the window created by PhantomWindowController or DragWindowController. |
100 // Defined in wm_shell_window_ids. | 94 const int kShellWindowId_PhantomWindow = 23; |
101 // kShellWindowId_PhantomWindow = 23; | |
102 | 95 |
103 // The container for mouse cursor. | 96 // The container for mouse cursor. |
104 const int kShellWindowId_MouseCursorContainer = 24; | 97 const int kShellWindowId_MouseCursorContainer = 24; |
105 | 98 |
106 // The topmost container, used for power off animation. | 99 // The topmost container, used for power off animation. |
107 const int kShellWindowId_PowerButtonAnimationContainer = 25; | 100 const int kShellWindowId_PowerButtonAnimationContainer = 25; |
108 | 101 |
| 102 // TODO(sky): remove. Temporary for rietveld to pick up file move rather than |
| 103 // new file. |
| 104 |
109 static_assert((kShellWindowId_UnparentedControlContainer - 1 == | 105 static_assert((kShellWindowId_UnparentedControlContainer - 1 == |
110 kShellWindowId_LockScreenRelatedContainersContainer) && | 106 kShellWindowId_LockScreenRelatedContainersContainer) && |
111 (kShellWindowId_UnparentedControlContainer + 1 == | 107 (kShellWindowId_UnparentedControlContainer + 1 == |
112 kShellWindowId_DesktopBackgroundContainer), | 108 kShellWindowId_DesktopBackgroundContainer), |
113 "unparented-control between lock-screen-related and " | 109 "unparented-control between lock-screen-related and " |
114 "desktop-background"); | 110 "desktop-background"); |
115 | 111 |
116 static_assert((kShellWindowId_DefaultContainer - 1 == | 112 static_assert((kShellWindowId_DefaultContainer - 1 == |
117 kShellWindowId_VirtualKeyboardContainer) && | 113 kShellWindowId_VirtualKeyboardContainer) && |
118 (kShellWindowId_DefaultContainer + 1 == | 114 (kShellWindowId_DefaultContainer + 1 == |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 "overlay between settings-bubble and phantom"); | 183 "overlay between settings-bubble and phantom"); |
188 | 184 |
189 static_assert((kShellWindowId_PhantomWindow - 1 == | 185 static_assert((kShellWindowId_PhantomWindow - 1 == |
190 kShellWindowId_OverlayContainer) && | 186 kShellWindowId_OverlayContainer) && |
191 (kShellWindowId_PhantomWindow + 1 == | 187 (kShellWindowId_PhantomWindow + 1 == |
192 kShellWindowId_MouseCursorContainer), | 188 kShellWindowId_MouseCursorContainer), |
193 "phantom between overlay and mouse-cursor"); | 189 "phantom between overlay and mouse-cursor"); |
194 | 190 |
195 } // namespace ash | 191 } // namespace ash |
196 | 192 |
197 #endif // ASH_SHELL_WINDOW_IDS_H_ | 193 #endif // ASH_COMMON_SHELL_WINDOW_IDS_H_ |
OLD | NEW |