OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ |
6 #define EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ | 6 #define EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "extensions/browser/uninstall_reason.h" | 9 #include "extensions/browser/uninstall_reason.h" |
10 #include "extensions/common/constants.h" | 10 #include "extensions/common/constants.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 // Launches the app |extension|. Returns true on success. | 52 // Launches the app |extension|. Returns true on success. |
53 virtual bool LaunchAppFunctionDelegate( | 53 virtual bool LaunchAppFunctionDelegate( |
54 const Extension* extension, | 54 const Extension* extension, |
55 content::BrowserContext* context) const = 0; | 55 content::BrowserContext* context) const = 0; |
56 | 56 |
57 // Forwards the call to extensions::util::IsNewBookmarkAppsEnabled in | 57 // Forwards the call to extensions::util::IsNewBookmarkAppsEnabled in |
58 // chrome. | 58 // chrome. |
59 virtual bool IsNewBookmarkAppsEnabled() const = 0; | 59 virtual bool IsNewBookmarkAppsEnabled() const = 0; |
60 | 60 |
| 61 // Forwards the call to extensions::util::CanHostedAppsOpenInWindows in |
| 62 // chrome. |
| 63 virtual bool CanHostedAppsOpenInWindows() const = 0; |
| 64 |
61 // Forwards the call to AppLaunchInfo::GetFullLaunchURL in chrome. | 65 // Forwards the call to AppLaunchInfo::GetFullLaunchURL in chrome. |
62 virtual GURL GetFullLaunchURL(const Extension* extension) const = 0; | 66 virtual GURL GetFullLaunchURL(const Extension* extension) const = 0; |
63 | 67 |
64 // Forwards the call to launch_util::GetLaunchType in chrome. | 68 // Forwards the call to launch_util::GetLaunchType in chrome. |
65 virtual LaunchType GetLaunchType(const ExtensionPrefs* prefs, | 69 virtual LaunchType GetLaunchType(const ExtensionPrefs* prefs, |
66 const Extension* extension) const = 0; | 70 const Extension* extension) const = 0; |
67 | 71 |
68 // Parses the manifest and calls back the | 72 // Parses the manifest and calls back the |
69 // ManagementGetPermissionWarningsByManifestFunction. | 73 // ManagementGetPermissionWarningsByManifestFunction. |
70 virtual void GetPermissionWarningsByManifestFunctionDelegate( | 74 virtual void GetPermissionWarningsByManifestFunctionDelegate( |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 virtual GURL GetIconURL(const Extension* extension, | 128 virtual GURL GetIconURL(const Extension* extension, |
125 int icon_size, | 129 int icon_size, |
126 ExtensionIconSet::MatchType match, | 130 ExtensionIconSet::MatchType match, |
127 bool grayscale, | 131 bool grayscale, |
128 bool* exists) const = 0; | 132 bool* exists) const = 0; |
129 }; | 133 }; |
130 | 134 |
131 } // namespace extensions | 135 } // namespace extensions |
132 | 136 |
133 #endif // EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ | 137 #endif // EXTENSIONS_BROWSER_API_MANAGEMENT_MANAGEMENT_API_DELEGATER_H_ |
OLD | NEW |