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

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

Issue 10581043: Merge 142921 - Use an infobar instead of alert box for extension install (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_install_ui.h" 9 #include "chrome/browser/extensions/extension_install_ui.h"
10 10
11 class InfoBarDelegate; 11 class InfoBarDelegate;
12 class Profile; 12 class Profile;
13 class TabContents; 13 class TabContents;
14 14
15 class ExtensionInstallUIDefault : public ExtensionInstallUI { 15 class ExtensionInstallUIDefault : public ExtensionInstallUI {
16 public: 16 public:
17 explicit ExtensionInstallUIDefault(Browser* browser); 17 explicit ExtensionInstallUIDefault(Browser* browser);
18 virtual ~ExtensionInstallUIDefault(); 18 virtual ~ExtensionInstallUIDefault();
19 19
20 // ExtensionInstallUI implementation: 20 // ExtensionInstallUI implementation:
21 virtual void OnInstallSuccess(const extensions::Extension* extension, 21 virtual void OnInstallSuccess(const extensions::Extension* extension,
22 SkBitmap* icon) OVERRIDE; 22 SkBitmap* icon) OVERRIDE;
23 virtual void OnInstallFailure(const string16& error) OVERRIDE; 23 virtual void OnInstallFailure(const CrxInstallerError& error) OVERRIDE;
24 virtual void SetSkipPostInstallUI(bool skip_ui) OVERRIDE; 24 virtual void SetSkipPostInstallUI(bool skip_ui) OVERRIDE;
25 virtual void SetUseAppInstalledBubble(bool use_bubble) OVERRIDE; 25 virtual void SetUseAppInstalledBubble(bool use_bubble) OVERRIDE;
26 26
27 private: 27 private:
28 // Shows an infobar for a newly-installed theme. previous_theme_id should be 28 // Shows an infobar for a newly-installed theme. previous_theme_id should be
29 // empty if the previous theme was the system/default theme. 29 // empty if the previous theme was the system/default theme.
30 static void ShowThemeInfoBar(const std::string& previous_theme_id, 30 static void ShowThemeInfoBar(const std::string& previous_theme_id,
31 bool previous_using_native_theme, 31 bool previous_using_native_theme,
32 const extensions::Extension* new_theme, 32 const extensions::Extension* new_theme,
33 Profile* profile); 33 Profile* profile);
(...skipping 16 matching lines...) Expand all
50 bool previous_using_native_theme_; 50 bool previous_using_native_theme_;
51 51
52 // Whether to show an installed bubble on app install, or use the default 52 // Whether to show an installed bubble on app install, or use the default
53 // action of opening a new tab page. 53 // action of opening a new tab page.
54 bool use_app_installed_bubble_; 54 bool use_app_installed_bubble_;
55 55
56 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault); 56 DISALLOW_IMPLICIT_CONSTRUCTORS(ExtensionInstallUIDefault);
57 }; 57 };
58 58
59 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_ 59 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_DEFAULT_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_install_ui_android.cc ('k') | chrome/browser/extensions/extension_install_ui_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698