OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // | 138 // |
139 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. | 139 // We *MUST* eventually call either Proceed() or Abort() on |delegate|. |
140 virtual void ConfirmPermissions(Delegate* delegate, | 140 virtual void ConfirmPermissions(Delegate* delegate, |
141 const Extension* extension, | 141 const Extension* extension, |
142 const ExtensionPermissionSet* permissions); | 142 const ExtensionPermissionSet* permissions); |
143 | 143 |
144 // Installation was successful. This is declared virtual for testing. | 144 // Installation was successful. This is declared virtual for testing. |
145 virtual void OnInstallSuccess(const Extension* extension, SkBitmap* icon); | 145 virtual void OnInstallSuccess(const Extension* extension, SkBitmap* icon); |
146 | 146 |
147 // Installation failed. This is declared virtual for testing. | 147 // Installation failed. This is declared virtual for testing. |
148 virtual void OnInstallFailure(const std::string& error); | 148 virtual void OnInstallFailure(const string16& error); |
149 | 149 |
150 // ImageLoadingTracker::Observer: | 150 // ImageLoadingTracker::Observer: |
151 virtual void OnImageLoaded( | 151 virtual void OnImageLoaded( |
152 SkBitmap* image, const ExtensionResource& resource, int index) OVERRIDE; | 152 SkBitmap* image, const ExtensionResource& resource, int index) OVERRIDE; |
153 | 153 |
154 // Opens a new tab page and animates the app icon for the app with id | 154 // Opens a new tab page and animates the app icon for the app with id |
155 // |app_id|. | 155 // |app_id|. |
156 static void OpenAppInstalledNTP(Browser* browser, const std::string& app_id); | 156 static void OpenAppInstalledNTP(Browser* browser, const std::string& app_id); |
157 | 157 |
158 protected: | 158 protected: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 // Whether to show an installed bubble on app install, or use the default | 219 // Whether to show an installed bubble on app install, or use the default |
220 // action of opening a new tab page. | 220 // action of opening a new tab page. |
221 bool use_app_installed_bubble_; | 221 bool use_app_installed_bubble_; |
222 | 222 |
223 // Whether or not to show the default UI after completing the installation. | 223 // Whether or not to show the default UI after completing the installation. |
224 bool skip_post_install_ui_; | 224 bool skip_post_install_ui_; |
225 }; | 225 }; |
226 | 226 |
227 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 227 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
OLD | NEW |