Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: chrome/browser/ui/extensions/extension_install_ui_default.h

Issue 634313004: Display dialog when app install succeeds / fails on Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
36 // Whether or not to show the default UI after completing the installation.
37 bool skip_post_install_ui_;
38
27 // Used to undo theme installation. 39 // Used to undo theme installation.
28 std::string previous_theme_id_; 40 std::string previous_theme_id_;
29 bool previous_using_system_theme_; 41 bool previous_using_system_theme_;
30 42
31 // Whether to show an installed bubble on app install, or use the default 43 // Whether to show an installed bubble on app install, or use the default
32 // action of opening a new tab page. 44 // action of opening a new tab page.
33 bool use_app_installed_bubble_; 45 bool use_app_installed_bubble_;
34 46
35 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault); 47 DISALLOW_COPY_AND_ASSIGN(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698