| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // Interface that should be implemented for each platform to display all the UI | 23 // Interface that should be implemented for each platform to display all the UI |
| 24 // around extension installation. | 24 // around extension installation. |
| 25 class ExtensionInstallUI { | 25 class ExtensionInstallUI { |
| 26 public: | 26 public: |
| 27 static ExtensionInstallUI* Create(Profile* profile); | 27 static ExtensionInstallUI* Create(Profile* profile); |
| 28 | 28 |
| 29 virtual ~ExtensionInstallUI(); | 29 virtual ~ExtensionInstallUI(); |
| 30 | 30 |
| 31 // Called when an extension was installed. | 31 // Called when an extension was installed. |
| 32 virtual void OnInstallSuccess(const extensions::Extension* extension, | 32 virtual void OnInstallSuccess(const extensions::Extension* extension, |
| 33 SkBitmap* icon) = 0; | 33 const SkBitmap* icon) = 0; |
| 34 | 34 |
| 35 // Called when an extension failed to install. | 35 // Called when an extension failed to install. |
| 36 virtual void OnInstallFailure(const extensions::CrxInstallerError& error) = 0; | 36 virtual void OnInstallFailure(const extensions::CrxInstallerError& error) = 0; |
| 37 | 37 |
| 38 | 38 |
| 39 // TODO(asargent) Normally we navigate to the new tab page when an app is | 39 // TODO(asargent) Normally we navigate to the new tab page when an app is |
| 40 // installed, but we're experimenting with instead showing a bubble when | 40 // installed, but we're experimenting with instead showing a bubble when |
| 41 // an app is installed which points to the new tab button. This may become | 41 // an app is installed which points to the new tab button. This may become |
| 42 // the default behavior in the future. | 42 // the default behavior in the future. |
| 43 virtual void SetUseAppInstalledBubble(bool use_bubble) = 0; | 43 virtual void SetUseAppInstalledBubble(bool use_bubble) = 0; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 Profile* profile_; | 84 Profile* profile_; |
| 85 | 85 |
| 86 // Whether or not to show the default UI after completing the installation. | 86 // Whether or not to show the default UI after completing the installation. |
| 87 bool skip_post_install_ui_; | 87 bool skip_post_install_ui_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallUI); | 89 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallUI); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ | 92 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ |
| OLD | NEW |