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_LAUNCHER_LAUNCHER_TYPES_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
6 #define ASH_LAUNCHER_LAUNCHER_TYPES_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 TYPE_APP_SHORTCUT, | 37 TYPE_APP_SHORTCUT, |
38 | 38 |
39 // Toggles visiblity of the app list. | 39 // Toggles visiblity of the app list. |
40 TYPE_APP_LIST, | 40 TYPE_APP_LIST, |
41 | 41 |
42 // The browser shortcut button. | 42 // The browser shortcut button. |
43 TYPE_BROWSER_SHORTCUT, | 43 TYPE_BROWSER_SHORTCUT, |
44 | 44 |
45 // Represents a platform app. | 45 // Represents a platform app. |
46 TYPE_PLATFORM_APP, | 46 TYPE_PLATFORM_APP, |
| 47 |
| 48 // Represents a loading placeholder for app shortcut. |
| 49 TYPE_APP_PLACEHOLDER, |
47 }; | 50 }; |
48 | 51 |
49 // Represents the status of pinned or running app launcher items. | 52 // Represents the status of pinned or running app launcher items. |
50 enum LauncherItemStatus { | 53 enum LauncherItemStatus { |
51 // A closed LauncherItem, i.e. has no live instance. | 54 // A closed LauncherItem, i.e. has no live instance. |
52 STATUS_CLOSED, | 55 STATUS_CLOSED, |
53 // A LauncherItem that has live instance. | 56 // A LauncherItem that has live instance. |
54 STATUS_RUNNING, | 57 STATUS_RUNNING, |
55 // An active LauncherItem that has focus. | 58 // An active LauncherItem that has focus. |
56 STATUS_ACTIVE, | 59 STATUS_ACTIVE, |
57 // A LauncherItem that needs user's attention. | 60 // A LauncherItem that needs user's attention. |
58 STATUS_ATTENTION, | 61 STATUS_ATTENTION, |
59 // A LauncherItem that has pending operations. | |
60 // e.g. A TYEE_APP_SHORTCUT item whose application is | |
61 // being installed/upgraded. | |
62 // Note STATUS_PENDING is a macro in WinNT.h on Windows. | |
63 STATUS_IS_PENDING, | |
64 }; | 62 }; |
65 | 63 |
66 struct ASH_EXPORT LauncherItem { | 64 struct ASH_EXPORT LauncherItem { |
67 LauncherItem(); | 65 LauncherItem(); |
68 ~LauncherItem(); | 66 ~LauncherItem(); |
69 | 67 |
70 LauncherItemType type; | 68 LauncherItemType type; |
71 | 69 |
72 // Whether it is drawn as an incognito icon or not. Only used if this is | 70 // Whether it is drawn as an incognito icon or not. Only used if this is |
73 // TYPE_TABBED. Note: This cannot be used for identifying incognito windows. | 71 // TYPE_TABBED. Note: This cannot be used for identifying incognito windows. |
(...skipping 14 matching lines...) Expand all Loading... |
88 | 86 |
89 // The direction of the focus cycling. | 87 // The direction of the focus cycling. |
90 enum CycleDirection { | 88 enum CycleDirection { |
91 CYCLE_FORWARD, | 89 CYCLE_FORWARD, |
92 CYCLE_BACKWARD | 90 CYCLE_BACKWARD |
93 }; | 91 }; |
94 | 92 |
95 } // namespace ash | 93 } // namespace ash |
96 | 94 |
97 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ | 95 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
OLD | NEW |