Chromium Code Reviews| 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 #include <cstdint> | |
| 9 | |
| 10 #include "ash/public/cpp/ash_public_export.h" | |
| 11 | |
| 8 namespace ash { | 12 namespace ash { |
| 9 | 13 |
| 10 enum ShelfAlignment { | 14 enum ShelfAlignment { |
| 11 SHELF_ALIGNMENT_BOTTOM, | 15 SHELF_ALIGNMENT_BOTTOM, |
| 12 SHELF_ALIGNMENT_LEFT, | 16 SHELF_ALIGNMENT_LEFT, |
| 13 SHELF_ALIGNMENT_RIGHT, | 17 SHELF_ALIGNMENT_RIGHT, |
| 14 // Top has never been supported. | 18 // Top has never been supported. |
| 15 | 19 |
| 16 // The locked alignment is set temporarily and not saved to preferences. | 20 // The locked alignment is set temporarily and not saved to preferences. |
| 17 SHELF_ALIGNMENT_BOTTOM_LOCKED, | 21 SHELF_ALIGNMENT_BOTTOM_LOCKED, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 // ARC (App Runtime for Chrome - Android Play Store) apps. | 111 // ARC (App Runtime for Chrome - Android Play Store) apps. |
| 108 TYPE_APP, | 112 TYPE_APP, |
| 109 | 113 |
| 110 // Represents a dialog. | 114 // Represents a dialog. |
| 111 TYPE_DIALOG, | 115 TYPE_DIALOG, |
| 112 | 116 |
| 113 // Default value. | 117 // Default value. |
| 114 TYPE_UNDEFINED, | 118 TYPE_UNDEFINED, |
| 115 }; | 119 }; |
| 116 | 120 |
| 121 // Returns true if |i| is a valid ShelfItemType. | |
|
msw
2017/02/23 23:22:35
nit: i->type
Elliot Glaysher
2017/02/23 23:26:20
Done.
| |
| 122 ASH_PUBLIC_EXPORT bool IsValidShelfItemType(int64_t type); | |
| 123 | |
| 117 // Represents the status of applications in the shelf. | 124 // Represents the status of applications in the shelf. |
| 118 enum ShelfItemStatus { | 125 enum ShelfItemStatus { |
| 119 // A closed shelf item, i.e. has no live instance. | 126 // A closed shelf item, i.e. has no live instance. |
| 120 STATUS_CLOSED, | 127 STATUS_CLOSED, |
| 121 // A shelf item that has live instance. | 128 // A shelf item that has live instance. |
| 122 STATUS_RUNNING, | 129 STATUS_RUNNING, |
| 123 // An active shelf item that has focus. | 130 // An active shelf item that has focus. |
| 124 STATUS_ACTIVE, | 131 STATUS_ACTIVE, |
| 125 // A shelf item that needs user's attention. | 132 // A shelf item that needs user's attention. |
| 126 STATUS_ATTENTION, | 133 STATUS_ATTENTION, |
| 127 }; | 134 }; |
| 128 | 135 |
| 129 } // namespace ash | 136 } // namespace ash |
| 130 | 137 |
| 131 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ | 138 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
| OLD | NEW |