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> | 8 #include <cstdint> |
9 | 9 |
| 10 #include "ash/public/cpp/app_launch_id.h" |
10 #include "ash/public/cpp/ash_public_export.h" | 11 #include "ash/public/cpp/ash_public_export.h" |
11 | 12 |
12 namespace ash { | 13 namespace ash { |
13 | 14 |
14 enum ShelfAlignment { | 15 enum ShelfAlignment { |
15 SHELF_ALIGNMENT_BOTTOM, | 16 SHELF_ALIGNMENT_BOTTOM, |
16 SHELF_ALIGNMENT_LEFT, | 17 SHELF_ALIGNMENT_LEFT, |
17 SHELF_ALIGNMENT_RIGHT, | 18 SHELF_ALIGNMENT_RIGHT, |
18 // Top has never been supported. | 19 // Top has never been supported. |
19 | 20 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // An existing inactive window was activated. | 83 // An existing inactive window was activated. |
83 SHELF_ACTION_WINDOW_ACTIVATED, | 84 SHELF_ACTION_WINDOW_ACTIVATED, |
84 | 85 |
85 // The currently active window was minimized. | 86 // The currently active window was minimized. |
86 SHELF_ACTION_WINDOW_MINIMIZED, | 87 SHELF_ACTION_WINDOW_MINIMIZED, |
87 | 88 |
88 // The app list launcher menu was shown. | 89 // The app list launcher menu was shown. |
89 SHELF_ACTION_APP_LIST_SHOWN, | 90 SHELF_ACTION_APP_LIST_SHOWN, |
90 }; | 91 }; |
91 | 92 |
92 // Shelf IDs are sequential values assigned to shelf items by ShelfModel for | 93 // TODO(msw): Rename AppLaunchId to ShelfID. |
93 // runtime use; they are not persisted across restarts of the ash environment. | 94 using ShelfID = AppLaunchId; |
94 using ShelfID = uint32_t; | |
95 const ShelfID kInvalidShelfID = 0u; | |
96 | 95 |
97 // The type of a shelf item. | 96 // The type of a shelf item. |
98 enum ShelfItemType { | 97 enum ShelfItemType { |
99 // Represents a running app panel. | 98 // Represents a running app panel. |
100 TYPE_APP_PANEL, | 99 TYPE_APP_PANEL, |
101 | 100 |
102 // Represents a pinned shortcut to an app, the app may be running or not. | 101 // Represents a pinned shortcut to an app, the app may be running or not. |
103 TYPE_PINNED_APP, | 102 TYPE_PINNED_APP, |
104 | 103 |
105 // Toggles visiblity of the app list. | 104 // Toggles visiblity of the app list. |
(...skipping 26 matching lines...) Expand all Loading... |
132 STATUS_RUNNING, | 131 STATUS_RUNNING, |
133 // An active shelf item that has focus. | 132 // An active shelf item that has focus. |
134 STATUS_ACTIVE, | 133 STATUS_ACTIVE, |
135 // A shelf item that needs user's attention. | 134 // A shelf item that needs user's attention. |
136 STATUS_ATTENTION, | 135 STATUS_ATTENTION, |
137 }; | 136 }; |
138 | 137 |
139 } // namespace ash | 138 } // namespace ash |
140 | 139 |
141 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ | 140 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
OLD | NEW |