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 #include "chrome/browser/ui/app_list/extension_app_item.h" | 5 #include "chrome/browser/ui/app_list/extension_app_item.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "chrome/browser/extensions/extension_util.h" | 11 #include "chrome/browser/extensions/extension_util.h" |
12 #include "chrome/browser/extensions/launch_util.h" | 12 #include "chrome/browser/extensions/launch_util.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 14 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
15 #include "chrome/browser/ui/app_list/extension_app_context_menu.h" | 15 #include "chrome/browser/ui/app_list/extension_app_context_menu.h" |
16 #include "chrome/browser/ui/extensions/extension_enable_flow.h" | 16 #include "chrome/browser/ui/extensions/extension_enable_flow.h" |
17 #include "chrome/common/extensions/extension_constants.h" | 17 #include "chrome/common/extensions/extension_constants.h" |
18 #include "chrome/common/extensions/extension_metrics.h" | 18 #include "chrome/common/extensions/extension_metrics.h" |
19 #include "chrome/grit/theme_resources.h" | 19 #include "chrome/grit/theme_resources.h" |
20 #include "components/prefs/pref_service.h" | 20 #include "components/prefs/pref_service.h" |
21 #include "components/sync/api/string_ordinal.h" | 21 #include "components/sync/model/string_ordinal.h" |
22 #include "content/public/browser/user_metrics.h" | 22 #include "content/public/browser/user_metrics.h" |
23 #include "extensions/browser/app_sorting.h" | 23 #include "extensions/browser/app_sorting.h" |
24 #include "extensions/browser/extension_prefs.h" | 24 #include "extensions/browser/extension_prefs.h" |
25 #include "extensions/browser/extension_registry.h" | 25 #include "extensions/browser/extension_registry.h" |
26 #include "extensions/common/extension.h" | 26 #include "extensions/common/extension.h" |
27 #include "extensions/common/extension_icon_set.h" | 27 #include "extensions/common/extension_icon_set.h" |
28 #include "extensions/common/manifest_handlers/icons_handler.h" | 28 #include "extensions/common/manifest_handlers/icons_handler.h" |
29 #include "extensions/common/manifest_url_handlers.h" | 29 #include "extensions/common/manifest_url_handlers.h" |
30 #include "ui/base/resource/resource_bundle.h" | 30 #include "ui/base/resource/resource_bundle.h" |
31 #include "ui/events/event_constants.h" | 31 #include "ui/events/event_constants.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 // static | 307 // static |
308 const char ExtensionAppItem::kItemType[] = "ExtensionAppItem"; | 308 const char ExtensionAppItem::kItemType[] = "ExtensionAppItem"; |
309 | 309 |
310 const char* ExtensionAppItem::GetItemType() const { | 310 const char* ExtensionAppItem::GetItemType() const { |
311 return ExtensionAppItem::kItemType; | 311 return ExtensionAppItem::kItemType; |
312 } | 312 } |
313 | 313 |
314 void ExtensionAppItem::ExecuteLaunchCommand(int event_flags) { | 314 void ExtensionAppItem::ExecuteLaunchCommand(int event_flags) { |
315 Launch(event_flags); | 315 Launch(event_flags); |
316 } | 316 } |
OLD | NEW |