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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 | 98 |
99 // ID of the window created by PhantomWindowController or DragWindowController. | 99 // ID of the window created by PhantomWindowController or DragWindowController. |
100 const int32_t kShellWindowId_PhantomWindow = 22; | 100 const int32_t kShellWindowId_PhantomWindow = 22; |
101 | 101 |
102 // The container for mouse cursor. | 102 // The container for mouse cursor. |
103 const int32_t kShellWindowId_MouseCursorContainer = 23; | 103 const int32_t kShellWindowId_MouseCursorContainer = 23; |
104 | 104 |
105 // The topmost container, used for power off animation. | 105 // The topmost container, used for power off animation. |
106 const int32_t kShellWindowId_PowerButtonAnimationContainer = 24; | 106 const int32_t kShellWindowId_PowerButtonAnimationContainer = 24; |
107 | 107 |
108 // The screen rotation container in between root window and its children, used | |
109 // for screen rotation animation. | |
110 const int32_t kShellWindowId_ScreenRotationContainer = 25; | |
oshima
2017/04/13 23:51:45
these are from another CL?
wutao
2017/04/14 00:17:53
It is from other cl, which has not committed. So I
| |
111 | |
108 const int32_t kShellWindowId_Min = 0; | 112 const int32_t kShellWindowId_Min = 0; |
109 const int32_t kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer; | 113 const int32_t kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer; |
110 | 114 |
111 // A list of all the above valid container IDs. Add any new ID to this list. | 115 // A list of all the above valid container IDs. Add any new ID to this list. |
112 // This list is needed to validate we have no duplicate IDs. | 116 // This list is needed to validate we have no duplicate IDs. |
113 const int32_t kAllShellContainerIds[] = { | 117 const int32_t kAllShellContainerIds[] = { |
114 kShellWindowId_NonLockScreenContainersContainer, | 118 kShellWindowId_NonLockScreenContainersContainer, |
115 kShellWindowId_LockScreenContainersContainer, | 119 kShellWindowId_LockScreenContainersContainer, |
116 kShellWindowId_LockScreenRelatedContainersContainer, | 120 kShellWindowId_LockScreenRelatedContainersContainer, |
117 kShellWindowId_UnparentedControlContainer, | 121 kShellWindowId_UnparentedControlContainer, |
118 kShellWindowId_WallpaperContainer, | 122 kShellWindowId_WallpaperContainer, |
119 kShellWindowId_VirtualKeyboardContainer, | 123 kShellWindowId_VirtualKeyboardContainer, |
120 kShellWindowId_DefaultContainer, | 124 kShellWindowId_DefaultContainer, |
121 kShellWindowId_AlwaysOnTopContainer, | 125 kShellWindowId_AlwaysOnTopContainer, |
122 kShellWindowId_ShelfContainer, | 126 kShellWindowId_ShelfContainer, |
123 kShellWindowId_ShelfBubbleContainer, | 127 kShellWindowId_ShelfBubbleContainer, |
124 kShellWindowId_PanelContainer, | 128 kShellWindowId_PanelContainer, |
125 kShellWindowId_AppListContainer, | 129 kShellWindowId_AppListContainer, |
126 kShellWindowId_SystemModalContainer, | 130 kShellWindowId_SystemModalContainer, |
127 kShellWindowId_LockScreenWallpaperContainer, | 131 kShellWindowId_LockScreenWallpaperContainer, |
128 kShellWindowId_LockScreenContainer, | 132 kShellWindowId_LockScreenContainer, |
129 kShellWindowId_LockSystemModalContainer, | 133 kShellWindowId_LockSystemModalContainer, |
130 kShellWindowId_StatusContainer, | 134 kShellWindowId_StatusContainer, |
131 kShellWindowId_ImeWindowParentContainer, | 135 kShellWindowId_ImeWindowParentContainer, |
132 kShellWindowId_MenuContainer, | 136 kShellWindowId_MenuContainer, |
133 kShellWindowId_DragImageAndTooltipContainer, | 137 kShellWindowId_DragImageAndTooltipContainer, |
134 kShellWindowId_SettingBubbleContainer, | 138 kShellWindowId_SettingBubbleContainer, |
135 kShellWindowId_OverlayContainer, | 139 kShellWindowId_OverlayContainer, |
136 kShellWindowId_PhantomWindow, | 140 kShellWindowId_PhantomWindow, |
137 kShellWindowId_MouseCursorContainer, | 141 kShellWindowId_MouseCursorContainer, |
138 kShellWindowId_PowerButtonAnimationContainer, | 142 kShellWindowId_PowerButtonAnimationContainer, |
143 kShellWindowId_ScreenRotationContainer, | |
139 }; | 144 }; |
140 | 145 |
141 // These are the list of container ids of containers which may contain windows | 146 // These are the list of container ids of containers which may contain windows |
142 // that need to be activated. | 147 // that need to be activated. |
143 ASH_PUBLIC_EXPORT extern const int32_t kActivatableShellWindowIds[]; | 148 ASH_PUBLIC_EXPORT extern const int32_t kActivatableShellWindowIds[]; |
144 ASH_PUBLIC_EXPORT extern const size_t kNumActivatableShellWindowIds; | 149 ASH_PUBLIC_EXPORT extern const size_t kNumActivatableShellWindowIds; |
145 | 150 |
146 // Returns true if |id| is in |kActivatableShellWindowIds|. | 151 // Returns true if |id| is in |kActivatableShellWindowIds|. |
147 ASH_PUBLIC_EXPORT bool IsActivatableShellWindowId(int32_t id); | 152 ASH_PUBLIC_EXPORT bool IsActivatableShellWindowId(int32_t id); |
148 | 153 |
149 } // namespace ash | 154 } // namespace ash |
150 | 155 |
151 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ | 156 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ |
OLD | NEW |