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