Add a minor text member to ui::MenuModel.
[chromium-blink-merge.git] / chrome / browser / ui / extensions / extension_install_ui_default.h
blob60bfc0f018841493900fc41199b176d5cb3191de
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"
12 class Profile;
14 class ExtensionInstallUIDefault : public ExtensionInstallUI {
15 public:
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;
26 private:
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_