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); | |
47 ~LauncherItem(); | 46 ~LauncherItem(); |
48 | 47 |
49 LauncherItemType type; | 48 LauncherItemType type; |
50 | 49 |
51 // Number of tabs. Only used if this is TYPE_TABBED. | 50 // Number of tabs. Only used if this is TYPE_TABBED. |
52 int num_tabs; | 51 int num_tabs; |
53 | 52 |
| 53 // Whether it is incognito. Only used if this is TYPE_TABBED. |
| 54 bool is_incognito; |
| 55 |
54 // Image to display in the launcher. If this item is TYPE_TABBED the image is | 56 // Image to display in the launcher. If this item is TYPE_TABBED the image is |
55 // a favicon image. | 57 // a favicon image. |
56 SkBitmap image; | 58 SkBitmap image; |
57 | 59 |
58 // Assigned by the model when the item is added. | 60 // Assigned by the model when the item is added. |
59 LauncherID id; | 61 LauncherID id; |
60 | 62 |
61 // Running status. | 63 // Running status. |
62 LauncherItemStatus status; | 64 LauncherItemStatus status; |
63 }; | 65 }; |
64 | 66 |
65 typedef std::vector<LauncherItem> LauncherItems; | 67 typedef std::vector<LauncherItem> LauncherItems; |
66 | 68 |
67 } // namespace ash | 69 } // namespace ash |
68 | 70 |
69 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ | 71 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
OLD | NEW |