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

Unified Diff: ash/public/cpp/shell_window_ids.h

Issue 2751523003: Convert Window Container Ids to an Enum (Closed)
Patch Set: Rebase ... Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/autoclick/mus/autoclick_application.cc ('k') | ash/touch_hud/mus/touch_hud_application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/cpp/shell_window_ids.h
diff --git a/ash/public/cpp/shell_window_ids.h b/ash/public/cpp/shell_window_ids.h
index 38f27716fd75fcdcdcc68ff8e936d15febd95b78..5f3ce132771dab12604d422a915e3f78029cbf18 100644
--- a/ash/public/cpp/shell_window_ids.h
+++ b/ash/public/cpp/shell_window_ids.h
@@ -14,103 +14,108 @@
namespace ash {
-// Used to indicate no shell window id.
-const int32_t kShellWindowId_Invalid = -1;
+enum ShellWindowId {
+ // Used to indicate no shell window id.
+ kShellWindowId_Invalid = -1,
-// The screen rotation container in between root window and its children, used
-// for screen rotation animation.
-const int32_t kShellWindowId_ScreenRotationContainer = 0;
+ // The screen rotation container in between root window and its children, used
+ // for screen rotation animation.
+ kShellWindowId_ScreenRotationContainer = 0,
-// A higher-level container that holds all of the containers stacked below
-// kShellWindowId_LockScreenContainer. Only used by PowerButtonController for
-// animating lower-level containers.
-const int32_t kShellWindowId_NonLockScreenContainersContainer = 1;
+ // A higher-level container that holds all of the containers stacked below
+ // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for
+ // animating lower-level containers.
+ kShellWindowId_NonLockScreenContainersContainer,
-// A higher-level container that holds containers that hold lock-screen
-// windows. Only used by PowerButtonController for animating lower-level
-// containers.
-const int32_t kShellWindowId_LockScreenContainersContainer = 2;
+ // A higher-level container that holds containers that hold lock-screen
+ // windows. Only used by PowerButtonController for animating lower-level
+ // containers.
+ kShellWindowId_LockScreenContainersContainer,
-// A higher-level container that holds containers that hold lock-screen-related
-// windows (which we want to display while the screen is locked; effectively
-// containers stacked above kShellWindowId_LockSystemModalContainer). Only used
-// by PowerButtonController for animating lower-level containers.
-const int32_t kShellWindowId_LockScreenRelatedContainersContainer = 3;
+ // A higher-level container that holds containers that hold
+ // lock-screen-related
+ // windows (which we want to display while the screen is locked, effectively
+ // containers stacked above kShellWindowId_LockSystemModalContainer). Only
+ // used by PowerButtonController for animating lower-level containers.
+ kShellWindowId_LockScreenRelatedContainersContainer,
-// A container used for windows of WINDOW_TYPE_CONTROL that have no parent.
-// This container is not visible.
-const int32_t kShellWindowId_UnparentedControlContainer = 4;
+ // A container used for windows of WINDOW_TYPE_CONTROL that have no parent.
+ // This container is not visible.
+ kShellWindowId_UnparentedControlContainer,
-// The wallpaper (desktop background) window.
-const int32_t kShellWindowId_WallpaperContainer = 5;
+ // The wallpaper (desktop background) window.
+ kShellWindowId_WallpaperContainer,
-// The virtual keyboard container.
-// NOTE: this is lazily created.
-const int32_t kShellWindowId_VirtualKeyboardContainer = 6;
+ // The virtual keyboard container.
+ // NOTE: this is lazily created.
+ kShellWindowId_VirtualKeyboardContainer,
-// The container for standard top-level windows.
-const int32_t kShellWindowId_DefaultContainer = 7;
+ // The container for standard top-level windows.
+ kShellWindowId_DefaultContainer,
-// The container for top-level windows with the 'always-on-top' flag set.
-const int32_t kShellWindowId_AlwaysOnTopContainer = 8;
+ // The container for top-level windows with the 'always-on-top' flag set.
+ kShellWindowId_AlwaysOnTopContainer,
-// The container for the shelf.
-const int32_t kShellWindowId_ShelfContainer = 9;
+ // The container for the shelf.
+ kShellWindowId_ShelfContainer,
-// The container for bubbles which float over the shelf.
-const int32_t kShellWindowId_ShelfBubbleContainer = 10;
+ // The container for bubbles which float over the shelf.
+ kShellWindowId_ShelfBubbleContainer,
-// The container for panel windows.
-const int32_t kShellWindowId_PanelContainer = 11;
+ // The container for panel windows.
+ kShellWindowId_PanelContainer,
-// The container for the app list.
-const int32_t kShellWindowId_AppListContainer = 12;
+ // The container for the app list.
+ kShellWindowId_AppListContainer,
-// The container for user-specific modal windows.
-const int32_t kShellWindowId_SystemModalContainer = 13;
+ // The container for user-specific modal windows.
+ kShellWindowId_SystemModalContainer,
-// The container for the lock screen wallpaper (lock screen background).
-const int32_t kShellWindowId_LockScreenWallpaperContainer = 14;
+ // The container for the lock screen wallpaper (lock screen background).
+ kShellWindowId_LockScreenWallpaperContainer,
-// The container for the lock screen.
-const int32_t kShellWindowId_LockScreenContainer = 15;
+ // The container for the lock screen.
+ kShellWindowId_LockScreenContainer,
-// The container for the lock screen modal windows.
-const int32_t kShellWindowId_LockSystemModalContainer = 16;
+ // The container for the lock screen modal windows.
+ kShellWindowId_LockSystemModalContainer,
-// The container for the status area.
-const int32_t kShellWindowId_StatusContainer = 17;
+ // The container for the status area.
+ kShellWindowId_StatusContainer,
-// A parent container that holds the virtual keyboard container and ime windows
-// if any. This is to ensure that the virtual keyboard or ime window is stacked
-// above most containers but below the mouse cursor and the power off animation.
-const int32_t kShellWindowId_ImeWindowParentContainer = 18;
+ // A parent container that holds the virtual keyboard container and ime
+ // windows if any. This is to ensure that the virtual keyboard or ime window
+ // is stacked above most containers but below the mouse cursor and the power
+ // off animation.
+ kShellWindowId_ImeWindowParentContainer,
-// The container for menus.
-const int32_t kShellWindowId_MenuContainer = 19;
+ // The container for menus.
+ kShellWindowId_MenuContainer,
-// The container for drag/drop images and tooltips.
-const int32_t kShellWindowId_DragImageAndTooltipContainer = 20;
+ // The container for drag/drop images and tooltips.
+ kShellWindowId_DragImageAndTooltipContainer,
-// The container for bubbles briefly overlaid onscreen to show settings changes
-// (volume, brightness, input method bubbles, etc.).
-const int32_t kShellWindowId_SettingBubbleContainer = 21;
+ // The container for bubbles briefly overlaid onscreen to show settings
+ // changes (volume, brightness, input method bubbles, etc.).
+ kShellWindowId_SettingBubbleContainer,
-// The container for special components overlaid onscreen, such as the
-// region selector for partial screenshots.
-const int32_t kShellWindowId_OverlayContainer = 22;
+ // The container for special components overlaid onscreen, such as the
+ // region selector for partial screenshots.
+ kShellWindowId_OverlayContainer,
-// ID of the window created by PhantomWindowController or DragWindowController.
-const int32_t kShellWindowId_PhantomWindow = 23;
+ // ID of the window created by PhantomWindowController or
+ // DragWindowController.
+ kShellWindowId_PhantomWindow,
-// The container for mouse cursor.
-const int32_t kShellWindowId_MouseCursorContainer = 24;
+ // The container for mouse cursor.
+ kShellWindowId_MouseCursorContainer,
-// The topmost container, used for power off animation.
-const int32_t kShellWindowId_PowerButtonAnimationContainer = 25;
+ // The topmost container, used for power off animation.
+ kShellWindowId_PowerButtonAnimationContainer,
-const int32_t kShellWindowId_Min = 0;
-const int32_t kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer;
+ kShellWindowId_Min = kShellWindowId_NonLockScreenContainersContainer,
+ kShellWindowId_Max = kShellWindowId_PowerButtonAnimationContainer,
+};
// A list of all the above valid container IDs. Add any new ID to this list.
// This list is needed to validate we have no duplicate IDs.
« no previous file with comments | « ash/autoclick/mus/autoclick_application.cc ('k') | ash/touch_hud/mus/touch_hud_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698