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 CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_ITEM_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_ITEM_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_ITEM_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_ITEM_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chrome/browser/ui/app_list/app_context_menu_delegate.h" | 12 #include "chrome/browser/ui/app_list/app_context_menu_delegate.h" |
13 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" | 13 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
14 #include "chrome/browser/ui/app_list/chrome_app_list_item.h" | 14 #include "chrome/browser/ui/app_list/chrome_app_list_item.h" |
15 #include "chrome/browser/ui/extensions/extension_enable_flow_delegate.h" | 15 #include "chrome/browser/ui/extensions/extension_enable_flow_delegate.h" |
16 #include "extensions/browser/extension_icon_image.h" | 16 #include "extensions/browser/extension_icon_image.h" |
17 #include "ui/gfx/image/image_skia.h" | 17 #include "ui/gfx/image/image_skia.h" |
18 | 18 |
19 class AppListControllerDelegate; | 19 class AppListControllerDelegate; |
20 class ExtensionEnableFlow; | 20 class ExtensionEnableFlow; |
21 class Profile; | 21 class Profile; |
22 | 22 |
23 namespace app_list { | 23 namespace app_list { |
24 class ExtensionAppContextMenu; | 24 class ExtensionAppContextMenu; |
25 } | 25 } |
26 | 26 |
27 namespace extensions { | 27 namespace extensions { |
28 class ContextMenuMatcher; | |
29 class Extension; | 28 class Extension; |
30 } | 29 } |
31 | 30 |
32 // ExtensionAppItem represents an extension app in app list. | 31 // ExtensionAppItem represents an extension app in app list. |
33 class ExtensionAppItem : public ChromeAppListItem, | 32 class ExtensionAppItem : public ChromeAppListItem, |
34 public extensions::IconImage::Observer, | 33 public extensions::IconImage::Observer, |
35 public ExtensionEnableFlowDelegate, | 34 public ExtensionEnableFlowDelegate, |
36 public app_list::AppContextMenuDelegate { | 35 public app_list::AppContextMenuDelegate { |
37 public: | 36 public: |
38 static const char kItemType[]; | 37 static const char kItemType[]; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Whether or not this app is a platform app. | 110 // Whether or not this app is a platform app. |
112 bool is_platform_app_; | 111 bool is_platform_app_; |
113 | 112 |
114 // Whether this app item has an overlay. | 113 // Whether this app item has an overlay. |
115 bool has_overlay_; | 114 bool has_overlay_; |
116 | 115 |
117 DISALLOW_COPY_AND_ASSIGN(ExtensionAppItem); | 116 DISALLOW_COPY_AND_ASSIGN(ExtensionAppItem); |
118 }; | 117 }; |
119 | 118 |
120 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_ITEM_H_ | 119 #endif // CHROME_BROWSER_UI_APP_LIST_EXTENSION_APP_ITEM_H_ |
OLD | NEW |