| 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 "extensions/browser/install/extension_install_ui.h" |
| 11 |
| 12 namespace content { |
| 13 class BrowserContext; |
| 14 } |
| 11 | 15 |
| 12 class Profile; | 16 class Profile; |
| 13 | 17 |
| 14 class ExtensionInstallUIDefault : public ExtensionInstallUI { | 18 class ExtensionInstallUIDefault : public extensions::ExtensionInstallUI { |
| 15 public: | 19 public: |
| 16 explicit ExtensionInstallUIDefault(Profile* profile); | 20 explicit ExtensionInstallUIDefault(content::BrowserContext* context); |
| 17 virtual ~ExtensionInstallUIDefault(); | 21 virtual ~ExtensionInstallUIDefault(); |
| 18 | 22 |
| 19 // ExtensionInstallUI: | 23 // ExtensionInstallUI: |
| 20 virtual void OnInstallSuccess(const extensions::Extension* extension, | 24 virtual void OnInstallSuccess(const extensions::Extension* extension, |
| 21 const SkBitmap* icon) override; | 25 const SkBitmap* icon) override; |
| 22 virtual void OnInstallFailure( | 26 virtual void OnInstallFailure( |
| 23 const extensions::CrxInstallerError& error) override; | 27 const extensions::CrxInstallerError& error) override; |
| 24 virtual void SetUseAppInstalledBubble(bool use_bubble) override; | 28 virtual void SetUseAppInstalledBubble(bool use_bubble) override; |
| 29 virtual void OpenAppInstalledUI(const std::string& app_id) override; |
| 30 virtual void SetSkipPostInstallUI(bool skip_ui) override; |
| 31 virtual gfx::NativeWindow GetDefaultInstallDialogParent() override; |
| 25 | 32 |
| 26 private: | 33 private: |
| 34 Profile* profile_; |
| 35 |
| 27 // Used to undo theme installation. | 36 // Used to undo theme installation. |
| 28 std::string previous_theme_id_; | 37 std::string previous_theme_id_; |
| 29 bool previous_using_system_theme_; | 38 bool previous_using_system_theme_; |
| 30 | 39 |
| 31 // Whether to show an installed bubble on app install, or use the default | 40 // Whether to show an installed bubble on app install, or use the default |
| 32 // action of opening a new tab page. | 41 // action of opening a new tab page. |
| 33 bool use_app_installed_bubble_; | 42 bool use_app_installed_bubble_; |
| 34 | 43 |
| 44 // Whether or not to show the default UI after completing the installation. |
| 45 bool skip_post_install_ui_; |
| 46 |
| 35 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault); | 47 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault); |
| 36 }; | 48 }; |
| 37 | 49 |
| 38 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ | 50 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ |
| OLD | NEW |