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