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 // Source of the launch or activation request, for tracking. | |
59 enum ShelfLaunchSource { | |
60 LAUNCH_FROM_UNKNOWN, | |
James Cook
2017/02/15 00:44:40
Can you document each of these while you're here?
msw
2017/02/15 19:59:18
Done.
| |
61 LAUNCH_FROM_APP_LIST, | |
62 LAUNCH_FROM_APP_LIST_SEARCH, | |
63 }; | |
64 | |
65 // The actions that may be performed when a shelf item is selected. | |
66 // TODO(msw): Update kConstantValueNaming to ENUM_VALUE_NAMING. | |
67 enum ShelfAction { | |
68 // No action was taken. | |
69 kNoAction, | |
70 // A new window was created. | |
71 kNewWindowCreated, | |
72 // An existing inactive window was activated. | |
73 kExistingWindowActivated, | |
74 // The currently active window was minimized. | |
75 kExistingWindowMinimized, | |
76 // The app list launcher menu was shown. | |
77 kAppListMenuShown, | |
78 }; | |
79 | |
58 typedef int ShelfID; | 80 typedef int ShelfID; |
59 const int kInvalidShelfID = 0; | 81 const int kInvalidShelfID = 0; |
60 | 82 |
61 // The type of a shelf item. | 83 // The type of a shelf item. |
62 enum ShelfItemType { | 84 enum ShelfItemType { |
63 // Represents a running app panel. | 85 // Represents a running app panel. |
64 TYPE_APP_PANEL, | 86 TYPE_APP_PANEL, |
65 | 87 |
66 // Represents a pinned shortcut to an app. | 88 // Represents a pinned shortcut to an app. |
67 TYPE_APP_SHORTCUT, | 89 TYPE_APP_SHORTCUT, |
(...skipping 24 matching lines...) Expand all Loading... | |
92 STATUS_RUNNING, | 114 STATUS_RUNNING, |
93 // An active shelf item that has focus. | 115 // An active shelf item that has focus. |
94 STATUS_ACTIVE, | 116 STATUS_ACTIVE, |
95 // A shelf item that needs user's attention. | 117 // A shelf item that needs user's attention. |
96 STATUS_ATTENTION, | 118 STATUS_ATTENTION, |
97 }; | 119 }; |
98 | 120 |
99 } // namespace ash | 121 } // namespace ash |
100 | 122 |
101 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ | 123 #endif // ASH_PUBLIC_CPP_SHELF_TYPES_H_ |
OLD | NEW |