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

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 "chrome/browser/extensions/extension_install_ui.h"
11 11
12 class Profile; 12 class Profile;
13 13
14 class ExtensionInstallUIDefault : public ExtensionInstallUI { 14 class ExtensionInstallUIDefault : public ExtensionInstallUI {
15 public: 15 public:
16 explicit ExtensionInstallUIDefault(Profile* profile); 16 explicit ExtensionInstallUIDefault(Profile* profile);
17 virtual ~ExtensionInstallUIDefault(); 17 virtual ~ExtensionInstallUIDefault();
18 18
19 // ExtensionInstallUI: 19 // ExtensionInstallUI:
20 virtual void OnInstallSuccess(const extensions::Extension* extension, 20 virtual void OnInstallSuccess(const extensions::Extension* extension,
21 const SkBitmap* icon) override; 21 const SkBitmap* icon) override;
22 virtual void OnInstallFailure( 22 virtual void OnInstallFailure(
23 const extensions::CrxInstallerError& error) override; 23 const extensions::CrxInstallerError& error) override;
24 virtual void SetUseAppInstalledBubble(bool use_bubble) override; 24 virtual void SetUseAppInstalledBubble(bool use_bubble) override;
25 virtual void OpenAppInstalledUI(const std::string& app_id) override;
26 virtual ExtensionInstallPrompt* CreateInstallPrompt() override;
25 27
26 private: 28 private:
27 // Used to undo theme installation. 29 // Used to undo theme installation.
28 std::string previous_theme_id_; 30 std::string previous_theme_id_;
29 bool previous_using_system_theme_; 31 bool previous_using_system_theme_;
30 32
31 // Whether to show an installed bubble on app install, or use the default 33 // Whether to show an installed bubble on app install, or use the default
32 // action of opening a new tab page. 34 // action of opening a new tab page.
33 bool use_app_installed_bubble_; 35 bool use_app_installed_bubble_;
34 36
35 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault); 37 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault);
36 }; 38 };
37 39
38 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ 40 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698