| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_WM_COMMON_WM_SHELL_WINDOW_IDS_H_ | 5 #ifndef ASH_WM_COMMON_WM_SHELL_WINDOW_IDS_H_ |
| 6 #define ASH_WM_COMMON_WM_SHELL_WINDOW_IDS_H_ | 6 #define ASH_WM_COMMON_WM_SHELL_WINDOW_IDS_H_ |
| 7 | 7 |
| 8 // Defines the ids assigned to known containers. The id for a WmWindow is | 8 // Defines the ids assigned to known containers. The id for a WmWindow is |
| 9 // accessed via GetShellWindowId(). | 9 // accessed via GetShellWindowId(). |
| 10 | 10 |
| 11 // TODO(sky): move this into wm namespace. | 11 // TODO(sky): move this into wm namespace. |
| 12 namespace ash { | 12 namespace ash { |
| 13 | 13 |
| 14 // NOTE: while the value of these is not necessarily important, the ordering | 14 // NOTE: while the value of these is not necessarily important, the ordering |
| 15 // is and is enforced in ash/shell_window_ids.h. | 15 // is and is enforced in ash/shell_window_ids.h. |
| 16 | 16 |
| 17 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. |
| 18 // This container is not visible. |
| 19 const int kShellWindowId_UnparentedControlContainer = 3; |
| 20 |
| 17 // The container for standard top-level windows. | 21 // The container for standard top-level windows. |
| 18 const int kShellWindowId_DefaultContainer = 6; | 22 const int kShellWindowId_DefaultContainer = 6; |
| 19 | 23 |
| 20 // The container for top-level windows with the 'always-on-top' flag set. | 24 // The container for top-level windows with the 'always-on-top' flag set. |
| 21 const int kShellWindowId_AlwaysOnTopContainer = 7; | 25 const int kShellWindowId_AlwaysOnTopContainer = 7; |
| 22 | 26 |
| 23 // The container for windows docked to either side of the desktop. | 27 // The container for windows docked to either side of the desktop. |
| 24 const int kShellWindowId_DockedContainer = 8; | 28 const int kShellWindowId_DockedContainer = 8; |
| 25 | 29 |
| 26 // The container for the shelf. | 30 // The container for the shelf. |
| 27 const int kShellWindowId_ShelfContainer = 9; | 31 const int kShellWindowId_ShelfContainer = 9; |
| 28 | 32 |
| 29 // The container for panel windows. | 33 // The container for panel windows. |
| 30 const int kShellWindowId_PanelContainer = 11; | 34 const int kShellWindowId_PanelContainer = 11; |
| 31 | 35 |
| 32 // TODO(sky): this seems unnecessary. Perhaps it should be injected? | 36 // TODO(sky): this seems unnecessary. Perhaps it should be injected? |
| 33 // The container for the app list. | 37 // The container for the app list. |
| 34 const int kShellWindowId_AppListContainer = 12; | 38 const int kShellWindowId_AppListContainer = 12; |
| 35 | 39 |
| 40 // The container for user-specific modal windows. |
| 41 const int kShellWindowId_SystemModalContainer = 13; |
| 42 |
| 43 // The container for the lock screen. |
| 44 const int kShellWindowId_LockScreenContainer = 15; |
| 45 |
| 46 // The container for the lock screen modal windows. |
| 47 const int kShellWindowId_LockSystemModalContainer = 16; |
| 48 |
| 49 // The container for menus. |
| 50 const int kShellWindowId_MenuContainer = 19; |
| 51 |
| 52 // The container for drag/drop images and tooltips. |
| 53 const int kShellWindowId_DragImageAndTooltipContainer = 20; |
| 54 |
| 36 // ID of the window created by PhantomWindowController or DragWindowController. | 55 // ID of the window created by PhantomWindowController or DragWindowController. |
| 37 const int kShellWindowId_PhantomWindow = 23; | 56 const int kShellWindowId_PhantomWindow = 23; |
| 38 | 57 |
| 39 } // namespace ash | 58 } // namespace ash |
| 40 | 59 |
| 41 #endif // ASH_WM_COMMON_WM_SHELL_WINDOW_IDS_H_ | 60 #endif // ASH_WM_COMMON_WM_SHELL_WINDOW_IDS_H_ |
| OLD | NEW |