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

Unified Diff: third_party/WebKit/public/platform/modules/app_banner/app_banner.mojom

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Remove WebAppBannerPromptResult Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/modules/app_banner/app_banner.mojom
diff --git a/third_party/WebKit/public/platform/modules/app_banner/app_banner.mojom b/third_party/WebKit/public/platform/modules/app_banner/app_banner.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..8a7c49c606d692c2b4e7b08c70ffd75da6a51b87
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/app_banner/app_banner.mojom
@@ -0,0 +1,28 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module blink.mojom;
+
+enum AppBannerPromptReply {
+ NONE,
+ CANCEL,
+};
+
+interface AppBannerClient {
+ // The browser asks the renderer if the app banner should be shown.
+ BannerPromptRequest(AppBannerService service, AppBannerEvent& event,
+ string platform) =>
+ (AppBannerPromptReply reply, string referrer);
+};
+
+interface AppBannerEvent {
+ // The browser informs Blink that the app banner was accepted/dismissed.
+ BannerAccepted(string platform);
+ BannerDismissed();
+};
+
+interface AppBannerService {
+ // Blink asks the browser to display a previously offered app banner.
+ DisplayAppBanner();
+};

Powered by Google App Engine
This is Rietveld 408576698