[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] | e65507c8 | 2012-09-04 22:41:52 | [diff] [blame] | 12 | // TODO: we're using this in random places outside of ash, it shouldn't be in |
13 | // internal. | ||||
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 14 | namespace internal { |
15 | |||||
[email protected] | f52a0729 | 2012-02-23 19:06:14 | [diff] [blame] | 16 | // A higher-level container that holds all of the containers stacked below |
17 | // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for | ||||
18 | // animating lower-level containers. | ||||
19 | const int kShellWindowId_NonLockScreenContainersContainer = 0; | ||||
20 | |||||
21 | // A higher-level container that holds containers that hold lock-screen | ||||
22 | // windows. Only used by PowerButtonController for animating lower-level | ||||
23 | // containers. | ||||
24 | const int kShellWindowId_LockScreenContainersContainer = 1; | ||||
25 | |||||
26 | // A higher-level container that holds containers that hold lock-screen-related | ||||
27 | // windows (which we want to display while the screen is locked; effectively | ||||
28 | // containers stacked above kShellWindowId_LockSystemModalContainer). Only used | ||||
29 | // by PowerButtonController for animating lower-level containers. | ||||
30 | const int kShellWindowId_LockScreenRelatedContainersContainer = 2; | ||||
31 | |||||
[email protected] | 392cb7b | 2012-01-20 23:08:58 | [diff] [blame] | 32 | // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. |
33 | // This container is not visible. | ||||
[email protected] | f52a0729 | 2012-02-23 19:06:14 | [diff] [blame] | 34 | const int kShellWindowId_UnparentedControlContainer = 3; |
[email protected] | 392cb7b | 2012-01-20 23:08:58 | [diff] [blame] | 35 | |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 36 | // The desktop background window. |
[email protected] | e6e41d2f | 2012-10-29 19:22:19 | [diff] [blame] | 37 | const int kShellWindowId_DesktopBackgroundContainer = 4; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 38 | |
[email protected] | ef0e32cc | 2012-10-31 20:57:33 | [diff] [blame] | 39 | // TODO(sky): rename kShellWindowId_DefaultContainer. |
[email protected] | 9505857 | 2012-08-20 14:57:29 | [diff] [blame] | 40 | |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 41 | // The container for standard top-level windows. |
[email protected] | ef0e32cc | 2012-10-31 20:57:33 | [diff] [blame] | 42 | // WARNING: the only children of kShellWindowId_DefaultContainer are |
43 | // kShellWindowId_WorkspaceContainer. | ||||
[email protected] | e6e41d2f | 2012-10-29 19:22:19 | [diff] [blame] | 44 | const int kShellWindowId_DefaultContainer = 5; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 45 | |
[email protected] | 9505857 | 2012-08-20 14:57:29 | [diff] [blame] | 46 | // Used by Worskpace2 for each workspace. Contains standard top-level windows. |
47 | // WARNING: there may be more than one container with this id. | ||||
[email protected] | e6e41d2f | 2012-10-29 19:22:19 | [diff] [blame] | 48 | const int kShellWindowId_WorkspaceContainer = 6; |
[email protected] | 9505857 | 2012-08-20 14:57:29 | [diff] [blame] | 49 | |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 50 | // The container for top-level windows with the 'always-on-top' flag set. |
[email protected] | e6e41d2f | 2012-10-29 19:22:19 | [diff] [blame] | 51 | const int kShellWindowId_AlwaysOnTopContainer = 7; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 52 | |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 53 | // The container for windows docked to either side of the desktop. |
54 | const int kShellWindowId_DockedContainer = 8; | ||||
55 | |||||
[email protected] | db6b517 | 2011-12-27 21:42:19 | [diff] [blame] | 56 | // The container for panel windows. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 57 | const int kShellWindowId_PanelContainer = 9; |
[email protected] | db6b517 | 2011-12-27 21:42:19 | [diff] [blame] | 58 | |
[email protected] | 478c6c3 | 2013-03-09 02:50:58 | [diff] [blame] | 59 | // The container for the shelf. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 60 | const int kShellWindowId_ShelfContainer = 10; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 61 | |
[email protected] | c066b8d | 2012-03-26 00:23:16 | [diff] [blame] | 62 | // The container for the app list. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 63 | const int kShellWindowId_AppListContainer = 11; |
[email protected] | c066b8d | 2012-03-26 00:23:16 | [diff] [blame] | 64 | |
[email protected] | e29014c | 2011-11-16 18:25:51 | [diff] [blame] | 65 | // The container for user-specific modal windows. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 66 | const int kShellWindowId_SystemModalContainer = 12; |
[email protected] | e29014c | 2011-11-16 18:25:51 | [diff] [blame] | 67 | |
[email protected] | f471accc | 2012-06-26 16:04:40 | [diff] [blame] | 68 | // The container for input method components such like candidate windows. They |
69 | // are almost panels but have no activations/focus, and they should appear over | ||||
70 | // the AppList and SystemModal dialogs. | ||||
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 71 | const int kShellWindowId_InputMethodContainer = 13; |
[email protected] | f471accc | 2012-06-26 16:04:40 | [diff] [blame] | 72 | |
[email protected] | b4ddc7a | 2012-08-07 04:17:32 | [diff] [blame] | 73 | // The container for the lock screen background. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 74 | const int kShellWindowId_LockScreenBackgroundContainer = 14; |
[email protected] | b4ddc7a | 2012-08-07 04:17:32 | [diff] [blame] | 75 | |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 76 | // The container for the lock screen. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 77 | const int kShellWindowId_LockScreenContainer = 15; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 78 | |
[email protected] | 55bdb50 | 2011-11-29 20:26:25 | [diff] [blame] | 79 | // The container for the lock screen modal windows. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 80 | const int kShellWindowId_LockSystemModalContainer = 16; |
[email protected] | 55bdb50 | 2011-11-29 20:26:25 | [diff] [blame] | 81 | |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 82 | // The container for the status area. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 83 | const int kShellWindowId_StatusContainer = 17; |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 84 | |
[email protected] | 9dea0a2 | 2012-02-02 20:00:43 | [diff] [blame] | 85 | // The container for menus. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 86 | const int kShellWindowId_MenuContainer = 18; |
[email protected] | 9dea0a2 | 2012-02-02 20:00:43 | [diff] [blame] | 87 | |
88 | // The container for drag/drop images and tooltips. | ||||
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 89 | const int kShellWindowId_DragImageAndTooltipContainer = 19; |
[email protected] | cec568d6f | 2012-01-07 00:49:26 | [diff] [blame] | 90 | |
91 | // The container for bubbles briefly overlaid onscreen to show settings changes | ||||
92 | // (volume, brightness, etc.). | ||||
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 93 | const int kShellWindowId_SettingBubbleContainer = 20; |
[email protected] | 87b0d82e | 2011-10-07 21:02:59 | [diff] [blame] | 94 | |
[email protected] | 0b0b074 | 2012-02-16 13:23:45 | [diff] [blame] | 95 | // The container for special components overlaid onscreen, such as the |
96 | // region selector for partial screenshots. | ||||
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 97 | const int kShellWindowId_OverlayContainer = 21; |
[email protected] | 0b0b074 | 2012-02-16 13:23:45 | [diff] [blame] | 98 | |
[email protected] | c38f941 | 2012-12-04 21:18:21 | [diff] [blame] | 99 | // ID of the window created by PhantomWindowController or DragWindowController. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 100 | const int kShellWindowId_PhantomWindow = 22; |
[email protected] | e65507c8 | 2012-09-04 22:41:52 | [diff] [blame] | 101 | |
[email protected] | a07615f | 2012-10-24 08:23:08 | [diff] [blame] | 102 | // The topmost container, used for power off animation. |
[email protected] | beb4e5c | 2013-06-18 15:37:07 | [diff] [blame^] | 103 | const int kShellWindowId_PowerButtonAnimationContainer = 23; |
[email protected] | a07615f | 2012-10-24 08:23:08 | [diff] [blame] | 104 | |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 105 | } // namespace internal |
106 | |||||
[email protected] | 55f59335 | 2011-12-24 05:42:46 | [diff] [blame] | 107 | } // namespace ash |
[email protected] | 22cba5b | 2011-09-30 17:09:21 | [diff] [blame] | 108 | |
109 | |||||
[email protected] | b65bdda | 2011-12-23 23:35:31 | [diff] [blame] | 110 | #endif // ASH_SHELL_WINDOW_IDS_H_ |