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_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 23 matching lines...) Expand all Loading... |
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 const int 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. | 50 // The container for the shelf. |
51 const int kShellWindowId_ShelfContainer = 9; | 51 const int 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. | 59 // The container for the app list. Defined in wm_shell_window_ids. |
60 const int 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. |
63 const int kShellWindowId_SystemModalContainer = 13; | 63 const int kShellWindowId_SystemModalContainer = 13; |
64 | 64 |
65 // The container for the lock screen background. | 65 // The container for the lock screen background. |
66 const int kShellWindowId_LockScreenBackgroundContainer = 14; | 66 const int kShellWindowId_LockScreenBackgroundContainer = 14; |
67 | 67 |
68 // The container for the lock screen. | 68 // The container for the lock screen. |
69 const int kShellWindowId_LockScreenContainer = 15; | 69 const int kShellWindowId_LockScreenContainer = 15; |
70 | 70 |
(...skipping 30 matching lines...) Expand all Loading... |
101 | 101 |
102 // The topmost container, used for power off animation. | 102 // The topmost container, used for power off animation. |
103 const int kShellWindowId_PowerButtonAnimationContainer = 25; | 103 const int kShellWindowId_PowerButtonAnimationContainer = 25; |
104 | 104 |
105 static_assert((kShellWindowId_DefaultContainer - 1 == | 105 static_assert((kShellWindowId_DefaultContainer - 1 == |
106 kShellWindowId_VirtualKeyboardContainer) && | 106 kShellWindowId_VirtualKeyboardContainer) && |
107 (kShellWindowId_DefaultContainer + 1 == | 107 (kShellWindowId_DefaultContainer + 1 == |
108 kShellWindowId_AlwaysOnTopContainer), | 108 kShellWindowId_AlwaysOnTopContainer), |
109 "default between keyboard and always-on-top"); | 109 "default between keyboard and always-on-top"); |
110 | 110 |
| 111 static_assert((kShellWindowId_AlwaysOnTopContainer - 1 == |
| 112 kShellWindowId_DefaultContainer) && |
| 113 (kShellWindowId_AlwaysOnTopContainer + 1 == |
| 114 kShellWindowId_DockedContainer), |
| 115 "always-on-top between default and docked"); |
| 116 |
111 static_assert((kShellWindowId_DockedContainer - 1 == | 117 static_assert((kShellWindowId_DockedContainer - 1 == |
112 kShellWindowId_AlwaysOnTopContainer) && | 118 kShellWindowId_AlwaysOnTopContainer) && |
113 (kShellWindowId_DockedContainer + 1 == | 119 (kShellWindowId_DockedContainer + 1 == |
114 kShellWindowId_ShelfContainer), | 120 kShellWindowId_ShelfContainer), |
115 "docked between always-on-top and shelf"); | 121 "docked between always-on-top and shelf"); |
116 | 122 |
117 static_assert((kShellWindowId_PanelContainer - 1 == | 123 static_assert((kShellWindowId_PanelContainer - 1 == |
118 kShellWindowId_ShelfBubbleContainer) && | 124 kShellWindowId_ShelfBubbleContainer) && |
119 (kShellWindowId_PanelContainer + 1 == | 125 (kShellWindowId_PanelContainer + 1 == |
120 kShellWindowId_AppListContainer), | 126 kShellWindowId_AppListContainer), |
121 "panel between shelf-bubble and app-list"); | 127 "panel between shelf-bubble and app-list"); |
122 | 128 |
| 129 static_assert((kShellWindowId_AppListContainer - 1 == |
| 130 kShellWindowId_PanelContainer) && |
| 131 (kShellWindowId_AppListContainer + 1 == |
| 132 kShellWindowId_SystemModalContainer), |
| 133 "app-list between panel and system-modal"); |
| 134 |
123 } // namespace ash | 135 } // namespace ash |
124 | 136 |
125 #endif // ASH_SHELL_WINDOW_IDS_H_ | 137 #endif // ASH_SHELL_WINDOW_IDS_H_ |
OLD | NEW |