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_SHELL_WINDOW_IDS_H_ 6 #define ASH_SHELL_WINDOW_IDS_H_ 7 8 // Declarations of ids of special shell windows. 9 10 namespace ash { 11 12 // TODO: we're using this in random places outside of ash, it shouldn't be in 13 // internal. 14 namespace internal { 15 16 // A higher-level container that holds all of the containers stacked below 17 // kShellWindowId_LockScreenContainer. Only used by PowerButtonController for 18 // animating lower-level containers. 19 const int kShellWindowId_NonLockScreenContainersContainer = 0; 20 21 // A higher-level container that holds containers that hold lock-screen 22 // windows. Only used by PowerButtonController for animating lower-level 23 // containers. 24 const int kShellWindowId_LockScreenContainersContainer = 1; 25 26 // A higher-level container that holds containers that hold lock-screen-related 27 // windows (which we want to display while the screen is locked; effectively 28 // containers stacked above kShellWindowId_LockSystemModalContainer). Only used 29 // by PowerButtonController for animating lower-level containers. 30 const int kShellWindowId_LockScreenRelatedContainersContainer = 2; 31 32 // A container used for windows of WINDOW_TYPE_CONTROL that have no parent. 33 // This container is not visible. 34 const int kShellWindowId_UnparentedControlContainer = 3; 35 36 // The desktop background window. 37 const int kShellWindowId_DesktopBackgroundContainer = 4; 38 39 // The virtual keyboard container. 40 const int kShellWindowId_VirtualKeyboardContainer = 5; 41 42 // TODO(sky): rename kShellWindowId_DefaultContainer. 43 44 // The container for standard top-level windows. 45 const int kShellWindowId_DefaultContainer = 6; 46 47 // The container for top-level windows with the 'always-on-top' flag set. 48 const int kShellWindowId_AlwaysOnTopContainer = 7; 49 50 // The container for windows docked to either side of the desktop. 51 const int kShellWindowId_DockedContainer = 8; 52 53 // The container for the shelf. 54 const int kShellWindowId_ShelfContainer = 9; 55 56 // The container for bubbles which float over the shelf. 57 const int kShellWindowId_ShelfBubbleContainer = 10; 58 59 // The container for panel windows. 60 const int kShellWindowId_PanelContainer = 11; 61 62 // The container for the app list. 63 const int kShellWindowId_AppListContainer = 12; 64 65 // The container for user-specific modal windows. 66 const int kShellWindowId_SystemModalContainer = 13; 67 68 // The container for input method components such like candidate windows. They 69 // are almost panels but have no activations/focus, and they should appear over 70 // the AppList and SystemModal dialogs. 71 const int kShellWindowId_InputMethodContainer = 14; 72 73 // The container for the lock screen background. 74 const int kShellWindowId_LockScreenBackgroundContainer = 15; 75 76 // The container for the lock screen. 77 const int kShellWindowId_LockScreenContainer = 16; 78 79 // The container for the lock screen modal windows. 80 const int kShellWindowId_LockSystemModalContainer = 17; 81 82 // The container for the status area. 83 const int kShellWindowId_StatusContainer = 18; 84 85 // The container for menus. 86 const int kShellWindowId_MenuContainer = 19; 87 88 // The container for drag/drop images and tooltips. 89 const int kShellWindowId_DragImageAndTooltipContainer = 20; 90 91 // The container for bubbles briefly overlaid onscreen to show settings changes 92 // (volume, brightness, etc.). 93 const int kShellWindowId_SettingBubbleContainer = 21; 94 95 // The container for special components overlaid onscreen, such as the 96 // region selector for partial screenshots. 97 const int kShellWindowId_OverlayContainer = 22; 98 99 // ID of the window created by PhantomWindowController or DragWindowController. 100 const int kShellWindowId_PhantomWindow = 23; 101 102 // The topmost container, used for power off animation. 103 const int kShellWindowId_PowerButtonAnimationContainer = 24; 104 105 } // namespace internal 106 107 } // namespace ash 108 109 110 #endif // ASH_SHELL_WINDOW_IDS_H_ 111