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

Unified Diff: Source/core/events/MessageEvent.idl

Issue 1150183007: Re-land: bindings: Use MessageEventInit for MessageEvent constructor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/core/events/MessageEvent.cpp ('k') | Source/core/events/MessageEventInit.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/MessageEvent.idl
diff --git a/Source/core/events/MessageEvent.idl b/Source/core/events/MessageEvent.idl
index eab3089f075451ca57808282efdcd89c86dbf0fd..2dea4ed9fd661aeff1c08bc2cf5f85b3d7d115ac 100644
--- a/Source/core/events/MessageEvent.idl
+++ b/Source/core/events/MessageEvent.idl
@@ -25,16 +25,18 @@
*
*/
+// https://html.spec.whatwg.org/multipage/comms.html#the-messageevent-interfaces
+
[
- EventConstructor,
+ Constructor(DOMString type, optional MessageEventInit eventInitDict),
Exposed=(Window,Worker),
RaisesException=Constructor,
] interface MessageEvent : Event {
- [InitializedByEventConstructor] readonly attribute DOMString origin;
- [InitializedByEventConstructor] readonly attribute DOMString lastEventId;
- [InitializedByEventConstructor] readonly attribute EventTarget? source; // May be a Window or a MessagePort
- [InitializedByEventConstructor, Custom=Getter] readonly attribute any data;
- [InitializedByEventConstructor] readonly attribute MessagePort[] ports;
+ readonly attribute DOMString origin;
+ readonly attribute DOMString lastEventId;
+ readonly attribute EventTarget? source; // May be a Window or a MessagePort
+ [Custom=Getter] readonly attribute any data;
+ readonly attribute MessagePort[]? ports;
[Custom, MeasureAs=InitMessageEvent] void initMessageEvent([Default=Undefined] optional DOMString typeArg,
[Default=Undefined] optional boolean canBubbleArg,
[Default=Undefined] optional boolean cancelableArg,
« no previous file with comments | « Source/core/events/MessageEvent.cpp ('k') | Source/core/events/MessageEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698