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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // Represents the status of pinned or running app launcher items. | 49 // Represents the status of pinned or running app launcher items. |
50 enum LauncherItemStatus { | 50 enum LauncherItemStatus { |
51 // A closed LauncherItem, i.e. has no live instance. | 51 // A closed LauncherItem, i.e. has no live instance. |
52 STATUS_CLOSED, | 52 STATUS_CLOSED, |
53 // A LauncherItem that has live instance. | 53 // A LauncherItem that has live instance. |
54 STATUS_RUNNING, | 54 STATUS_RUNNING, |
55 // An active LauncherItem that has focus. | 55 // An active LauncherItem that has focus. |
56 STATUS_ACTIVE, | 56 STATUS_ACTIVE, |
57 // A LauncherItem that needs user's attention. | 57 // A LauncherItem that needs user's attention. |
58 STATUS_ATTENTION, | 58 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, |
59 }; | 64 }; |
60 | 65 |
61 struct ASH_EXPORT LauncherItem { | 66 struct ASH_EXPORT LauncherItem { |
62 LauncherItem(); | 67 LauncherItem(); |
63 ~LauncherItem(); | 68 ~LauncherItem(); |
64 | 69 |
65 LauncherItemType type; | 70 LauncherItemType type; |
66 | 71 |
67 // Whether it is drawn as an incognito icon or not. Only used if this is | 72 // Whether it is drawn as an incognito icon or not. Only used if this is |
68 // TYPE_TABBED. Note: This cannot be used for identifying incognito windows. | 73 // TYPE_TABBED. Note: This cannot be used for identifying incognito windows. |
(...skipping 14 matching lines...) Expand all Loading... |
83 | 88 |
84 // The direction of the focus cycling. | 89 // The direction of the focus cycling. |
85 enum CycleDirection { | 90 enum CycleDirection { |
86 CYCLE_FORWARD, | 91 CYCLE_FORWARD, |
87 CYCLE_BACKWARD | 92 CYCLE_BACKWARD |
88 }; | 93 }; |
89 | 94 |
90 } // namespace ash | 95 } // namespace ash |
91 | 96 |
92 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ | 97 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
OLD | NEW |