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

Side by Side Diff: ash/common/shell_window_ids.h

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 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/common/shelf/wm_shelf.cc ('k') | ash/common/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_SHELL_WINDOW_IDS_H_
6 #define ASH_COMMON_SHELL_WINDOW_IDS_H_
7
8 #include <stddef.h>
9
10 #include "ash/ash_export.h"
11
12 // Declarations of ids of special shell windows.
13
14 namespace ash {
15
16 // Used to indicate no shell window id.
17 const int kShellWindowId_Invalid = -1;
18
19 // A higher-level container that holds all of the containers stacked below
20 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for
21 // animating lower-level containers.
22 const int kShellWindowId_NonLockScreenContainersContainer = 0;
23
24 // A higher-level container that holds containers that hold lock-screen
25 // windows. Only used by PowerButtonController for animating lower-level
26 // containers.
27 const int kShellWindowId_LockScreenContainersContainer = 1;
28
29 // A higher-level container that holds containers that hold lock-screen-related
30 // windows (which we want to display while the screen is locked; effectively
31 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used
32 // by PowerButtonController for animating lower-level containers.
33 const int kShellWindowId_LockScreenRelatedContainersContainer = 2;
34
35 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent.
36 // This container is not visible.
37 const int kShellWindowId_UnparentedControlContainer = 3;
38
39 // The wallpaper (desktop background) window.
40 const int kShellWindowId_WallpaperContainer = 4;
41
42 // The virtual keyboard container.
43 // NOTE: this is lazily created.
44 const int kShellWindowId_VirtualKeyboardContainer = 5;
45
46 // The container for standard top-level windows.
47 const int kShellWindowId_DefaultContainer = 6;
48
49 // The container for top-level windows with the 'always-on-top' flag set.
50 const int kShellWindowId_AlwaysOnTopContainer = 7;
51
52 // The container for windows docked to either side of the desktop.
53 const int kShellWindowId_DockedContainer = 8;
54
55 // The container for the shelf.
56 const int kShellWindowId_ShelfContainer = 9;
57
58 // The container for bubbles which float over the shelf.
59 const int kShellWindowId_ShelfBubbleContainer = 10;
60
61 // The container for panel windows.
62 const int kShellWindowId_PanelContainer = 11;
63
64 // The container for the app list.
65 const int kShellWindowId_AppListContainer = 12;
66
67 // The container for user-specific modal windows.
68 const int kShellWindowId_SystemModalContainer = 13;
69
70 // The container for the lock screen wallpaper (lock screen background).
71 const int kShellWindowId_LockScreenWallpaperContainer = 14;
72
73 // The container for the lock screen.
74 const int kShellWindowId_LockScreenContainer = 15;
75
76 // The container for the lock screen modal windows.
77 const int kShellWindowId_LockSystemModalContainer = 16;
78
79 // The container for the status area.
80 const int kShellWindowId_StatusContainer = 17;
81
82 // A parent container that holds the virtual keyboard container and ime windows
83 // if any. This is to ensure that the virtual keyboard or ime window is stacked
84 // above most containers but below the mouse cursor and the power off animation.
85 const int kShellWindowId_ImeWindowParentContainer = 18;
86
87 // The container for menus.
88 const int kShellWindowId_MenuContainer = 19;
89
90 // The container for drag/drop images and tooltips.
91 const int kShellWindowId_DragImageAndTooltipContainer = 20;
92
93 // The container for bubbles briefly overlaid onscreen to show settings changes
94 // (volume, brightness, input method bubbles, etc.).
95 const int kShellWindowId_SettingBubbleContainer = 21;
96
97 // The container for special components overlaid onscreen, such as the
98 // region selector for partial screenshots.
99 const int kShellWindowId_OverlayContainer = 22;
100
101 // ID of the window created by PhantomWindowController or DragWindowController.
102 const int kShellWindowId_PhantomWindow = 23;
103
104 // The container for mouse cursor.
105 const int kShellWindowId_MouseCursorContainer = 24;
106
107 // The topmost container, used for power off animation.
108 const int kShellWindowId_PowerButtonAnimationContainer = 25;
109
110 const int kShellWindowId_Min = 0;
111 const int kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer;
112
113 // These are the list of container ids of containers which may contain windows
114 // that need to be activated.
115 ASH_EXPORT extern const int kActivatableShellWindowIds[];
116 ASH_EXPORT extern const size_t kNumActivatableShellWindowIds;
117
118 // Returns true if |id| is in |kActivatableShellWindowIds|.
119 ASH_EXPORT bool IsActivatableShellWindowId(int id);
120
121 } // namespace ash
122
123 #endif // ASH_COMMON_SHELL_WINDOW_IDS_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/wm_shelf.cc ('k') | ash/common/shell_window_ids.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698