Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: ash/public/cpp/shell_window_ids.h

Issue 2700523004: Remove docked windows entirely in M59. (Closed)
Patch Set: Rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/metrics/user_metrics_recorder.cc ('k') | ash/public/cpp/shell_window_ids.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 = 19;
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
111 // A list of all the above valid container IDs. Add any new ID to this list.
112 // This list is needed to validate we have no duplicate IDs.
113 const int32_t kAllShellContainerIds[] = {
114 kShellWindowId_NonLockScreenContainersContainer,
115 kShellWindowId_LockScreenContainersContainer,
116 kShellWindowId_LockScreenRelatedContainersContainer,
117 kShellWindowId_UnparentedControlContainer,
118 kShellWindowId_WallpaperContainer,
119 kShellWindowId_VirtualKeyboardContainer,
120 kShellWindowId_DefaultContainer,
121 kShellWindowId_AlwaysOnTopContainer,
122 kShellWindowId_ShelfContainer,
123 kShellWindowId_ShelfBubbleContainer,
124 kShellWindowId_PanelContainer,
125 kShellWindowId_AppListContainer,
126 kShellWindowId_SystemModalContainer,
127 kShellWindowId_LockScreenWallpaperContainer,
128 kShellWindowId_LockScreenContainer,
129 kShellWindowId_LockSystemModalContainer,
130 kShellWindowId_StatusContainer,
131 kShellWindowId_ImeWindowParentContainer,
132 kShellWindowId_MenuContainer,
133 kShellWindowId_DragImageAndTooltipContainer,
134 kShellWindowId_SettingBubbleContainer,
135 kShellWindowId_OverlayContainer,
136 kShellWindowId_PhantomWindow,
137 kShellWindowId_MouseCursorContainer,
138 kShellWindowId_PowerButtonAnimationContainer,
139 };
140
114 // These are the list of container ids of containers which may contain windows 141 // These are the list of container ids of containers which may contain windows
115 // that need to be activated. 142 // that need to be activated.
116 ASH_PUBLIC_EXPORT extern const int32_t kActivatableShellWindowIds[]; 143 ASH_PUBLIC_EXPORT extern const int32_t kActivatableShellWindowIds[];
117 ASH_PUBLIC_EXPORT extern const size_t kNumActivatableShellWindowIds; 144 ASH_PUBLIC_EXPORT extern const size_t kNumActivatableShellWindowIds;
118 145
119 // Returns true if |id| is in |kActivatableShellWindowIds|. 146 // Returns true if |id| is in |kActivatableShellWindowIds|.
120 ASH_PUBLIC_EXPORT bool IsActivatableShellWindowId(int32_t id); 147 ASH_PUBLIC_EXPORT bool IsActivatableShellWindowId(int32_t id);
121 148
122 } // namespace ash 149 } // namespace ash
123 150
124 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ 151 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_
OLDNEW
« no previous file with comments | « ash/metrics/user_metrics_recorder.cc ('k') | ash/public/cpp/shell_window_ids.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698