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

Unified Diff: public/web/WebLocalFrame.h

Issue 942913002: [AppBanner] Blink implementation of an event when an install banner is shown. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 5 years, 9 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: public/web/WebLocalFrame.h
diff --git a/public/web/WebLocalFrame.h b/public/web/WebLocalFrame.h
index adc667b980c582ee0a97628f6951b747dfbd9bd0..f678600c0963908f5fc99cdeb0faebb8f2d22e70 100644
--- a/public/web/WebLocalFrame.h
+++ b/public/web/WebLocalFrame.h
@@ -9,6 +9,7 @@
namespace blink {
+enum class WebAppBannerPromptReply;
enum class WebSandboxFlags;
class WebAutofillClient;
class WebContentSettingsClient;
@@ -112,6 +113,13 @@ public:
// Content Settings -------------------------------------------------------
virtual void setContentSettingsClient(WebContentSettingsClient*) = 0;
+
+ // App banner -------------------------------------------------------------
+
+ // Request to show an application install banner for the given |platform|.
+ // The implementation can request the embedder to cancel the call by setting
+ // |cancel| to true.
+ virtual void willShowInstallBannerPrompt(const WebString& platform, WebAppBannerPromptReply*) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698