| OLD | NEW |
| 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_PUBLIC_CPP_SHELF_TYPES_H_ | 5 #ifndef ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
| 6 #define ASH_PUBLIC_CPP_SHELF_TYPES_H_ | 6 #define ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
| 7 | 7 |
| 8 namespace ash { | 8 namespace ash { |
| 9 | 9 |
| 10 enum ShelfAlignment { | 10 enum ShelfAlignment { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // The default transparent background. | 48 // The default transparent background. |
| 49 SHELF_BACKGROUND_DEFAULT, | 49 SHELF_BACKGROUND_DEFAULT, |
| 50 | 50 |
| 51 // The background when a window is overlapping. | 51 // The background when a window is overlapping. |
| 52 SHELF_BACKGROUND_OVERLAP, | 52 SHELF_BACKGROUND_OVERLAP, |
| 53 | 53 |
| 54 // The background when a window is maximized. | 54 // The background when a window is maximized. |
| 55 SHELF_BACKGROUND_MAXIMIZED, | 55 SHELF_BACKGROUND_MAXIMIZED, |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 typedef int ShelfID; |
| 59 const int kInvalidShelfID = 0; |
| 60 |
| 61 // The type of a shelf item. |
| 62 enum ShelfItemType { |
| 63 // Represents a running app panel. |
| 64 TYPE_APP_PANEL, |
| 65 |
| 66 // Represents a pinned shortcut to an app. |
| 67 TYPE_APP_SHORTCUT, |
| 68 |
| 69 // Toggles visiblity of the app list. |
| 70 TYPE_APP_LIST, |
| 71 |
| 72 // The browser shortcut button. |
| 73 TYPE_BROWSER_SHORTCUT, |
| 74 |
| 75 // Represents an app: Extension "V1" (legacy packaged and hosted) apps, |
| 76 // Extension "V2" (platform) apps, |
| 77 // Arc (App Runtime for Chrome - Android Play Store) apps. |
| 78 TYPE_APP, |
| 79 |
| 80 // Represents a dialog. |
| 81 TYPE_DIALOG, |
| 82 |
| 83 // Default value. |
| 84 TYPE_UNDEFINED, |
| 85 }; |
| 86 |
| 87 // Represents the status of applications in the shelf. |
| 88 enum ShelfItemStatus { |
| 89 // A closed shelf item, i.e. has no live instance. |
| 90 STATUS_CLOSED, |
| 91 // A shelf item that has live instance. |
| 92 STATUS_RUNNING, |
| 93 // An active shelf item that has focus. |
| 94 STATUS_ACTIVE, |
| 95 // A shelf item that needs user's attention. |
| 96 STATUS_ATTENTION, |
| 97 }; |
| 98 |
| 58 } // namespace ash | 99 } // namespace ash |
| 59 | 100 |
| 60 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ | 101 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
| OLD | NEW |