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

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

Issue 407483002: Show post-install UI when ephemeral apps are promoted to installed apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@install_guard
Patch Set: Check ephemeral app flag in startup_helper Created 6 years, 5 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_EXTENSIONS_EXTENSION_INSTALL_UI_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 12 matching lines...) Expand all
23 // Interface that should be implemented for each platform to display all the UI 23 // Interface that should be implemented for each platform to display all the UI
24 // around extension installation. 24 // around extension installation.
25 class ExtensionInstallUI { 25 class ExtensionInstallUI {
26 public: 26 public:
27 static ExtensionInstallUI* Create(Profile* profile); 27 static ExtensionInstallUI* Create(Profile* profile);
28 28
29 virtual ~ExtensionInstallUI(); 29 virtual ~ExtensionInstallUI();
30 30
31 // Called when an extension was installed. 31 // Called when an extension was installed.
32 virtual void OnInstallSuccess(const extensions::Extension* extension, 32 virtual void OnInstallSuccess(const extensions::Extension* extension,
33 SkBitmap* icon) = 0; 33 const SkBitmap* icon) = 0;
34 34
35 // Called when an extension failed to install. 35 // Called when an extension failed to install.
36 virtual void OnInstallFailure(const extensions::CrxInstallerError& error) = 0; 36 virtual void OnInstallFailure(const extensions::CrxInstallerError& error) = 0;
37 37
38 38
39 // TODO(asargent) Normally we navigate to the new tab page when an app is 39 // TODO(asargent) Normally we navigate to the new tab page when an app is
40 // installed, but we're experimenting with instead showing a bubble when 40 // installed, but we're experimenting with instead showing a bubble when
41 // an app is installed which points to the new tab button. This may become 41 // an app is installed which points to the new tab button. This may become
42 // the default behavior in the future. 42 // the default behavior in the future.
43 virtual void SetUseAppInstalledBubble(bool use_bubble) = 0; 43 virtual void SetUseAppInstalledBubble(bool use_bubble) = 0;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 Profile* profile_; 84 Profile* profile_;
85 85
86 // Whether or not to show the default UI after completing the installation. 86 // Whether or not to show the default UI after completing the installation.
87 bool skip_post_install_ui_; 87 bool skip_post_install_ui_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallUI); 89 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallUI);
90 }; 90 };
91 91
92 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_ 92 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698