| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 // Toggles visiblity of the app list. | 30 // Toggles visiblity of the app list. |
| 31 TYPE_APP_LIST, | 31 TYPE_APP_LIST, |
| 32 | 32 |
| 33 // The browser shortcut button. | 33 // The browser shortcut button. |
| 34 TYPE_BROWSER_SHORTCUT, | 34 TYPE_BROWSER_SHORTCUT, |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 struct ASH_EXPORT LauncherItem { | 37 struct ASH_EXPORT LauncherItem { |
| 38 LauncherItem(); | 38 LauncherItem(); |
| 39 explicit LauncherItem(LauncherItemType type); | |
| 40 ~LauncherItem(); | 39 ~LauncherItem(); |
| 41 | 40 |
| 42 LauncherItemType type; | 41 LauncherItemType type; |
| 43 | 42 |
| 44 // Number of tabs. Only used if this is TYPE_TABBED. | 43 // Number of tabs. Only used if this is TYPE_TABBED. |
| 45 int num_tabs; | 44 int num_tabs; |
| 46 | 45 |
| 46 // Whether it is incognito. Only used if this is TYPE_TABBED. |
| 47 bool is_incognito; |
| 48 |
| 47 // Image to display in the launcher. If this item is TYPE_TABBED the image is | 49 // Image to display in the launcher. If this item is TYPE_TABBED the image is |
| 48 // a favicon image. | 50 // a favicon image. |
| 49 SkBitmap image; | 51 SkBitmap image; |
| 50 | 52 |
| 51 // Assigned by the model when the item is added. | 53 // Assigned by the model when the item is added. |
| 52 LauncherID id; | 54 LauncherID id; |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 typedef std::vector<LauncherItem> LauncherItems; | 57 typedef std::vector<LauncherItem> LauncherItems; |
| 56 | 58 |
| 57 } // namespace ash | 59 } // namespace ash |
| 58 | 60 |
| 59 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ | 61 #endif // ASH_LAUNCHER_LAUNCHER_TYPES_H_ |
| OLD | NEW |