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_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ | 5 #ifndef ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ |
6 #define ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ | 6 #define ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // The virtual keyboard container. | 43 // The virtual keyboard container. |
44 // NOTE: this is lazily created. | 44 // NOTE: this is lazily created. |
45 const int32_t kShellWindowId_VirtualKeyboardContainer = 5; | 45 const int32_t kShellWindowId_VirtualKeyboardContainer = 5; |
46 | 46 |
47 // The container for standard top-level windows. | 47 // The container for standard top-level windows. |
48 const int32_t kShellWindowId_DefaultContainer = 6; | 48 const int32_t kShellWindowId_DefaultContainer = 6; |
49 | 49 |
50 // The container for top-level windows with the 'always-on-top' flag set. | 50 // The container for top-level windows with the 'always-on-top' flag set. |
51 const int32_t kShellWindowId_AlwaysOnTopContainer = 7; | 51 const int32_t kShellWindowId_AlwaysOnTopContainer = 7; |
52 | 52 |
53 // The container for windows docked to either side of the desktop. | |
54 const int32_t kShellWindowId_DockedContainer = 8; | |
55 | |
56 // The container for the shelf. | 53 // The container for the shelf. |
57 const int32_t kShellWindowId_ShelfContainer = 9; | 54 const int32_t kShellWindowId_ShelfContainer = 8; |
58 | 55 |
59 // The container for bubbles which float over the shelf. | 56 // The container for bubbles which float over the shelf. |
60 const int32_t kShellWindowId_ShelfBubbleContainer = 10; | 57 const int32_t kShellWindowId_ShelfBubbleContainer = 9; |
61 | 58 |
62 // The container for panel windows. | 59 // The container for panel windows. |
63 const int32_t kShellWindowId_PanelContainer = 11; | 60 const int32_t kShellWindowId_PanelContainer = 10; |
64 | 61 |
65 // The container for the app list. | 62 // The container for the app list. |
66 const int32_t kShellWindowId_AppListContainer = 12; | 63 const int32_t kShellWindowId_AppListContainer = 11; |
67 | 64 |
68 // The container for user-specific modal windows. | 65 // The container for user-specific modal windows. |
69 const int32_t kShellWindowId_SystemModalContainer = 13; | 66 const int32_t kShellWindowId_SystemModalContainer = 12; |
70 | 67 |
71 // The container for the lock screen wallpaper (lock screen background). | 68 // The container for the lock screen wallpaper (lock screen background). |
72 const int32_t kShellWindowId_LockScreenWallpaperContainer = 14; | 69 const int32_t kShellWindowId_LockScreenWallpaperContainer = 13; |
73 | 70 |
74 // The container for the lock screen. | 71 // The container for the lock screen. |
75 const int32_t kShellWindowId_LockScreenContainer = 15; | 72 const int32_t kShellWindowId_LockScreenContainer = 14; |
76 | 73 |
77 // The container for the lock screen modal windows. | 74 // The container for the lock screen modal windows. |
78 const int32_t kShellWindowId_LockSystemModalContainer = 16; | 75 const int32_t kShellWindowId_LockSystemModalContainer = 15; |
79 | 76 |
80 // The container for the status area. | 77 // The container for the status area. |
81 const int32_t kShellWindowId_StatusContainer = 17; | 78 const int32_t kShellWindowId_StatusContainer = 16; |
82 | 79 |
83 // A parent container that holds the virtual keyboard container and ime windows | 80 // A parent container that holds the virtual keyboard container and ime windows |
84 // if any. This is to ensure that the virtual keyboard or ime window is stacked | 81 // if any. This is to ensure that the virtual keyboard or ime window is stacked |
85 // above most containers but below the mouse cursor and the power off animation. | 82 // above most containers but below the mouse cursor and the power off animation. |
86 const int32_t kShellWindowId_ImeWindowParentContainer = 18; | 83 const int32_t kShellWindowId_ImeWindowParentContainer = 17; |
87 | 84 |
88 // The container for menus. | 85 // The container for menus. |
89 const int32_t kShellWindowId_MenuContainer = 19; | 86 const int32_t kShellWindowId_MenuContainer = 18; |
90 | 87 |
91 // The container for drag/drop images and tooltips. | 88 // The container for drag/drop images and tooltips. |
92 const int32_t kShellWindowId_DragImageAndTooltipContainer = 20; | 89 const int32_t kShellWindowId_DragImageAndTooltipContainer = 10; |
93 | 90 |
94 // The container for bubbles briefly overlaid onscreen to show settings changes | 91 // The container for bubbles briefly overlaid onscreen to show settings changes |
95 // (volume, brightness, input method bubbles, etc.). | 92 // (volume, brightness, input method bubbles, etc.). |
96 const int32_t kShellWindowId_SettingBubbleContainer = 21; | 93 const int32_t kShellWindowId_SettingBubbleContainer = 20; |
97 | 94 |
98 // The container for special components overlaid onscreen, such as the | 95 // The container for special components overlaid onscreen, such as the |
99 // region selector for partial screenshots. | 96 // region selector for partial screenshots. |
100 const int32_t kShellWindowId_OverlayContainer = 22; | 97 const int32_t kShellWindowId_OverlayContainer = 21; |
101 | 98 |
102 // ID of the window created by PhantomWindowController or DragWindowController. | 99 // ID of the window created by PhantomWindowController or DragWindowController. |
103 const int32_t kShellWindowId_PhantomWindow = 23; | 100 const int32_t kShellWindowId_PhantomWindow = 22; |
104 | 101 |
105 // The container for mouse cursor. | 102 // The container for mouse cursor. |
106 const int32_t kShellWindowId_MouseCursorContainer = 24; | 103 const int32_t kShellWindowId_MouseCursorContainer = 23; |
107 | 104 |
108 // The topmost container, used for power off animation. | 105 // The topmost container, used for power off animation. |
109 const int32_t kShellWindowId_PowerButtonAnimationContainer = 25; | 106 const int32_t kShellWindowId_PowerButtonAnimationContainer = 24; |
110 | 107 |
111 const int32_t kShellWindowId_Min = 0; | 108 const int32_t kShellWindowId_Min = 0; |
112 const int32_t kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer; | 109 const int32_t kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer; |
113 | 110 |
114 // These are the list of container ids of containers which may contain windows | 111 // These are the list of container ids of containers which may contain windows |
115 // that need to be activated. | 112 // that need to be activated. |
116 ASH_PUBLIC_EXPORT extern const int32_t kActivatableShellWindowIds[]; | 113 ASH_PUBLIC_EXPORT extern const int32_t kActivatableShellWindowIds[]; |
117 ASH_PUBLIC_EXPORT extern const size_t kNumActivatableShellWindowIds; | 114 ASH_PUBLIC_EXPORT extern const size_t kNumActivatableShellWindowIds; |
118 | 115 |
119 // Returns true if |id| is in |kActivatableShellWindowIds|. | 116 // Returns true if |id| is in |kActivatableShellWindowIds|. |
120 ASH_PUBLIC_EXPORT bool IsActivatableShellWindowId(int32_t id); | 117 ASH_PUBLIC_EXPORT bool IsActivatableShellWindowId(int32_t id); |
121 | 118 |
122 } // namespace ash | 119 } // namespace ash |
123 | 120 |
124 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ | 121 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ |
OLD | NEW |