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_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ | 5 #ifndef ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ |
6 #define ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ | 6 #define ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // ID of the window created by PhantomWindowController or | 106 // ID of the window created by PhantomWindowController or |
107 // DragWindowController. | 107 // DragWindowController. |
108 kShellWindowId_PhantomWindow, | 108 kShellWindowId_PhantomWindow, |
109 | 109 |
110 // The container for mouse cursor. | 110 // The container for mouse cursor. |
111 kShellWindowId_MouseCursorContainer, | 111 kShellWindowId_MouseCursorContainer, |
112 | 112 |
113 // The topmost container, used for power off animation. | 113 // The topmost container, used for power off animation. |
114 kShellWindowId_PowerButtonAnimationContainer, | 114 kShellWindowId_PowerButtonAnimationContainer, |
115 | 115 |
| 116 // The containers for windows that handle lock tray actions (e.g. new note |
| 117 // action). The action handler windows containers should be visible on lock |
| 118 // screen, but only when an action is being handled. The container to which |
| 119 // the action handler window should be added depends on the lock action state: |
| 120 // * in active state, the window should be contained in |
| 121 // LockActionHandlerContainer, which is stacked over lock screen container. |
| 122 // * in background state, the window should be container in |
| 123 // LockActinHandlerContainer_Background, which is stacked below lock screen |
| 124 // container. |
| 125 kShellWindowId_LockActionHandlerContainer, |
| 126 kShellWindowId_LockActionHandlerContainer_Background, |
| 127 |
116 kShellWindowId_Min = kShellWindowId_ScreenRotationContainer, | 128 kShellWindowId_Min = kShellWindowId_ScreenRotationContainer, |
117 kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer, | 129 kShellWindowId_Max = kShellWindowId_LockActionHandlerContainer_Background, |
118 }; | 130 }; |
119 | 131 |
120 // A list of all the above valid container IDs. Add any new ID to this list. | 132 // A list of all the above valid container IDs. Add any new ID to this list. |
121 // This list is needed to validate we have no duplicate IDs. | 133 // This list is needed to validate we have no duplicate IDs. |
122 const int32_t kAllShellContainerIds[] = { | 134 const int32_t kAllShellContainerIds[] = { |
123 kShellWindowId_ScreenRotationContainer, | 135 kShellWindowId_ScreenRotationContainer, |
124 kShellWindowId_NonLockScreenContainersContainer, | 136 kShellWindowId_NonLockScreenContainersContainer, |
125 kShellWindowId_LockScreenContainersContainer, | 137 kShellWindowId_LockScreenContainersContainer, |
126 kShellWindowId_LockScreenRelatedContainersContainer, | 138 kShellWindowId_LockScreenRelatedContainersContainer, |
127 kShellWindowId_UnparentedControlContainer, | 139 kShellWindowId_UnparentedControlContainer, |
(...skipping 11 matching lines...) Expand all Loading... |
139 kShellWindowId_LockSystemModalContainer, | 151 kShellWindowId_LockSystemModalContainer, |
140 kShellWindowId_StatusContainer, | 152 kShellWindowId_StatusContainer, |
141 kShellWindowId_ImeWindowParentContainer, | 153 kShellWindowId_ImeWindowParentContainer, |
142 kShellWindowId_MenuContainer, | 154 kShellWindowId_MenuContainer, |
143 kShellWindowId_DragImageAndTooltipContainer, | 155 kShellWindowId_DragImageAndTooltipContainer, |
144 kShellWindowId_SettingBubbleContainer, | 156 kShellWindowId_SettingBubbleContainer, |
145 kShellWindowId_OverlayContainer, | 157 kShellWindowId_OverlayContainer, |
146 kShellWindowId_PhantomWindow, | 158 kShellWindowId_PhantomWindow, |
147 kShellWindowId_MouseCursorContainer, | 159 kShellWindowId_MouseCursorContainer, |
148 kShellWindowId_PowerButtonAnimationContainer, | 160 kShellWindowId_PowerButtonAnimationContainer, |
| 161 kShellWindowId_LockActionHandlerContainer, |
| 162 kShellWindowId_LockActionHandlerContainer_Background, |
149 }; | 163 }; |
150 | 164 |
151 // These are the list of container ids of containers which may contain windows | 165 // These are the list of container ids of containers which may contain windows |
152 // that need to be activated. | 166 // that need to be activated. |
153 ASH_PUBLIC_EXPORT extern const int32_t kActivatableShellWindowIds[]; | 167 ASH_PUBLIC_EXPORT extern const int32_t kActivatableShellWindowIds[]; |
154 ASH_PUBLIC_EXPORT extern const size_t kNumActivatableShellWindowIds; | 168 ASH_PUBLIC_EXPORT extern const size_t kNumActivatableShellWindowIds; |
155 | 169 |
156 // Returns true if |id| is in |kActivatableShellWindowIds|. | 170 // Returns true if |id| is in |kActivatableShellWindowIds|. |
157 ASH_PUBLIC_EXPORT bool IsActivatableShellWindowId(int32_t id); | 171 ASH_PUBLIC_EXPORT bool IsActivatableShellWindowId(int32_t id); |
158 | 172 |
159 } // namespace ash | 173 } // namespace ash |
160 | 174 |
161 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ | 175 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ |
OLD | NEW |