[email protected] | cec568d6f | 2012-01-07 00:49:26 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | b65bdda | 2011-12-23 23:35:31 | [diff] [blame] | 5 | #ifndef ASH_SHELL_WINDOW_IDS_H_ |
6 | #define ASH_SHELL_WINDOW_IDS_H_ | ||||
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 7 | |
8 | // Declarations of ids of special shell windows. | ||||
9 | |||||
[email protected] | 55f59335 | 2011-12-24 05:42:46 | [diff] [blame] | 10 | namespace ash { |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 11 | |
[email protected] | f52a0729 | 2012-02-23 19:06:14 | [diff] [blame] | 12 | // A higher-level container that holds all of the containers stacked below |
13 | // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for | ||||
14 | // animating lower-level containers. | ||||
15 | const int kShellWindowId_NonLockScreenContainersContainer = 0; | ||||
16 | |||||
17 | // A higher-level container that holds containers that hold lock-screen | ||||
18 | // windows. Only used by PowerButtonController for animating lower-level | ||||
19 | // containers. | ||||
20 | const int kShellWindowId_LockScreenContainersContainer = 1; | ||||
21 | |||||
22 | // 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 | ||||
24 | // containers stacked above kShellWindowId_LockSystemModalContainer). Only used | ||||
25 | // by PowerButtonController for animating lower-level containers. | ||||
26 | const int kShellWindowId_LockScreenRelatedContainersContainer = 2; | ||||
27 | |||||
[email protected] | 392cb7b | 2012-01-20 23:08:58 | [diff] [blame] | 28 | // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. |
29 | // This container is not visible. | ||||
[email protected] | f52a0729 | 2012-02-23 19:06:14 | [diff] [blame] | 30 | const int kShellWindowId_UnparentedControlContainer = 3; |
[email protected] | 392cb7b | 2012-01-20 23:08:58 | [diff] [blame] | 31 | |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 32 | // The desktop background window. |
[email protected] | e6e41d2f | 2012-10-29 19:22:19 | [diff] [blame] | 33 | const int kShellWindowId_DesktopBackgroundContainer = 4; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 34 | |
[email protected] | eff4c7f | 2013-08-13 01:45:50 | [diff] [blame] | 35 | // The virtual keyboard container. |
36 | const int kShellWindowId_VirtualKeyboardContainer = 5; | ||||
37 | |||||
[email protected] | ef0e32cc | 2012-10-31 20:57:33 | [diff] [blame] | 38 | // TODO(sky): rename kShellWindowId_DefaultContainer. |
[email protected] | 9505857 | 2012-08-20 14:57:29 | [diff] [blame] | 39 | |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 40 | // The container for standard top-level windows. |
[email protected] | eff4c7f | 2013-08-13 01:45:50 | [diff] [blame] | 41 | const int kShellWindowId_DefaultContainer = 6; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 42 | |
43 | // The container for top-level windows with the 'always-on-top' flag set. | ||||
[email protected] | eff4c7f | 2013-08-13 01:45:50 | [diff] [blame] | 44 | const int kShellWindowId_AlwaysOnTopContainer = 7; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 45 | |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame] | 46 | // The container for windows docked to either side of the desktop. |
[email protected] | eff4c7f | 2013-08-13 01:45:50 | [diff] [blame] | 47 | const int kShellWindowId_DockedContainer = 8; |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame] | 48 | |
[email protected] | 478c6c3 | 2013-03-09 02:50:58 | [diff] [blame] | 49 | // The container for the shelf. |
[email protected] | f2026eb | 2013-10-22 14:28:56 | [diff] [blame] | 50 | const int kShellWindowId_ShelfContainer = 9; |
51 | |||||
52 | // The container for bubbles which float over the shelf. | ||||
53 | const int kShellWindowId_ShelfBubbleContainer = 10; | ||||
54 | |||||
55 | // The container for panel windows. | ||||
56 | const int kShellWindowId_PanelContainer = 11; | ||||
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 57 | |
[email protected] | c066b8d | 2012-03-26 00:23:16 | [diff] [blame] | 58 | // The container for the app list. |
[email protected] | f2026eb | 2013-10-22 14:28:56 | [diff] [blame] | 59 | const int kShellWindowId_AppListContainer = 12; |
[email protected] | c066b8d | 2012-03-26 00:23:16 | [diff] [blame] | 60 | |
[email protected] | e29014c | 2011-11-16 18:25:51 | [diff] [blame] | 61 | // The container for user-specific modal windows. |
[email protected] | f2026eb | 2013-10-22 14:28:56 | [diff] [blame] | 62 | const int kShellWindowId_SystemModalContainer = 13; |
[email protected] | e29014c | 2011-11-16 18:25:51 | [diff] [blame] | 63 | |
[email protected] | b4ddc7a | 2012-08-07 04:17:32 | [diff] [blame] | 64 | // The container for the lock screen background. |
[email protected] | 6d94e3f | 2014-04-23 04:29:11 | [diff] [blame] | 65 | const int kShellWindowId_LockScreenBackgroundContainer = 14; |
[email protected] | b4ddc7a | 2012-08-07 04:17:32 | [diff] [blame] | 66 | |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 67 | // The container for the lock screen. |
[email protected] | 6d94e3f | 2014-04-23 04:29:11 | [diff] [blame] | 68 | const int kShellWindowId_LockScreenContainer = 15; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 69 | |
[email protected] | 55bdb50 | 2011-11-29 20:26:25 | [diff] [blame] | 70 | // The container for the lock screen modal windows. |
[email protected] | 6d94e3f | 2014-04-23 04:29:11 | [diff] [blame] | 71 | const int kShellWindowId_LockSystemModalContainer = 16; |
[email protected] | 55bdb50 | 2011-11-29 20:26:25 | [diff] [blame] | 72 | |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 73 | // The container for the status area. |
[email protected] | 6d94e3f | 2014-04-23 04:29:11 | [diff] [blame] | 74 | const int kShellWindowId_StatusContainer = 17; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 75 | |
bshe | c387542 | 2014-09-29 13:21:30 | [diff] [blame] | 76 | // A parent container that holds the virtual keyboard container and ime windows |
77 | // if any. This is to ensure that the virtual keyboard or ime window is stacked | ||||
78 | // above most containers but below the mouse cursor and the power off animation. | ||||
79 | const int kShellWindowId_ImeWindowParentContainer = 18; | ||||
kevers | 23f3987d | 2014-09-17 13:50:12 | [diff] [blame] | 80 | |
[email protected] | 9dea0a2 | 2012-02-02 20:00:43 | [diff] [blame] | 81 | // The container for menus. |
kevers | 23f3987d | 2014-09-17 13:50:12 | [diff] [blame] | 82 | const int kShellWindowId_MenuContainer = 19; |
[email protected] | 9dea0a2 | 2012-02-02 20:00:43 | [diff] [blame] | 83 | |
84 | // The container for drag/drop images and tooltips. | ||||
kevers | 23f3987d | 2014-09-17 13:50:12 | [diff] [blame] | 85 | const int kShellWindowId_DragImageAndTooltipContainer = 20; |
[email protected] | cec568d6f | 2012-01-07 00:49:26 | [diff] [blame] | 86 | |
87 | // The container for bubbles briefly overlaid onscreen to show settings changes | ||||
[email protected] | 6d94e3f | 2014-04-23 04:29:11 | [diff] [blame] | 88 | // (volume, brightness, input method bubbles, etc.). |
kevers | 23f3987d | 2014-09-17 13:50:12 | [diff] [blame] | 89 | const int kShellWindowId_SettingBubbleContainer = 21; |
[email protected] | 87b0d82e | 2011-10-07 21:02:59 | [diff] [blame] | 90 | |
[email protected] | 0b0b074 | 2012-02-16 13:23:45 | [diff] [blame] | 91 | // The container for special components overlaid onscreen, such as the |
92 | // region selector for partial screenshots. | ||||
kevers | 23f3987d | 2014-09-17 13:50:12 | [diff] [blame] | 93 | const int kShellWindowId_OverlayContainer = 22; |
[email protected] | 0b0b074 | 2012-02-16 13:23:45 | [diff] [blame] | 94 | |
[email protected] | c38f941 | 2012-12-04 21:18:21 | [diff] [blame] | 95 | // ID of the window created by PhantomWindowController or DragWindowController. |
kevers | 23f3987d | 2014-09-17 13:50:12 | [diff] [blame] | 96 | const int kShellWindowId_PhantomWindow = 23; |
[email protected] | b2da9b60 | 2014-03-05 18:39:52 | [diff] [blame] | 97 | |
98 | // The container for mouse cursor. | ||||
[email protected] | 6d94e3f | 2014-04-23 04:29:11 | [diff] [blame] | 99 | const int kShellWindowId_MouseCursorContainer = 24; |
[email protected] | b2da9b60 | 2014-03-05 18:39:52 | [diff] [blame] | 100 | |
[email protected] | a07615f | 2012-10-24 08:23:08 | [diff] [blame] | 101 | // The topmost container, used for power off animation. |
[email protected] | 6d94e3f | 2014-04-23 04:29:11 | [diff] [blame] | 102 | const int kShellWindowId_PowerButtonAnimationContainer = 25; |
[email protected] | a07615f | 2012-10-24 08:23:08 | [diff] [blame] | 103 | |
[email protected] | 55f59335 | 2011-12-24 05:42:46 | [diff] [blame] | 104 | } // namespace ash |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 105 | |
106 | |||||
[email protected] | b65bdda | 2011-12-23 23:35:31 | [diff] [blame] | 107 | #endif // ASH_SHELL_WINDOW_IDS_H_ |