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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // Assigned by the model when the item is added. | 63 // Assigned by the model when the item is added. |
64 LauncherID id; | 64 LauncherID id; |
65 | 65 |
66 // Running status. | 66 // Running status. |
67 LauncherItemStatus status; | 67 LauncherItemStatus status; |
68 }; | 68 }; |
69 | 69 |
70 typedef std::vector<LauncherItem> LauncherItems; | 70 typedef std::vector<LauncherItem> LauncherItems; |
71 | 71 |
72 // The direction of the focus cycling. | |
73 enum CycleDirection { | |
74 CYCLE_FORWARD, | |
75 CYCLE_BACKWARD | |
76 }; | |
77 | |
78 // LauncherItemDetails may be set on Window (by way of | 72 // LauncherItemDetails may be set on Window (by way of |
79 // SetShelfItemDetailsForWindow) to make the window appear in the shelf. See | 73 // SetShelfItemDetailsForWindow) to make the window appear in the shelf. See |
80 // ShelfWindowWatcher for details. | 74 // ShelfWindowWatcher for details. |
81 struct ASH_EXPORT LauncherItemDetails { | 75 struct ASH_EXPORT LauncherItemDetails { |
82 LauncherItemDetails(); | 76 LauncherItemDetails(); |
83 ~LauncherItemDetails(); | 77 ~LauncherItemDetails(); |
84 | 78 |
85 LauncherItemType type; | 79 LauncherItemType type; |
86 | 80 |
87 // Resource id of the image to display on the shelf. | 81 // Resource id of the image to display on the shelf. |
88 int image_resource_id; | 82 int image_resource_id; |
89 | 83 |
90 // Title of the item. | 84 // Title of the item. |
91 base::string16 title; | 85 base::string16 title; |
92 }; | 86 }; |
93 | 87 |
94 } // namespace ash | 88 } // namespace ash |
95 | 89 |
96 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ | 90 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
OLD | NEW |