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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // Represents the status of pinned or running app launcher items. | 37 // Represents the status of pinned or running app launcher items. |
38 enum ASH_EXPORT LauncherItemStatus { | 38 enum ASH_EXPORT LauncherItemStatus { |
39 STATUS_CLOSED, | 39 STATUS_CLOSED, |
40 STATUS_RUNNING, | 40 STATUS_RUNNING, |
41 STATUS_ACTIVE | 41 STATUS_ACTIVE |
42 }; | 42 }; |
43 | 43 |
44 struct ASH_EXPORT LauncherItem { | 44 struct ASH_EXPORT LauncherItem { |
45 LauncherItem(); | 45 LauncherItem(); |
| 46 explicit LauncherItem(LauncherItemType type); |
46 ~LauncherItem(); | 47 ~LauncherItem(); |
47 | 48 |
48 LauncherItemType type; | 49 LauncherItemType type; |
49 | 50 |
50 // Number of tabs. Only used if this is TYPE_TABBED. | 51 // Number of tabs. Only used if this is TYPE_TABBED. |
51 int num_tabs; | 52 int num_tabs; |
52 | 53 |
53 // Whether it is incognito. Only used if this is TYPE_TABBED. | |
54 bool is_incognito; | |
55 | |
56 // Image to display in the launcher. If this item is TYPE_TABBED the image is | 54 // Image to display in the launcher. If this item is TYPE_TABBED the image is |
57 // a favicon image. | 55 // a favicon image. |
58 SkBitmap image; | 56 SkBitmap image; |
59 | 57 |
60 // Assigned by the model when the item is added. | 58 // Assigned by the model when the item is added. |
61 LauncherID id; | 59 LauncherID id; |
62 | 60 |
63 // Running status. | 61 // Running status. |
64 LauncherItemStatus status; | 62 LauncherItemStatus status; |
65 }; | 63 }; |
66 | 64 |
67 typedef std::vector<LauncherItem> LauncherItems; | 65 typedef std::vector<LauncherItem> LauncherItems; |
68 | 66 |
69 } // namespace ash | 67 } // namespace ash |
70 | 68 |
71 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ | 69 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
OLD | NEW |