OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_APP_LIST_CONTROLLER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/common/extensions/extension_constants.h" | 10 #include "chrome/common/extensions/extension_constants.h" |
11 #include "extensions/common/constants.h" | 11 #include "extensions/common/constants.h" |
12 #include "ui/base/page_transition_types.h" | 12 #include "ui/base/page_transition_types.h" |
13 #include "ui/base/window_open_disposition.h" | 13 #include "ui/base/window_open_disposition.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
15 | 15 |
16 class Profile; | 16 class Profile; |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class FilePath; | 19 class FilePath; |
20 } | 20 } |
21 | 21 |
22 namespace extensions { | 22 namespace extensions { |
23 class Extension; | 23 class Extension; |
24 class ExtensionSet; | 24 class ExtensionSet; |
25 class InstallTracker; | 25 class InstallTracker; |
26 } | 26 } |
27 | 27 |
28 namespace gfx { | 28 namespace gfx { |
29 class ImageSkia; | |
30 class Rect; | 29 class Rect; |
31 } | 30 } |
32 | 31 |
33 // Interface to allow the view delegate to call out to whatever is controlling | 32 // Interface to allow the view delegate to call out to whatever is controlling |
34 // the app list. This will have different implementations for different | 33 // the app list. This will have different implementations for different |
35 // platforms. | 34 // platforms. |
36 class AppListControllerDelegate { | 35 class AppListControllerDelegate { |
37 public: | 36 public: |
38 // Indicates the source of an app list activation, for tracking purposes. | 37 // Indicates the source of an app list activation, for tracking purposes. |
39 enum AppListSource { | 38 enum AppListSource { |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); | 168 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); |
170 | 169 |
171 // Get the list of installed apps for the given profile. | 170 // Get the list of installed apps for the given profile. |
172 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); | 171 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); |
173 | 172 |
174 // Called when a search is started using the app list search box. | 173 // Called when a search is started using the app list search box. |
175 void OnSearchStarted(); | 174 void OnSearchStarted(); |
176 }; | 175 }; |
177 | 176 |
178 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 177 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
OLD | NEW |