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

Unified Diff: chrome/browser/ui/intents/web_intent_picker.h

Issue 11035017: Mac Web Intents Part 15: Inline extension install prompt (model) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/intents/web_intent_picker.h
diff --git a/chrome/browser/ui/intents/web_intent_picker.h b/chrome/browser/ui/intents/web_intent_picker.h
index 4279f9424fff6289a709264a9f9dd93fa162a059..5d2c52fca35997eab792a9de7f181052d8cb128c 100644
--- a/chrome/browser/ui/intents/web_intent_picker.h
+++ b/chrome/browser/ui/intents/web_intent_picker.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/string16.h"
+#include "chrome/browser/extensions/extension_install_prompt.h"
#include "ui/gfx/size.h"
class WebIntentPickerDelegate;
@@ -83,6 +84,14 @@ class WebIntentPicker {
// Called when an extension installation started via the picker has failed.
virtual void OnExtensionInstallFailure(const std::string& id) = 0;
+ // Shows the default extension install dialog. Override this to show a custom
+ // dialog.
+ virtual void OnShowExtensionInstallDialog(
+ gfx::NativeWindow parent,
+ content::PageNavigator* navigator,
+ ExtensionInstallPrompt::Delegate* delegate,
+ const ExtensionInstallPrompt::Prompt& prompt);
+
// Called when the inline disposition experiences an auto-resize.
virtual void OnInlineDispositionAutoResize(const gfx::Size& size) = 0;

Powered by Google App Engine
This is Rietveld 408576698