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

Unified Diff: core/events/MessageEvent.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « core/events/KeyboardEventInit.idl ('k') | core/events/MessageEventInit.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/events/MessageEvent.idl
diff --git a/core/events/MessageEvent.idl b/core/events/MessageEvent.idl
index 3f2fadc8025355443b4fc1536e291226611f5a3f..588a9397f371543fcd79ae406553a67b5ae516e7 100644
--- a/core/events/MessageEvent.idl
+++ b/core/events/MessageEvent.idl
@@ -25,17 +25,22 @@
*
*/
+// https://html.spec.whatwg.org/multipage/comms.html#the-messageevent-interfaces
+
[
- EventConstructor,
+ Constructor(DOMString type, optional MessageEventInit eventInitDict),
Exposed=(Window,Worker),
RaisesException=Constructor,
- Custom=Wrap,
] 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;
+ [Custom=Getter] readonly attribute any data;
+ readonly attribute DOMString origin;
+ readonly attribute DOMString lastEventId;
+ // TODO(bashi): |source| should be (WindowProxy or MessagePort)?
+ readonly attribute EventTarget? source;
+ readonly attribute MessagePort[]? ports;
+
+ // TODO(philipj): None of the initMessageEvent() arguments should be
+ // optional, and |sourceArg| and |portsArg| are of the wrong type.
[Custom, MeasureAs=InitMessageEvent] void initMessageEvent([Default=Undefined] optional DOMString typeArg,
[Default=Undefined] optional boolean canBubbleArg,
[Default=Undefined] optional boolean cancelableArg,
@@ -43,5 +48,5 @@
[Default=Undefined] optional DOMString originArg,
[Default=Undefined] optional DOMString lastEventIdArg,
[Default=Undefined] optional Window sourceArg,
- [Default=Undefined] optional MessagePort[] messagePorts);
+ [Default=Undefined] optional MessagePort[] portsArg);
};
« no previous file with comments | « core/events/KeyboardEventInit.idl ('k') | core/events/MessageEventInit.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698