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/app_list_view_delegate.h" | 5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/metrics/user_metrics.h" | 11 #include "base/metrics/user_metrics.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
15 #include "chrome/browser/extensions/extension_service.h" | 15 #include "chrome/browser/extensions/extension_service.h" |
16 #include "chrome/browser/feedback/feedback_util.h" | |
17 #include "chrome/browser/profiles/profile_info_cache.h" | 16 #include "chrome/browser/profiles/profile_info_cache.h" |
18 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
19 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 18 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
20 #include "chrome/browser/ui/app_list/app_list_service.h" | 19 #include "chrome/browser/ui/app_list/app_list_service.h" |
21 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" | 20 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
22 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" | 21 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" |
23 #include "chrome/browser/ui/app_list/search/search_controller.h" | 22 #include "chrome/browser/ui/app_list/search/search_controller.h" |
24 #include "chrome/browser/ui/app_list/start_page_service.h" | 23 #include "chrome/browser/ui/app_list/start_page_service.h" |
25 #include "chrome/browser/ui/browser_finder.h" | 24 #include "chrome/browser/ui/browser_finder.h" |
26 #include "chrome/browser/ui/chrome_pages.h" | 25 #include "chrome/browser/ui/chrome_pages.h" |
(...skipping 13 matching lines...) Expand all Loading... |
40 #include "ui/base/resource/resource_bundle.h" | 39 #include "ui/base/resource/resource_bundle.h" |
41 | 40 |
42 #if defined(USE_ASH) | 41 #if defined(USE_ASH) |
43 #include "chrome/browser/ui/ash/app_list/app_sync_ui_state_watcher.h" | 42 #include "chrome/browser/ui/ash/app_list/app_sync_ui_state_watcher.h" |
44 #endif | 43 #endif |
45 | 44 |
46 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
47 #include "chrome/browser/web_applications/web_app_win.h" | 46 #include "chrome/browser/web_applications/web_app_win.h" |
48 #endif | 47 #endif |
49 | 48 |
| 49 |
| 50 namespace chrome { |
| 51 const char kAppLauncherCategoryTag[] = "AppLauncher"; |
| 52 } // namespace chrome |
| 53 |
50 namespace { | 54 namespace { |
51 | 55 |
52 const int kAutoLaunchDefaultTimeoutMilliSec = 50; | 56 const int kAutoLaunchDefaultTimeoutMilliSec = 50; |
53 | 57 |
54 #if defined(OS_WIN) | 58 #if defined(OS_WIN) |
55 void CreateShortcutInWebAppDir( | 59 void CreateShortcutInWebAppDir( |
56 const base::FilePath& app_data_dir, | 60 const base::FilePath& app_data_dir, |
57 base::Callback<void(const base::FilePath&)> callback, | 61 base::Callback<void(const base::FilePath&)> callback, |
58 const web_app::ShortcutInfo& info) { | 62 const web_app::ShortcutInfo& info) { |
59 content::BrowserThread::PostTaskAndReplyWithResult( | 63 content::BrowserThread::PostTaskAndReplyWithResult( |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 | 418 |
415 void AppListViewDelegate::AddObserver( | 419 void AppListViewDelegate::AddObserver( |
416 app_list::AppListViewDelegateObserver* observer) { | 420 app_list::AppListViewDelegateObserver* observer) { |
417 observers_.AddObserver(observer); | 421 observers_.AddObserver(observer); |
418 } | 422 } |
419 | 423 |
420 void AppListViewDelegate::RemoveObserver( | 424 void AppListViewDelegate::RemoveObserver( |
421 app_list::AppListViewDelegateObserver* observer) { | 425 app_list::AppListViewDelegateObserver* observer) { |
422 observers_.RemoveObserver(observer); | 426 observers_.RemoveObserver(observer); |
423 } | 427 } |
OLD | NEW |