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_COMMON_SHELL_WINDOW_IDS_H_ | 5 #ifndef ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ |
6 #define ASH_COMMON_SHELL_WINDOW_IDS_H_ | 6 #define ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "ash/ash_export.h" | |
11 | |
12 // Declarations of ids of special shell windows. | 10 // Declarations of ids of special shell windows. |
13 | 11 |
14 namespace ash { | 12 namespace ash { |
15 | 13 |
16 // Used to indicate no shell window id. | 14 // Used to indicate no shell window id. |
17 const int kShellWindowId_Invalid = -1; | 15 const int kShellWindowId_Invalid = -1; |
18 | 16 |
19 // A higher-level container that holds all of the containers stacked below | 17 // A higher-level container that holds all of the containers stacked below |
20 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for | 18 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for |
21 // animating lower-level containers. | 19 // animating lower-level containers. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 const int kShellWindowId_MouseCursorContainer = 24; | 103 const int kShellWindowId_MouseCursorContainer = 24; |
106 | 104 |
107 // The topmost container, used for power off animation. | 105 // The topmost container, used for power off animation. |
108 const int kShellWindowId_PowerButtonAnimationContainer = 25; | 106 const int kShellWindowId_PowerButtonAnimationContainer = 25; |
109 | 107 |
110 const int kShellWindowId_Min = 0; | 108 const int kShellWindowId_Min = 0; |
111 const int kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer; | 109 const int kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer; |
112 | 110 |
113 // These are the list of container ids of containers which may contain windows | 111 // These are the list of container ids of containers which may contain windows |
114 // that need to be activated. | 112 // that need to be activated. |
115 ASH_EXPORT extern const int kActivatableShellWindowIds[]; | 113 extern const int kActivatableShellWindowIds[]; |
116 ASH_EXPORT extern const size_t kNumActivatableShellWindowIds; | 114 extern const size_t kNumActivatableShellWindowIds; |
117 | 115 |
118 // Returns true if |id| is in |kActivatableShellWindowIds|. | 116 // Returns true if |id| is in |kActivatableShellWindowIds|. |
119 ASH_EXPORT bool IsActivatableShellWindowId(int id); | 117 bool IsActivatableShellWindowId(int id); |
120 | 118 |
121 } // namespace ash | 119 } // namespace ash |
122 | 120 |
123 #endif // ASH_COMMON_SHELL_WINDOW_IDS_H_ | 121 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ |
OLD | NEW |