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 18 matching lines...) Expand all Loading... |
45 #endif | 44 #endif |
46 | 45 |
47 #if defined(USE_ASH) | 46 #if defined(USE_ASH) |
48 #include "chrome/browser/ui/ash/app_list/app_sync_ui_state_watcher.h" | 47 #include "chrome/browser/ui/ash/app_list/app_sync_ui_state_watcher.h" |
49 #endif | 48 #endif |
50 | 49 |
51 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
52 #include "chrome/browser/web_applications/web_app_win.h" | 51 #include "chrome/browser/web_applications/web_app_win.h" |
53 #endif | 52 #endif |
54 | 53 |
| 54 |
| 55 namespace chrome { |
| 56 const char kAppLauncherCategoryTag[] = "AppLauncher"; |
| 57 } // namespace chrome |
| 58 |
55 namespace { | 59 namespace { |
56 | 60 |
57 const int kAutoLaunchDefaultTimeoutMilliSec = 50; | 61 const int kAutoLaunchDefaultTimeoutMilliSec = 50; |
58 | 62 |
59 #if defined(OS_WIN) | 63 #if defined(OS_WIN) |
60 void CreateShortcutInWebAppDir( | 64 void CreateShortcutInWebAppDir( |
61 const base::FilePath& app_data_dir, | 65 const base::FilePath& app_data_dir, |
62 base::Callback<void(const base::FilePath&)> callback, | 66 base::Callback<void(const base::FilePath&)> callback, |
63 const web_app::ShortcutInfo& info) { | 67 const web_app::ShortcutInfo& info) { |
64 content::BrowserThread::PostTaskAndReplyWithResult( | 68 content::BrowserThread::PostTaskAndReplyWithResult( |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 | 438 |
435 void AppListViewDelegate::AddObserver( | 439 void AppListViewDelegate::AddObserver( |
436 app_list::AppListViewDelegateObserver* observer) { | 440 app_list::AppListViewDelegateObserver* observer) { |
437 observers_.AddObserver(observer); | 441 observers_.AddObserver(observer); |
438 } | 442 } |
439 | 443 |
440 void AppListViewDelegate::RemoveObserver( | 444 void AppListViewDelegate::RemoveObserver( |
441 app_list::AppListViewDelegateObserver* observer) { | 445 app_list::AppListViewDelegateObserver* observer) { |
442 observers_.RemoveObserver(observer); | 446 observers_.RemoveObserver(observer); |
443 } | 447 } |
OLD | NEW |