[email protected] | c82da8c4 | 2012-06-08 19:49:11 | [diff] [blame] | 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. | ||||
4 | |||||
[email protected] | dc63aab | 2013-02-12 06:15:10 | [diff] [blame] | 5 | #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ |
6 | #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ | ||||
[email protected] | c82da8c4 | 2012-06-08 19:49:11 | [diff] [blame] | 7 | |
[email protected] | b55b2f2 | 2013-08-22 07:54:11 | [diff] [blame] | 8 | #include "base/basictypes.h" |
9 | #include "base/compiler_specific.h" | ||||
pkotwicz | a57a1f32 | 2014-10-21 00:24:30 | [diff] [blame^] | 10 | #include "extensions/browser/install/extension_install_ui.h" |
11 | |||||
12 | namespace content { | ||||
13 | class BrowserContext; | ||||
14 | } | ||||
[email protected] | c82da8c4 | 2012-06-08 19:49:11 | [diff] [blame] | 15 | |
[email protected] | 32fc4ff7 | 2012-06-15 21:50:01 | [diff] [blame] | 16 | class Profile; |
[email protected] | 591a59f | 2012-10-11 01:16:23 | [diff] [blame] | 17 | |
pkotwicz | a57a1f32 | 2014-10-21 00:24:30 | [diff] [blame^] | 18 | class ExtensionInstallUIDefault : public extensions::ExtensionInstallUI { |
[email protected] | c82da8c4 | 2012-06-08 19:49:11 | [diff] [blame] | 19 | public: |
pkotwicz | a57a1f32 | 2014-10-21 00:24:30 | [diff] [blame^] | 20 | explicit ExtensionInstallUIDefault(content::BrowserContext* context); |
[email protected] | c82da8c4 | 2012-06-08 19:49:11 | [diff] [blame] | 21 | virtual ~ExtensionInstallUIDefault(); |
22 | |||||
[email protected] | b55b2f2 | 2013-08-22 07:54:11 | [diff] [blame] | 23 | // ExtensionInstallUI: |
[email protected] | c82da8c4 | 2012-06-08 19:49:11 | [diff] [blame] | 24 | virtual void OnInstallSuccess(const extensions::Extension* extension, |
mostynb | 205d625 | 2014-10-04 00:49:22 | [diff] [blame] | 25 | const SkBitmap* icon) override; |
[email protected] | bf3d9df | 2012-07-24 23:20:27 | [diff] [blame] | 26 | virtual void OnInstallFailure( |
mostynb | 205d625 | 2014-10-04 00:49:22 | [diff] [blame] | 27 | const extensions::CrxInstallerError& error) override; |
28 | virtual void SetUseAppInstalledBubble(bool use_bubble) override; | ||||
pkotwicz | a57a1f32 | 2014-10-21 00:24:30 | [diff] [blame^] | 29 | 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] | c82da8c4 | 2012-06-08 19:49:11 | [diff] [blame] | 32 | |
33 | private: | ||||
pkotwicz | a57a1f32 | 2014-10-21 00:24:30 | [diff] [blame^] | 34 | 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] | c82da8c4 | 2012-06-08 19:49:11 | [diff] [blame] | 39 | // Used to undo theme installation. |
40 | std::string previous_theme_id_; | ||||
[email protected] | 448d7dc | 2014-05-13 03:22:55 | [diff] [blame] | 41 | bool previous_using_system_theme_; |
[email protected] | c82da8c4 | 2012-06-08 19:49:11 | [diff] [blame] | 42 | |
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 | |||||
pkotwicz | a57a1f32 | 2014-10-21 00:24:30 | [diff] [blame^] | 47 | DISALLOW_COPY_AND_ASSIGN(ExtensionInstallUIDefault); |
[email protected] | c82da8c4 | 2012-06-08 19:49:11 | [diff] [blame] | 48 | }; |
49 | |||||
[email protected] | dc63aab | 2013-02-12 06:15:10 | [diff] [blame] | 50 | #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ |