| 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" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 class AppListControllerDelegate { | 36 class AppListControllerDelegate { |
| 37 public: | 37 public: |
| 38 // Indicates the source of an app list activation, for tracking purposes. | 38 // Indicates the source of an app list activation, for tracking purposes. |
| 39 enum AppListSource { | 39 enum AppListSource { |
| 40 LAUNCH_FROM_UNKNOWN, | 40 LAUNCH_FROM_UNKNOWN, |
| 41 LAUNCH_FROM_APP_LIST, | 41 LAUNCH_FROM_APP_LIST, |
| 42 LAUNCH_FROM_APP_LIST_SEARCH | 42 LAUNCH_FROM_APP_LIST_SEARCH |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 // Whether apps can be pinned, and whether pinned apps are editable or fixed. | 45 // Whether apps can be pinned, and whether pinned apps are editable or fixed. |
| 46 // TODO(khmel): Find better home for Pinnable enum. |
| 46 enum Pinnable { | 47 enum Pinnable { |
| 47 NO_PIN, | 48 NO_PIN, |
| 48 PIN_EDITABLE, | 49 PIN_EDITABLE, |
| 49 PIN_FIXED | 50 PIN_FIXED |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 virtual ~AppListControllerDelegate(); | 53 virtual ~AppListControllerDelegate(); |
| 53 | 54 |
| 54 // Whether to force the use of a native desktop widget when the app list | 55 // Whether to force the use of a native desktop widget when the app list |
| 55 // window is first created. | 56 // window is first created. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); | 169 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); |
| 169 | 170 |
| 170 // Get the list of installed apps for the given profile. | 171 // Get the list of installed apps for the given profile. |
| 171 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); | 172 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); |
| 172 | 173 |
| 173 // Called when a search is started using the app list search box. | 174 // Called when a search is started using the app list search box. |
| 174 void OnSearchStarted(); | 175 void OnSearchStarted(); |
| 175 }; | 176 }; |
| 176 | 177 |
| 177 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 178 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| OLD | NEW |