| 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_COMMON_SHELL_WINDOW_IDS_H_ |
| 6 #define ASH_COMMON_SHELL_WINDOW_IDS_H_ | 6 #define ASH_COMMON_SHELL_WINDOW_IDS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 10 #include "ash/ash_export.h" |
| 11 |
| 8 // Declarations of ids of special shell windows. | 12 // Declarations of ids of special shell windows. |
| 9 | 13 |
| 10 namespace ash { | 14 namespace ash { |
| 11 | 15 |
| 16 // Used to indicate no shell window id. |
| 17 const int kShellWindowId_Invalid = -1; |
| 18 |
| 12 // A higher-level container that holds all of the containers stacked below | 19 // A higher-level container that holds all of the containers stacked below |
| 13 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for | 20 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for |
| 14 // animating lower-level containers. | 21 // animating lower-level containers. |
| 15 const int kShellWindowId_NonLockScreenContainersContainer = 0; | 22 const int kShellWindowId_NonLockScreenContainersContainer = 0; |
| 16 | 23 |
| 17 // A higher-level container that holds containers that hold lock-screen | 24 // A higher-level container that holds containers that hold lock-screen |
| 18 // windows. Only used by PowerButtonController for animating lower-level | 25 // windows. Only used by PowerButtonController for animating lower-level |
| 19 // containers. | 26 // containers. |
| 20 const int kShellWindowId_LockScreenContainersContainer = 1; | 27 const int kShellWindowId_LockScreenContainersContainer = 1; |
| 21 | 28 |
| 22 // A higher-level container that holds containers that hold lock-screen-related | 29 // A higher-level container that holds containers that hold lock-screen-related |
| 23 // windows (which we want to display while the screen is locked; effectively | 30 // windows (which we want to display while the screen is locked; effectively |
| 24 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used | 31 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used |
| 25 // by PowerButtonController for animating lower-level containers. | 32 // by PowerButtonController for animating lower-level containers. |
| 26 const int kShellWindowId_LockScreenRelatedContainersContainer = 2; | 33 const int kShellWindowId_LockScreenRelatedContainersContainer = 2; |
| 27 | 34 |
| 28 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. | 35 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. |
| 29 // This container is not visible. | 36 // This container is not visible. |
| 30 const int kShellWindowId_UnparentedControlContainer = 3; | 37 const int kShellWindowId_UnparentedControlContainer = 3; |
| 31 | 38 |
| 32 // The desktop background window. | 39 // The desktop background window. |
| 33 const int kShellWindowId_DesktopBackgroundContainer = 4; | 40 const int kShellWindowId_DesktopBackgroundContainer = 4; |
| 34 | 41 |
| 35 // The virtual keyboard container. | 42 // The virtual keyboard container. |
| 43 // NOTE: this is lazily created. |
| 36 const int kShellWindowId_VirtualKeyboardContainer = 5; | 44 const int kShellWindowId_VirtualKeyboardContainer = 5; |
| 37 | 45 |
| 38 // The container for standard top-level windows. | 46 // The container for standard top-level windows. |
| 39 const int kShellWindowId_DefaultContainer = 6; | 47 const int kShellWindowId_DefaultContainer = 6; |
| 40 | 48 |
| 41 // The container for top-level windows with the 'always-on-top' flag set. | 49 // The container for top-level windows with the 'always-on-top' flag set. |
| 42 const int kShellWindowId_AlwaysOnTopContainer = 7; | 50 const int kShellWindowId_AlwaysOnTopContainer = 7; |
| 43 | 51 |
| 44 // The container for windows docked to either side of the desktop. | 52 // The container for windows docked to either side of the desktop. |
| 45 const int kShellWindowId_DockedContainer = 8; | 53 const int kShellWindowId_DockedContainer = 8; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 100 |
| 93 // ID of the window created by PhantomWindowController or DragWindowController. | 101 // ID of the window created by PhantomWindowController or DragWindowController. |
| 94 const int kShellWindowId_PhantomWindow = 23; | 102 const int kShellWindowId_PhantomWindow = 23; |
| 95 | 103 |
| 96 // The container for mouse cursor. | 104 // The container for mouse cursor. |
| 97 const int kShellWindowId_MouseCursorContainer = 24; | 105 const int kShellWindowId_MouseCursorContainer = 24; |
| 98 | 106 |
| 99 // The topmost container, used for power off animation. | 107 // The topmost container, used for power off animation. |
| 100 const int kShellWindowId_PowerButtonAnimationContainer = 25; | 108 const int kShellWindowId_PowerButtonAnimationContainer = 25; |
| 101 | 109 |
| 110 const int kShellWindowId_Min = 0; |
| 111 const int kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer; |
| 112 |
| 113 // These are the list of container ids of containers which may contain windows |
| 114 // that need to be activated in the order that they should be activated. |
| 115 ASH_EXPORT extern const int kActivatableShellWindowIds[]; |
| 116 ASH_EXPORT extern const size_t kNumActivatableShellWindowIds; |
| 117 |
| 102 } // namespace ash | 118 } // namespace ash |
| 103 | 119 |
| 104 #endif // ASH_COMMON_SHELL_WINDOW_IDS_H_ | 120 #endif // ASH_COMMON_SHELL_WINDOW_IDS_H_ |
| OLD | NEW |