| 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 ash.mojom; | 5 module ash.mojom; |
| 6 | 6 |
| 7 // Containers for windows. This list is in the z-order of the windows, however | 7 // Containers windows may be parented to. |
| 8 // they are actually built in a hierarchy (e.g. USER and LOGIN are siblings). | 8 // NOTE: this is not the complete list of containers created by ash. See |
| 9 // See RootWindowController::CreateContainers() for the full hierarchy. | 9 // ash/common/shell_window_ids.h for the complete this. This is only a subset |
| 10 // | 10 // that other apps may need to parent windows to. |
| 11 // NOTE: containers whose name starts with an earlier name are children. | |
| 12 // For example, USER_BACKGROUND is a child of USER and USER_PRIVATE_WINDOWS is a | |
| 13 // child of USER_PRIVATE. | |
| 14 enum Container { | 11 enum Container { |
| 15 ROOT = 0, | 12 // TODO: remove everything but LOGIN_WINDOWS, http://crbug.com/616859. |
| 16 ALL_USER_BACKGROUND, | |
| 17 USER, | |
| 18 USER_BACKGROUND, | 13 USER_BACKGROUND, |
| 19 // Container that is hidden when screen is locked, child of USER. | |
| 20 USER_PRIVATE, | |
| 21 // Windows with no explicit container end up here. | |
| 22 USER_PRIVATE_WINDOWS, | |
| 23 USER_PRIVATE_ALWAYS_ON_TOP_WINDOWS, | |
| 24 USER_PRIVATE_DOCKED_WINDOWS, | |
| 25 USER_PRIVATE_PRESENTATION_WINDOWS, | |
| 26 USER_PRIVATE_SHELF, | 14 USER_PRIVATE_SHELF, |
| 27 USER_PRIVATE_PANELS, | |
| 28 USER_PRIVATE_APP_LIST, | |
| 29 USER_PRIVATE_SYSTEM_MODAL, | |
| 30 LOGIN, | |
| 31 LOGIN_WINDOWS, | 15 LOGIN_WINDOWS, |
| 32 LOGIN_APP, // TODO(beng): what about dialog boxes login opens? | |
| 33 LOGIN_SHELF, | |
| 34 // Status area widget and message center notification popups. | 16 // Status area widget and message center notification popups. |
| 35 STATUS, | 17 STATUS, |
| 36 // Bubble windows, for example the sysui system tray bubble and the screen | 18 // Bubble windows, for example the sysui system tray bubble and the screen |
| 37 // brightness bubble. | 19 // brightness bubble. |
| 38 BUBBLES, | 20 BUBBLES, |
| 39 SYSTEM_MODAL_WINDOWS, | |
| 40 KEYBOARD, | |
| 41 MENUS, | 21 MENUS, |
| 42 DRAG_AND_TOOLTIPS, | 22 DRAG_AND_TOOLTIPS, |
| 43 COUNT | |
| 44 }; | 23 }; |
| 45 | 24 |
| 46 const string kWindowContainer_Property = "ash:window-container"; | 25 const string kWindowContainer_Property = "ash:window-container"; |
| OLD | NEW |