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

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

Issue 2700523004: Remove docked windows entirely in M59. (Closed)
Patch Set: oshima + mfomitchev comments 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
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
11 #include "ash/public/cpp/ash_public_export.h" 11 #include "ash/public/cpp/ash_public_export.h"
12 #include "base/macros.h"
12 13
13 // Declarations of ids of special shell windows. 14 // Declarations of ids of special shell windows.
14 15
15 namespace ash { 16 namespace ash {
16 17
17 // Used to indicate no shell window id. 18 // Used to indicate no shell window id.
18 const int32_t kShellWindowId_Invalid = -1; 19 const int32_t kShellWindowId_Invalid = -1;
19 20
20 // A higher-level container that holds all of the containers stacked below 21 // A higher-level container that holds all of the containers stacked below
21 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for 22 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for
(...skipping 21 matching lines...) Expand all
43 // The virtual keyboard container. 44 // The virtual keyboard container.
44 // NOTE: this is lazily created. 45 // NOTE: this is lazily created.
45 const int32_t kShellWindowId_VirtualKeyboardContainer = 5; 46 const int32_t kShellWindowId_VirtualKeyboardContainer = 5;
46 47
47 // The container for standard top-level windows. 48 // The container for standard top-level windows.
48 const int32_t kShellWindowId_DefaultContainer = 6; 49 const int32_t kShellWindowId_DefaultContainer = 6;
49 50
50 // The container for top-level windows with the 'always-on-top' flag set. 51 // The container for top-level windows with the 'always-on-top' flag set.
51 const int32_t kShellWindowId_AlwaysOnTopContainer = 7; 52 const int32_t kShellWindowId_AlwaysOnTopContainer = 7;
52 53
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. 54 // The container for the shelf.
57 const int32_t kShellWindowId_ShelfContainer = 9; 55 const int32_t kShellWindowId_ShelfContainer = 8;
58 56
59 // The container for bubbles which float over the shelf. 57 // The container for bubbles which float over the shelf.
60 const int32_t kShellWindowId_ShelfBubbleContainer = 10; 58 const int32_t kShellWindowId_ShelfBubbleContainer = 9;
61 59
62 // The container for panel windows. 60 // The container for panel windows.
63 const int32_t kShellWindowId_PanelContainer = 11; 61 const int32_t kShellWindowId_PanelContainer = 10;
64 62
65 // The container for the app list. 63 // The container for the app list.
66 const int32_t kShellWindowId_AppListContainer = 12; 64 const int32_t kShellWindowId_AppListContainer = 11;
67 65
68 // The container for user-specific modal windows. 66 // The container for user-specific modal windows.
69 const int32_t kShellWindowId_SystemModalContainer = 13; 67 const int32_t kShellWindowId_SystemModalContainer = 12;
70 68
71 // The container for the lock screen wallpaper (lock screen background). 69 // The container for the lock screen wallpaper (lock screen background).
72 const int32_t kShellWindowId_LockScreenWallpaperContainer = 14; 70 const int32_t kShellWindowId_LockScreenWallpaperContainer = 13;
73 71
74 // The container for the lock screen. 72 // The container for the lock screen.
75 const int32_t kShellWindowId_LockScreenContainer = 15; 73 const int32_t kShellWindowId_LockScreenContainer = 14;
76 74
77 // The container for the lock screen modal windows. 75 // The container for the lock screen modal windows.
78 const int32_t kShellWindowId_LockSystemModalContainer = 16; 76 const int32_t kShellWindowId_LockSystemModalContainer = 15;
79 77
80 // The container for the status area. 78 // The container for the status area.
81 const int32_t kShellWindowId_StatusContainer = 17; 79 const int32_t kShellWindowId_StatusContainer = 16;
82 80
83 // A parent container that holds the virtual keyboard container and ime windows 81 // 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 82 // 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. 83 // above most containers but below the mouse cursor and the power off animation.
86 const int32_t kShellWindowId_ImeWindowParentContainer = 18; 84 const int32_t kShellWindowId_ImeWindowParentContainer = 17;
87 85
88 // The container for menus. 86 // The container for menus.
89 const int32_t kShellWindowId_MenuContainer = 19; 87 const int32_t kShellWindowId_MenuContainer = 18;
90 88
91 // The container for drag/drop images and tooltips. 89 // The container for drag/drop images and tooltips.
92 const int32_t kShellWindowId_DragImageAndTooltipContainer = 20; 90 const int32_t kShellWindowId_DragImageAndTooltipContainer = 19;
93 91
94 // The container for bubbles briefly overlaid onscreen to show settings changes 92 // The container for bubbles briefly overlaid onscreen to show settings changes
95 // (volume, brightness, input method bubbles, etc.). 93 // (volume, brightness, input method bubbles, etc.).
96 const int32_t kShellWindowId_SettingBubbleContainer = 21; 94 const int32_t kShellWindowId_SettingBubbleContainer = 20;
97 95
98 // The container for special components overlaid onscreen, such as the 96 // The container for special components overlaid onscreen, such as the
99 // region selector for partial screenshots. 97 // region selector for partial screenshots.
100 const int32_t kShellWindowId_OverlayContainer = 22; 98 const int32_t kShellWindowId_OverlayContainer = 21;
101 99
102 // ID of the window created by PhantomWindowController or DragWindowController. 100 // ID of the window created by PhantomWindowController or DragWindowController.
103 const int32_t kShellWindowId_PhantomWindow = 23; 101 const int32_t kShellWindowId_PhantomWindow = 22;
104 102
105 // The container for mouse cursor. 103 // The container for mouse cursor.
106 const int32_t kShellWindowId_MouseCursorContainer = 24; 104 const int32_t kShellWindowId_MouseCursorContainer = 23;
107 105
108 // The topmost container, used for power off animation. 106 // The topmost container, used for power off animation.
109 const int32_t kShellWindowId_PowerButtonAnimationContainer = 25; 107 const int32_t kShellWindowId_PowerButtonAnimationContainer = 24;
110 108
111 const int32_t kShellWindowId_Min = 0; 109 const int32_t kShellWindowId_Min = 0;
112 const int32_t kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer; 110 const int32_t kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer;
113 111
112 // A list of all the above valid container IDs. Add any new ID to this list.
113 // This list is needed to to validate we have no duplicate IDs.
varkha 2017/02/28 00:59:02 nit: double 'to'.
afakhry 2017/03/09 22:28:27 Done.
114 const int32_t kAllShellContainerIds[] = {
115 kShellWindowId_NonLockScreenContainersContainer,
116 kShellWindowId_LockScreenContainersContainer,
117 kShellWindowId_LockScreenRelatedContainersContainer,
118 kShellWindowId_UnparentedControlContainer,
119 kShellWindowId_WallpaperContainer,
120 kShellWindowId_VirtualKeyboardContainer,
121 kShellWindowId_DefaultContainer,
122 kShellWindowId_AlwaysOnTopContainer,
123 kShellWindowId_ShelfContainer,
124 kShellWindowId_ShelfBubbleContainer,
125 kShellWindowId_PanelContainer,
126 kShellWindowId_AppListContainer,
127 kShellWindowId_SystemModalContainer,
128 kShellWindowId_LockScreenWallpaperContainer,
129 kShellWindowId_LockScreenContainer,
130 kShellWindowId_LockSystemModalContainer,
131 kShellWindowId_StatusContainer,
132 kShellWindowId_ImeWindowParentContainer,
133 kShellWindowId_MenuContainer,
134 kShellWindowId_DragImageAndTooltipContainer,
135 kShellWindowId_SettingBubbleContainer,
136 kShellWindowId_OverlayContainer,
137 kShellWindowId_PhantomWindow,
138 kShellWindowId_MouseCursorContainer,
139 kShellWindowId_PowerButtonAnimationContainer,
140 };
141
142 const size_t kAllShellContainerIdsSize = arraysize(kAllShellContainerIds);
varkha 2017/02/28 00:59:02 Can this size and '#include "base/macros.h' be mov
afakhry 2017/03/09 22:28:27 Done.
143
114 // These are the list of container ids of containers which may contain windows 144 // These are the list of container ids of containers which may contain windows
115 // that need to be activated. 145 // that need to be activated.
116 ASH_PUBLIC_EXPORT extern const int32_t kActivatableShellWindowIds[]; 146 ASH_PUBLIC_EXPORT extern const int32_t kActivatableShellWindowIds[];
117 ASH_PUBLIC_EXPORT extern const size_t kNumActivatableShellWindowIds; 147 ASH_PUBLIC_EXPORT extern const size_t kNumActivatableShellWindowIds;
118 148
119 // Returns true if |id| is in |kActivatableShellWindowIds|. 149 // Returns true if |id| is in |kActivatableShellWindowIds|.
120 ASH_PUBLIC_EXPORT bool IsActivatableShellWindowId(int32_t id); 150 ASH_PUBLIC_EXPORT bool IsActivatableShellWindowId(int32_t id);
121 151
122 } // namespace ash 152 } // namespace ash
123 153
124 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_ 154 #endif // ASH_PUBLIC_CPP_SHELL_WINDOW_IDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698