| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // The launch type specifies whether a hosted app should launch as a separate | 152 // The launch type specifies whether a hosted app should launch as a separate |
| 153 // window, fullscreened or as a tab. | 153 // window, fullscreened or as a tab. |
| 154 extensions::LaunchType GetExtensionLaunchType( | 154 extensions::LaunchType GetExtensionLaunchType( |
| 155 Profile* profile, const std::string& app_id); | 155 Profile* profile, const std::string& app_id); |
| 156 virtual void SetExtensionLaunchType( | 156 virtual void SetExtensionLaunchType( |
| 157 Profile* profile, | 157 Profile* profile, |
| 158 const std::string& extension_id, | 158 const std::string& extension_id, |
| 159 extensions::LaunchType launch_type); | 159 extensions::LaunchType launch_type); |
| 160 | 160 |
| 161 // Returns true if the given extension is installed. | 161 // Returns true if the given extension is installed. |
| 162 bool IsExtensionInstalled(Profile* profile, const std::string& app_id); | 162 virtual bool IsExtensionInstalled(Profile* profile, |
| 163 const std::string& app_id); |
| 163 | 164 |
| 164 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); | 165 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); |
| 165 | 166 |
| 166 // Get the list of installed apps for the given profile. | 167 // Get the list of installed apps for the given profile. |
| 167 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); | 168 void GetApps(Profile* profile, extensions::ExtensionSet* out_apps); |
| 168 | 169 |
| 169 // Called when a search is started using the app list search box. | 170 // Called when a search is started using the app list search box. |
| 170 void OnSearchStarted(); | 171 void OnSearchStarted(); |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 174 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| OLD | NEW |