| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef ASH_SHELL_WINDOW_IDS_H_ | |
| 6 #define ASH_SHELL_WINDOW_IDS_H_ | |
| 7 | |
| 8 #include "ash/common/wm/wm_shell_window_ids.h" | |
| 9 | |
| 10 // Declarations of ids of special shell windows. | |
| 11 | |
| 12 namespace ash { | |
| 13 | |
| 14 // A higher-level container that holds all of the containers stacked below | |
| 15 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for | |
| 16 // animating lower-level containers. | |
| 17 const int kShellWindowId_NonLockScreenContainersContainer = 0; | |
| 18 | |
| 19 // A higher-level container that holds containers that hold lock-screen | |
| 20 // windows. Only used by PowerButtonController for animating lower-level | |
| 21 // containers. | |
| 22 const int kShellWindowId_LockScreenContainersContainer = 1; | |
| 23 | |
| 24 // A higher-level container that holds containers that hold lock-screen-related | |
| 25 // windows (which we want to display while the screen is locked; effectively | |
| 26 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used | |
| 27 // by PowerButtonController for animating lower-level containers. | |
| 28 const int kShellWindowId_LockScreenRelatedContainersContainer = 2; | |
| 29 | |
| 30 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. | |
| 31 // This container is not visible. Defined in wm_shell_window_ids. | |
| 32 // kShellWindowId_UnparentedControlContainer = 3; | |
| 33 | |
| 34 // The desktop background window. | |
| 35 const int kShellWindowId_DesktopBackgroundContainer = 4; | |
| 36 | |
| 37 // The virtual keyboard container. | |
| 38 const int kShellWindowId_VirtualKeyboardContainer = 5; | |
| 39 | |
| 40 // The container for standard top-level windows. Defined in wm_shell_window_ids. | |
| 41 // kShellWindowId_DefaultContainer = 6; | |
| 42 | |
| 43 // The container for top-level windows with the 'always-on-top' flag set. | |
| 44 // kShellWindowId_AlwaysOnTopContainer = 7; | |
| 45 | |
| 46 // The container for windows docked to either side of the desktop. Defined in | |
| 47 // wm_shell_window_ids. | |
| 48 // kShellWindowId_DockedContainer = 8; | |
| 49 | |
| 50 // The container for the shelf. Defined in wm_shell_window_ids. | |
| 51 // kShellWindowId_ShelfContainer = 9; | |
| 52 | |
| 53 // The container for bubbles which float over the shelf. | |
| 54 const int kShellWindowId_ShelfBubbleContainer = 10; | |
| 55 | |
| 56 // The container for panel windows. Defined in wm_shell_window_ids. | |
| 57 // kShellWindowId_PanelContainer = 11; | |
| 58 | |
| 59 // The container for the app list. Defined in wm_shell_window_ids. | |
| 60 // kShellWindowId_AppListContainer = 12; | |
| 61 | |
| 62 // The container for user-specific modal windows. Defined in | |
| 63 // wm_shell_window_ids | |
| 64 // kShellWindowId_SystemModalContainer = 13; | |
| 65 | |
| 66 // The container for the lock screen background. | |
| 67 const int kShellWindowId_LockScreenBackgroundContainer = 14; | |
| 68 | |
| 69 // The container for the lock screen. Defined in wm_shell_window_ids. | |
| 70 // kShellWindowId_LockScreenContainer = 15; | |
| 71 | |
| 72 // The container for the lock screen modal windows. Defined in | |
| 73 // wm_shell_window_ids. | |
| 74 // kShellWindowId_LockSystemModalContainer = 16; | |
| 75 | |
| 76 // The container for the status area. | |
| 77 const int kShellWindowId_StatusContainer = 17; | |
| 78 | |
| 79 // A parent container that holds the virtual keyboard container and ime windows | |
| 80 // if any. This is to ensure that the virtual keyboard or ime window is stacked | |
| 81 // above most containers but below the mouse cursor and the power off animation. | |
| 82 const int kShellWindowId_ImeWindowParentContainer = 18; | |
| 83 | |
| 84 // The container for menus. Defined in wm_shell_window_ids. | |
| 85 // kShellWindowId_MenuContainer = 19; | |
| 86 | |
| 87 // The container for drag/drop images and tooltips. Defined in | |
| 88 // wm_shell_window_ids. | |
| 89 // const int kShellWindowId_DragImageAndTooltipContainer = 20; | |
| 90 | |
| 91 // The container for bubbles briefly overlaid onscreen to show settings changes | |
| 92 // (volume, brightness, input method bubbles, etc.). | |
| 93 const int kShellWindowId_SettingBubbleContainer = 21; | |
| 94 | |
| 95 // The container for special components overlaid onscreen, such as the | |
| 96 // region selector for partial screenshots. Defined in wm_shell_window_ids. | |
| 97 // const int kShellWindowId_OverlayContainer = 22; | |
| 98 | |
| 99 // ID of the window created by PhantomWindowController or DragWindowController. | |
| 100 // Defined in wm_shell_window_ids. | |
| 101 // kShellWindowId_PhantomWindow = 23; | |
| 102 | |
| 103 // The container for mouse cursor. | |
| 104 const int kShellWindowId_MouseCursorContainer = 24; | |
| 105 | |
| 106 // The topmost container, used for power off animation. | |
| 107 const int kShellWindowId_PowerButtonAnimationContainer = 25; | |
| 108 | |
| 109 static_assert((kShellWindowId_UnparentedControlContainer - 1 == | |
| 110 kShellWindowId_LockScreenRelatedContainersContainer) && | |
| 111 (kShellWindowId_UnparentedControlContainer + 1 == | |
| 112 kShellWindowId_DesktopBackgroundContainer), | |
| 113 "unparented-control between lock-screen-related and " | |
| 114 "desktop-background"); | |
| 115 | |
| 116 static_assert((kShellWindowId_DefaultContainer - 1 == | |
| 117 kShellWindowId_VirtualKeyboardContainer) && | |
| 118 (kShellWindowId_DefaultContainer + 1 == | |
| 119 kShellWindowId_AlwaysOnTopContainer), | |
| 120 "default between keyboard and always-on-top"); | |
| 121 | |
| 122 static_assert((kShellWindowId_AlwaysOnTopContainer - 1 == | |
| 123 kShellWindowId_DefaultContainer) && | |
| 124 (kShellWindowId_AlwaysOnTopContainer + 1 == | |
| 125 kShellWindowId_DockedContainer), | |
| 126 "always-on-top between default and docked"); | |
| 127 | |
| 128 static_assert((kShellWindowId_DockedContainer - 1 == | |
| 129 kShellWindowId_AlwaysOnTopContainer) && | |
| 130 (kShellWindowId_DockedContainer + 1 == | |
| 131 kShellWindowId_ShelfContainer), | |
| 132 "docked between always-on-top and shelf"); | |
| 133 | |
| 134 static_assert((kShellWindowId_ShelfContainer - 1 == | |
| 135 kShellWindowId_DockedContainer) && | |
| 136 (kShellWindowId_ShelfContainer + 1 == | |
| 137 kShellWindowId_ShelfBubbleContainer), | |
| 138 "shelf between docked and shelf-bubble"); | |
| 139 | |
| 140 static_assert((kShellWindowId_PanelContainer - 1 == | |
| 141 kShellWindowId_ShelfBubbleContainer) && | |
| 142 (kShellWindowId_PanelContainer + 1 == | |
| 143 kShellWindowId_AppListContainer), | |
| 144 "panel between shelf-bubble and app-list"); | |
| 145 | |
| 146 static_assert((kShellWindowId_AppListContainer - 1 == | |
| 147 kShellWindowId_PanelContainer) && | |
| 148 (kShellWindowId_AppListContainer + 1 == | |
| 149 kShellWindowId_SystemModalContainer), | |
| 150 "app-list between panel and system-modal"); | |
| 151 | |
| 152 static_assert((kShellWindowId_SystemModalContainer - 1 == | |
| 153 kShellWindowId_AppListContainer) && | |
| 154 (kShellWindowId_SystemModalContainer + 1 == | |
| 155 kShellWindowId_LockScreenBackgroundContainer), | |
| 156 "system-modal between app-list and lock-screen-background"); | |
| 157 | |
| 158 static_assert((kShellWindowId_LockScreenContainer - 1 == | |
| 159 kShellWindowId_LockScreenBackgroundContainer) && | |
| 160 (kShellWindowId_LockScreenContainer + 1 == | |
| 161 kShellWindowId_LockSystemModalContainer), | |
| 162 "lock-screen between lock-screen-background and " | |
| 163 "lock-screen-system-modal"); | |
| 164 | |
| 165 static_assert((kShellWindowId_LockSystemModalContainer - 1 == | |
| 166 kShellWindowId_LockScreenContainer) && | |
| 167 (kShellWindowId_LockSystemModalContainer + 1 == | |
| 168 kShellWindowId_StatusContainer), | |
| 169 "lock-screen-system-modal between lock-screen and status"); | |
| 170 | |
| 171 static_assert((kShellWindowId_MenuContainer - 1 == | |
| 172 kShellWindowId_ImeWindowParentContainer) && | |
| 173 (kShellWindowId_MenuContainer + 1 == | |
| 174 kShellWindowId_DragImageAndTooltipContainer), | |
| 175 "app-list between panel and system-modal"); | |
| 176 | |
| 177 static_assert((kShellWindowId_DragImageAndTooltipContainer - 1 == | |
| 178 kShellWindowId_MenuContainer) && | |
| 179 (kShellWindowId_DragImageAndTooltipContainer + 1 == | |
| 180 kShellWindowId_SettingBubbleContainer), | |
| 181 "drag-image-and-tooltip between menu and settings-bubble"); | |
| 182 | |
| 183 static_assert((kShellWindowId_OverlayContainer - 1 == | |
| 184 kShellWindowId_SettingBubbleContainer) && | |
| 185 (kShellWindowId_OverlayContainer + 1 == | |
| 186 kShellWindowId_PhantomWindow), | |
| 187 "overlay between settings-bubble and phantom"); | |
| 188 | |
| 189 static_assert((kShellWindowId_PhantomWindow - 1 == | |
| 190 kShellWindowId_OverlayContainer) && | |
| 191 (kShellWindowId_PhantomWindow + 1 == | |
| 192 kShellWindowId_MouseCursorContainer), | |
| 193 "phantom between overlay and mouse-cursor"); | |
| 194 | |
| 195 } // namespace ash | |
| 196 | |
| 197 #endif // ASH_SHELL_WINDOW_IDS_H_ | |
| OLD | NEW |