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

Unified Diff: Source/modules/push_messaging/PushEventInit.idl

Issue 1311853002: Update PushEvent and PushMessageData to match the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/modules/push_messaging/PushEvent.cpp ('k') | Source/modules/push_messaging/PushMessageData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/push_messaging/PushEventInit.idl
diff --git a/Source/modules/push_messaging/PushEventInit.idl b/Source/modules/push_messaging/PushEventInit.idl
index aa921f407c832292ef0b0d034c33029a30d9c54d..a5672f88cb1dcafeb106b60b42995adfe66fdcfc 100644
--- a/Source/modules/push_messaging/PushEventInit.idl
+++ b/Source/modules/push_messaging/PushEventInit.idl
@@ -4,6 +4,9 @@
// https://w3c.github.io/push-api/#idl-def-PushEvent
+// TODO(peter): Use BufferSource when union types can refer to other union types.
+typedef (ArrayBuffer or ArrayBufferView or USVString) PushMessageDataInit;
+
dictionary PushEventInit : ExtendableEventInit {
- PushMessageData data;
+ PushMessageDataInit data;
};
« no previous file with comments | « Source/modules/push_messaging/PushEvent.cpp ('k') | Source/modules/push_messaging/PushMessageData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698