OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 module mash.wm.mojom; | 5 module mash.wm.mojom; |
6 | 6 |
7 // Containers for windows. This list is in the z-order of the windows, however | 7 // Containers for windows. This list is in the z-order of the windows, however |
8 // they are actually built in a hierarchy (e.g. USER_WORKSPACE and LOGIN_WINDOWS | 8 // they are actually built in a hierarchy (e.g. USER_CONTAINER and |
9 // are siblings). See RootWindowController::CreateContainers() for the full | 9 // LOGIN_CONTAINER are siblings). See RootWindowController::CreateContainers() |
10 // hierarchy. | 10 // for the full hierarchy. |
11 // | |
12 // NOTE: containers ending with '_CONTAINER' exist purely to hold other | |
13 // Containers. Containers whose name starts with an earlier name are children. | |
14 // For example, USER_BACKGROUND is a child of USER_CONTAINER and | |
15 // USER_PRIVATE_WINDOWS is a child of USER_PRIVATE_CONTAINER. | |
11 enum Container { | 16 enum Container { |
12 ROOT = 0, | 17 ROOT_CONTAINER = 0, |
13 ALL_USER_BACKGROUND, | 18 ALL_USER_BACKGROUND, |
14 USER_WORKSPACE, | 19 USER_CONTAINER, |
15 USER_BACKGROUND, | 20 USER_BACKGROUND, |
16 USER_PRIVATE, | 21 // Container that is hidden when screen is locked, child of USER_CONTAINER. |
17 USER_WINDOWS, | 22 USER_PRIVATE_CONTAINER, |
James Cook
2016/05/13 17:14:44
I think it would be just as clear to use a short n
sky
2016/05/13 19:14:06
Done.
| |
18 USER_ALWAYS_ON_TOP_WINDOWS, | 23 USER_PRIVATE_WINDOWS, |
19 USER_PRESENTATION_WINDOWS, | 24 USER_PRIVATE_ALWAYS_ON_TOP_WINDOWS, |
20 USER_SHELF, | 25 USER_PRIVATE_DOCKED_WINDOWS, |
26 USER_PRIVATE_PRESENTATION_WINDOWS, | |
27 USER_PRIVATE_SHELF, | |
28 USER_PRIVATE_PANELS, | |
29 USER_PRIVATE_APP_LIST, | |
30 USER_PRIVATE_SYSTEM_MODAL, | |
31 LOGIN_CONTAINER, | |
James Cook
2016/05/13 17:14:44
optional: This file might be clearer with a blank
sky
2016/05/13 19:14:06
I couldn't come up with a sensical way to add whit
| |
21 LOGIN_WINDOWS, | 32 LOGIN_WINDOWS, |
22 LOGIN_APP, // TODO(beng): what about dialog boxes login opens? | 33 LOGIN_APP, // TODO(beng): what about dialog boxes login opens? |
23 LOGIN_SHELF, | 34 LOGIN_SHELF, |
24 // Status area widget and message center notification popups. | 35 // Status area widget and message center notification popups. |
25 STATUS, | 36 STATUS, |
26 // Bubble windows, for example the sysui system tray bubble and the screen | 37 // Bubble windows, for example the sysui system tray bubble and the screen |
27 // brightness bubble. | 38 // brightness bubble. |
28 BUBBLES, | 39 BUBBLES, |
29 SYSTEM_MODAL_WINDOWS, | 40 SYSTEM_MODAL_WINDOWS, |
30 KEYBOARD, | 41 KEYBOARD, |
31 MENUS, | 42 MENUS, |
32 TOOLTIPS, | 43 DRAG_AND_TOOLTIPS, |
33 COUNT | 44 COUNT |
34 }; | 45 }; |
35 | 46 |
36 const string kWindowContainer_Property = "ash:window-container"; | 47 const string kWindowContainer_Property = "ash:window-container"; |
OLD | NEW |