Chromium Code Reviews| 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_SHELL_WINDOW_IDS_H_ | 5 #ifndef ASH_SHELL_WINDOW_IDS_H_ |
| 6 #define ASH_SHELL_WINDOW_IDS_H_ | 6 #define ASH_SHELL_WINDOW_IDS_H_ |
| 7 | 7 |
| 8 #include "ash/wm/common/wm_shell_window_ids.h" | 8 #include "ash/wm/common/wm_shell_window_ids.h" |
| 9 | 9 |
| 10 // Declarations of ids of special shell windows. | 10 // Declarations of ids of special shell windows. |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. | 30 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. |
| 31 // This container is not visible. | 31 // This container is not visible. |
| 32 const int kShellWindowId_UnparentedControlContainer = 3; | 32 const int kShellWindowId_UnparentedControlContainer = 3; |
| 33 | 33 |
| 34 // The desktop background window. | 34 // The desktop background window. |
| 35 const int kShellWindowId_DesktopBackgroundContainer = 4; | 35 const int kShellWindowId_DesktopBackgroundContainer = 4; |
| 36 | 36 |
| 37 // The virtual keyboard container. | 37 // The virtual keyboard container. |
| 38 const int kShellWindowId_VirtualKeyboardContainer = 5; | 38 const int kShellWindowId_VirtualKeyboardContainer = 5; |
| 39 | 39 |
| 40 // TODO(sky): rename kShellWindowId_DefaultContainer. | 40 // The container for standard top-level windows. Defined in wm_shell_window_ids. |
| 41 | 41 |
| 42 // The container for standard top-level windows. | 42 static_assert(kShellWindowId_VirtualKeyboardContainer + 1 == |
|
James Cook
2016/04/26 23:36:18
nit: These lines might be slightly clearer as:
st
sky
2016/04/26 23:58:27
I wasn't really happy with how this file was going
| |
| 43 const int kShellWindowId_DefaultContainer = 6; | 43 kShellWindowId_DefaultContainer, |
| 44 "docked container must be immediately after always on top"); | |
|
James Cook
2016/04/26 23:36:18
nit: update error message, or just get rid of it
| |
| 44 | 45 |
| 45 // The container for top-level windows with the 'always-on-top' flag set. | 46 // The container for top-level windows with the 'always-on-top' flag set. |
| 46 const int kShellWindowId_AlwaysOnTopContainer = 7; | 47 const int kShellWindowId_AlwaysOnTopContainer = 7; |
| 47 | 48 |
| 48 // The container for windows docked to either side of the desktop. Shell id is | 49 static_assert(kShellWindowId_DefaultContainer + 1 == |
| 49 // defined in wm_shell_window_ids. | 50 kShellWindowId_AlwaysOnTopContainer, |
| 51 "docked container must be immediately after always on top"); | |
|
James Cook
2016/04/26 23:36:18
ditto
| |
| 52 | |
| 53 // The container for windows docked to either side of the desktop. Defined in | |
| 54 // wm_shell_window_ids. | |
| 50 | 55 |
| 51 static_assert(kShellWindowId_AlwaysOnTopContainer + 1 == | 56 static_assert(kShellWindowId_AlwaysOnTopContainer + 1 == |
| 52 kShellWindowId_DockedContainer, | 57 kShellWindowId_DockedContainer, |
| 53 "docked container must be immediately after always on top"); | 58 "docked container must be immediately after always on top"); |
| 54 | 59 |
| 55 // The container for the shelf. | 60 // The container for the shelf. |
| 56 const int kShellWindowId_ShelfContainer = 9; | 61 const int kShellWindowId_ShelfContainer = 9; |
| 57 | 62 |
| 58 static_assert(kShellWindowId_DockedContainer + 1 == | 63 static_assert(kShellWindowId_DockedContainer + 1 == |
| 59 kShellWindowId_ShelfContainer, | 64 kShellWindowId_ShelfContainer, |
| 60 "shelf container must be immediately after docked container"); | 65 "shelf container must be immediately after docked container"); |
| 61 | 66 |
| 62 // The container for bubbles which float over the shelf. | 67 // The container for bubbles which float over the shelf. |
| 63 const int kShellWindowId_ShelfBubbleContainer = 10; | 68 const int kShellWindowId_ShelfBubbleContainer = 10; |
| 64 | 69 |
| 65 // The container for panel windows. | 70 // The container for panel windows. Defined in wm_shell_window_ids. |
| 66 const int kShellWindowId_PanelContainer = 11; | 71 static_assert(kShellWindowId_ShelfBubbleContainer + 1 == |
| 72 kShellWindowId_PanelContainer, | |
| 73 "docked container must be immediately after always on top"); | |
|
James Cook
2016/04/26 23:36:18
ditto
| |
| 67 | 74 |
| 68 // The container for the app list. | 75 // The container for the app list. |
| 69 const int kShellWindowId_AppListContainer = 12; | 76 const int kShellWindowId_AppListContainer = 12; |
| 70 | 77 |
| 78 static_assert(kShellWindowId_PanelContainer + 1 == | |
| 79 kShellWindowId_AppListContainer, | |
| 80 "shelf container must be immediately after docked container"); | |
|
James Cook
2016/04/26 23:36:18
ditto
| |
| 81 | |
| 71 // The container for user-specific modal windows. | 82 // The container for user-specific modal windows. |
| 72 const int kShellWindowId_SystemModalContainer = 13; | 83 const int kShellWindowId_SystemModalContainer = 13; |
| 73 | 84 |
| 74 // The container for the lock screen background. | 85 // The container for the lock screen background. |
| 75 const int kShellWindowId_LockScreenBackgroundContainer = 14; | 86 const int kShellWindowId_LockScreenBackgroundContainer = 14; |
| 76 | 87 |
| 77 // The container for the lock screen. | 88 // The container for the lock screen. |
| 78 const int kShellWindowId_LockScreenContainer = 15; | 89 const int kShellWindowId_LockScreenContainer = 15; |
| 79 | 90 |
| 80 // The container for the lock screen modal windows. | 91 // The container for the lock screen modal windows. |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 108 // The container for mouse cursor. | 119 // The container for mouse cursor. |
| 109 const int kShellWindowId_MouseCursorContainer = 24; | 120 const int kShellWindowId_MouseCursorContainer = 24; |
| 110 | 121 |
| 111 // The topmost container, used for power off animation. | 122 // The topmost container, used for power off animation. |
| 112 const int kShellWindowId_PowerButtonAnimationContainer = 25; | 123 const int kShellWindowId_PowerButtonAnimationContainer = 25; |
| 113 | 124 |
| 114 } // namespace ash | 125 } // namespace ash |
| 115 | 126 |
| 116 | 127 |
| 117 #endif // ASH_SHELL_WINDOW_IDS_H_ | 128 #endif // ASH_SHELL_WINDOW_IDS_H_ |
| OLD | NEW |