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

Side by Side Diff: ash/shell_window_ids.h

Issue 1921423002: Moves DefaultContainer and PanelContainer to wm_shell_window_ids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_2
Patch Set: improve readability? Created 4 years, 7 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 | « no previous file | ash/wm/common/wm_shell_window_ids.h » ('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_SHELL_WINDOW_IDS_H_ 5 #ifndef ASH_SHELL_WINDOW_IDS_H_
6 #define ASH_SHELL_WINDOW_IDS_H_ 6 #define ASH_SHELL_WINDOW_IDS_H_
7 7
8 #include "ash/wm/common/wm_shell_window_ids.h" 8 #include "ash/wm/common/wm_shell_window_ids.h"
9 9
10 // Declarations of ids of special shell windows. 10 // Declarations of ids of special shell windows.
(...skipping 19 matching lines...) Expand all
30 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. 30 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent.
31 // This container is not visible. 31 // This container is not visible.
32 const int kShellWindowId_UnparentedControlContainer = 3; 32 const int kShellWindowId_UnparentedControlContainer = 3;
33 33
34 // The desktop background window. 34 // The desktop background window.
35 const int kShellWindowId_DesktopBackgroundContainer = 4; 35 const int kShellWindowId_DesktopBackgroundContainer = 4;
36 36
37 // The virtual keyboard container. 37 // The virtual keyboard container.
38 const int kShellWindowId_VirtualKeyboardContainer = 5; 38 const int kShellWindowId_VirtualKeyboardContainer = 5;
39 39
40 // TODO(sky): rename kShellWindowId_DefaultContainer. 40 // The container for standard top-level windows. Defined in wm_shell_window_ids.
41 41 // kShellWindowId_DefaultContainer = 6;
James Cook 2016/04/27 00:53:30 Yeah, this is much easier for me to read.
42 // The container for standard top-level windows.
43 const int kShellWindowId_DefaultContainer = 6;
44 42
45 // The container for top-level windows with the 'always-on-top' flag set. 43 // The container for top-level windows with the 'always-on-top' flag set.
46 const int kShellWindowId_AlwaysOnTopContainer = 7; 44 const int kShellWindowId_AlwaysOnTopContainer = 7;
47 45
48 // The container for windows docked to either side of the desktop. Shell id is 46 // The container for windows docked to either side of the desktop. Defined in
49 // defined in wm_shell_window_ids. 47 // wm_shell_window_ids.
50 48 // kShellWindowId_DockedContainer = 8;
51 static_assert(kShellWindowId_AlwaysOnTopContainer + 1 ==
52 kShellWindowId_DockedContainer,
53 "docked container must be immediately after always on top");
54 49
55 // The container for the shelf. 50 // The container for the shelf.
56 const int kShellWindowId_ShelfContainer = 9; 51 const int kShellWindowId_ShelfContainer = 9;
57 52
58 static_assert(kShellWindowId_DockedContainer + 1 ==
59 kShellWindowId_ShelfContainer,
60 "shelf container must be immediately after docked container");
61
62 // The container for bubbles which float over the shelf. 53 // The container for bubbles which float over the shelf.
63 const int kShellWindowId_ShelfBubbleContainer = 10; 54 const int kShellWindowId_ShelfBubbleContainer = 10;
64 55
65 // The container for panel windows. 56 // The container for panel windows. Defined in wm_shell_window_ids.
66 const int kShellWindowId_PanelContainer = 11; 57 // kShellWindowId_PanelContainer = 11;
67 58
68 // The container for the app list. 59 // The container for the app list.
69 const int kShellWindowId_AppListContainer = 12; 60 const int kShellWindowId_AppListContainer = 12;
70 61
71 // The container for user-specific modal windows. 62 // The container for user-specific modal windows.
72 const int kShellWindowId_SystemModalContainer = 13; 63 const int kShellWindowId_SystemModalContainer = 13;
73 64
74 // The container for the lock screen background. 65 // The container for the lock screen background.
75 const int kShellWindowId_LockScreenBackgroundContainer = 14; 66 const int kShellWindowId_LockScreenBackgroundContainer = 14;
76 67
(...skipping 27 matching lines...) Expand all
104 95
105 // ID of the window created by PhantomWindowController or DragWindowController. 96 // ID of the window created by PhantomWindowController or DragWindowController.
106 const int kShellWindowId_PhantomWindow = 23; 97 const int kShellWindowId_PhantomWindow = 23;
107 98
108 // The container for mouse cursor. 99 // The container for mouse cursor.
109 const int kShellWindowId_MouseCursorContainer = 24; 100 const int kShellWindowId_MouseCursorContainer = 24;
110 101
111 // The topmost container, used for power off animation. 102 // The topmost container, used for power off animation.
112 const int kShellWindowId_PowerButtonAnimationContainer = 25; 103 const int kShellWindowId_PowerButtonAnimationContainer = 25;
113 104
105 static_assert((kShellWindowId_DefaultContainer - 1 ==
106 kShellWindowId_VirtualKeyboardContainer) &&
107 (kShellWindowId_DefaultContainer + 1 ==
108 kShellWindowId_AlwaysOnTopContainer),
109 "default between keyboard and always-on-top");
James Cook 2016/04/27 00:53:30 optional: Maybe stick the container that is in the
110
111 static_assert((kShellWindowId_DockedContainer - 1 ==
112 kShellWindowId_AlwaysOnTopContainer) &&
113 (kShellWindowId_DockedContainer + 1 ==
114 kShellWindowId_ShelfContainer),
115 "docked between always-on-top and shelf");
116
117 static_assert((kShellWindowId_PanelContainer - 1 ==
118 kShellWindowId_ShelfBubbleContainer) &&
119 (kShellWindowId_PanelContainer + 1 ==
120 kShellWindowId_AppListContainer),
121 "panel between shelf-bubble and app-list");
122
114 } // namespace ash 123 } // namespace ash
115 124
116
117 #endif // ASH_SHELL_WINDOW_IDS_H_ 125 #endif // ASH_SHELL_WINDOW_IDS_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/common/wm_shell_window_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698