blob: 8764eabd2e592e43f6c7a00db48eba1dd3ade5ac [file] [log] [blame]
[email protected]c82da8c42012-06-08 19:49:111// 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.
4
[email protected]dc63aab2013-02-12 06:15:105#ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
6#define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
[email protected]c82da8c42012-06-08 19:49:117
[email protected]b55b2f22013-08-22 07:54:118#include "base/basictypes.h"
9#include "base/compiler_specific.h"
pkotwicza57a1f322014-10-21 00:24:3010#include "extensions/browser/install/extension_install_ui.h"
11
12namespace content {
13class BrowserContext;
14}
[email protected]c82da8c42012-06-08 19:49:1115
[email protected]32fc4ff72012-06-15 21:50:0116class Profile;
[email protected]591a59f2012-10-11 01:16:2317
pkotwicza57a1f322014-10-21 00:24:3018class ExtensionInstallUIDefault : public extensions::ExtensionInstallUI {
[email protected]c82da8c42012-06-08 19:49:1119 public:
pkotwicza57a1f322014-10-21 00:24:3020 explicit ExtensionInstallUIDefault(content::BrowserContext* context);
[email protected]c82da8c42012-06-08 19:49:1121 virtual ~ExtensionInstallUIDefault();
22
[email protected]b55b2f22013-08-22 07:54:1123 // ExtensionInstallUI:
[email protected]c82da8c42012-06-08 19:49:1124 virtual void OnInstallSuccess(const extensions::Extension* extension,
mostynb205d6252014-10-04 00:49:2225 const SkBitmap* icon) override;
[email protected]bf3d9df2012-07-24 23:20:2726 virtual void OnInstallFailure(
mostynb205d6252014-10-04 00:49:2227 const extensions::CrxInstallerError& error) override;
28 virtual void SetUseAppInstalledBubble(bool use_bubble) override;
pkotwicza57a1f322014-10-21 00:24:3029 virtual void OpenAppInstalledUI(const std::string& app_id) override;
30 virtual void SetSkipPostInstallUI(bool skip_ui) override;
31 virtual gfx::NativeWindow GetDefaultInstallDialogParent() override;
[email protected]c82da8c42012-06-08 19:49:1132
33 private:
pkotwicza57a1f322014-10-21 00:24:3034 Profile* profile_;
35
36 // Whether or not to show the default UI after completing the installation.
37 bool skip_post_install_ui_;
38
[email protected]c82da8c42012-06-08 19:49:1139 // Used to undo theme installation.
40 std::string previous_theme_id_;
[email protected]448d7dc2014-05-13 03:22:5541 bool previous_using_system_theme_;
[email protected]c82da8c42012-06-08 19:49:1142
43 // Whether to show an installed bubble on app install, or use the default
44 // action of opening a new tab page.
45 bool use_app_installed_bubble_;
46
pkotwicza57a1f322014-10-21 00:24:3047 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallUIDefault);
[email protected]c82da8c42012-06-08 19:49:1148};
49
[email protected]dc63aab2013-02-12 06:15:1050#endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_