| 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/browser/extensions/extension_prefs.h" | 10 #include "chrome/browser/extensions/launch_util.h" |
| 11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
| 12 | 12 |
| 13 class ExtensionSet; | 13 class ExtensionSet; |
| 14 class Profile; | 14 class Profile; |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class FilePath; | 17 class FilePath; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace extensions { | 20 namespace extensions { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 // True if the given extension has an options page. | 124 // True if the given extension has an options page. |
| 125 bool HasOptionsPage(Profile* profile, const std::string& app_id); | 125 bool HasOptionsPage(Profile* profile, const std::string& app_id); |
| 126 | 126 |
| 127 // Shows the user the options page for the app. | 127 // Shows the user the options page for the app. |
| 128 void ShowOptionsPage(Profile* profile, const std::string& app_id); | 128 void ShowOptionsPage(Profile* profile, const std::string& app_id); |
| 129 | 129 |
| 130 // Gets/sets the launch type for an app. | 130 // Gets/sets the launch type for an app. |
| 131 // The launch type specifies whether a hosted app should launch as a separate | 131 // The launch type specifies whether a hosted app should launch as a separate |
| 132 // window, fullscreened or as a tab. | 132 // window, fullscreened or as a tab. |
| 133 extensions::ExtensionPrefs::LaunchType GetExtensionLaunchType( | 133 extensions::LaunchType GetExtensionLaunchType( |
| 134 Profile* profile, const std::string& app_id); | 134 Profile* profile, const std::string& app_id); |
| 135 virtual void SetExtensionLaunchType( | 135 virtual void SetExtensionLaunchType( |
| 136 Profile* profile, | 136 Profile* profile, |
| 137 const std::string& extension_id, | 137 const std::string& extension_id, |
| 138 extensions::ExtensionPrefs::LaunchType launch_type); | 138 extensions::LaunchType launch_type); |
| 139 | 139 |
| 140 // Returns true if the given extension is installed. | 140 // Returns true if the given extension is installed. |
| 141 bool IsExtensionInstalled(Profile* profile, const std::string& app_id); | 141 bool IsExtensionInstalled(Profile* profile, const std::string& app_id); |
| 142 | 142 |
| 143 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); | 143 extensions::InstallTracker* GetInstallTrackerFor(Profile* profile); |
| 144 | 144 |
| 145 // Get the list of installed apps for the given profile. | 145 // Get the list of installed apps for the given profile. |
| 146 void GetApps(Profile* profile, ExtensionSet* out_apps); | 146 void GetApps(Profile* profile, ExtensionSet* out_apps); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ | 149 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_CONTROLLER_DELEGATE_H_ |
| OLD | NEW |