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

Unified Diff: third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.idl

Issue 2133673002: Push API: Implement and ship PushSubscription.options (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add MODULES_EXPORT Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.idl
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.idl b/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.idl
index e4ee9b8108955c09827a3cbe1202e27a89e5a925..ad344b2f4d3372925d25a9ef8cc4d77978841ca8 100644
--- a/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.idl
+++ b/third_party/WebKit/Source/modules/push_messaging/PushSubscriptionOptions.idl
@@ -4,7 +4,10 @@
// https://w3c.github.io/push-api/#idl-def-PushSubscriptionOptions
-dictionary PushSubscriptionOptions {
- boolean userVisibleOnly = false;
- BufferSource applicationServerKey;
+[
+ Exposed=(Window,ServiceWorker),
+ RuntimeEnabled=PushMessaging,
+] interface PushSubscriptionOptions {
+ readonly attribute boolean userVisibleOnly;
+ [SameObject] readonly attribute ArrayBuffer? applicationServerKey;
};

Powered by Google App Engine
This is Rietveld 408576698