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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.idl

Issue 1658073002: ServiceWorker: Implement attributes of ExtendableMessageEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: templatize duplicate code Created 4 years, 10 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/serviceworkers/ExtendableMessageEvent.idl
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.idl b/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.idl
index 30aee99e318e92c31f4e6c52a4a4f5171174dee0..6da6bbfbba834d70fe7911d9b3f480d2c3ddacff 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.idl
+++ b/third_party/WebKit/Source/modules/serviceworkers/ExtendableMessageEvent.idl
@@ -5,14 +5,17 @@
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#extendablemessage-event-section
[
- Constructor(DOMString type, optional ExtendableMessageEventInit eventInitDict),
+ // TODO(bashi): Stop using CustomConstructor once we solve reference
+ // circulation between Blink and V8. http://crbug.com/501866
+ // Constructor should be:
+ // Constructor(DOMString type, optional ExtendableMessageEventInit eventInitDict),
+ CustomConstructor,
Exposed=ServiceWorker,
RuntimeEnabled=ServiceWorkerExtendableMessageEvent,
] interface ExtendableMessageEvent : ExtendableEvent {
- // TODO(nhiroki): Implement these attributes (crbug.com/543198).
- // readonly attribute any data;
- // readonly attribute DOMString origin;
- // readonly attribute DOMString lastEventId;
- // [SameObject] readonly attribute (Client or ServiceWorker or MessagePort)? source;
- // [SameObject] readonly attribute MessagePort[]? ports;
+ [Custom=Getter] readonly attribute any data;
+ readonly attribute DOMString origin;
+ readonly attribute DOMString lastEventId;
+ [SameObject] readonly attribute (Client or ServiceWorker or MessagePort)? source;
+ [SameObject] readonly attribute MessagePort[]? ports;
};

Powered by Google App Engine
This is Rietveld 408576698