| 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_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/extensions/extension_install_ui.h" | 10 #include "chrome/browser/extensions/extension_install_ui.h" |
| 11 | 11 |
| 12 class Profile; | 12 class Profile; |
| 13 | 13 |
| 14 class ExtensionInstallUIDefault : public ExtensionInstallUI { | 14 class ExtensionInstallUIDefault : public ExtensionInstallUI { |
| 15 public: | 15 public: |
| 16 explicit ExtensionInstallUIDefault(Profile* profile); | 16 explicit ExtensionInstallUIDefault(Profile* profile); |
| 17 virtual ~ExtensionInstallUIDefault(); | 17 virtual ~ExtensionInstallUIDefault(); |
| 18 | 18 |
| 19 // ExtensionInstallUI: | 19 // ExtensionInstallUI: |
| 20 virtual void OnInstallSuccess(const extensions::Extension* extension, | 20 virtual void OnInstallSuccess(const extensions::Extension* extension, |
| 21 SkBitmap* icon) OVERRIDE; | 21 SkBitmap* icon) OVERRIDE; |
| 22 virtual void OnInstallFailure( | 22 virtual void OnInstallFailure( |
| 23 const extensions::CrxInstallerError& error) OVERRIDE; | 23 const extensions::CrxInstallerError& error) OVERRIDE; |
| 24 virtual void SetUseAppInstalledBubble(bool use_bubble) OVERRIDE; | 24 virtual void SetUseAppInstalledBubble(bool use_bubble) OVERRIDE; |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 // Used to undo theme installation. | 27 // Used to undo theme installation. |
| 28 std::string previous_theme_id_; | 28 std::string previous_theme_id_; |
| 29 bool previous_using_native_theme_; | 29 bool previous_using_system_theme_; |
| 30 | 30 |
| 31 // Whether to show an installed bubble on app install, or use the default | 31 // Whether to show an installed bubble on app install, or use the default |
| 32 // action of opening a new tab page. | 32 // action of opening a new tab page. |
| 33 bool use_app_installed_bubble_; | 33 bool use_app_installed_bubble_; |
| 34 | 34 |
| 35 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault); | 35 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault); |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ | 38 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ |
| OLD | NEW |