OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Henry Mason <hmason@mac.com> | 2 * Copyright (C) 2007 Henry Mason <hmason@mac.com> |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 18 matching lines...) Expand all Loading... |
29 EventConstructor, | 29 EventConstructor, |
30 Exposed=(Window,Worker), | 30 Exposed=(Window,Worker), |
31 RaisesException=Constructor, | 31 RaisesException=Constructor, |
32 Custom=Wrap, | 32 Custom=Wrap, |
33 ] interface MessageEvent : Event { | 33 ] interface MessageEvent : Event { |
34 [InitializedByEventConstructor] readonly attribute DOMString origin; | 34 [InitializedByEventConstructor] readonly attribute DOMString origin; |
35 [InitializedByEventConstructor] readonly attribute DOMString lastEventId; | 35 [InitializedByEventConstructor] readonly attribute DOMString lastEventId; |
36 [InitializedByEventConstructor] readonly attribute EventTarget? source; // M
ay be a Window or a MessagePort | 36 [InitializedByEventConstructor] readonly attribute EventTarget? source; // M
ay be a Window or a MessagePort |
37 [InitializedByEventConstructor, Custom=Getter] readonly attribute any data; | 37 [InitializedByEventConstructor, Custom=Getter] readonly attribute any data; |
38 [InitializedByEventConstructor] readonly attribute MessagePort[] ports; | 38 [InitializedByEventConstructor] readonly attribute MessagePort[] ports; |
39 [Custom, MeasureAs=InitMessageEvent] void initMessageEvent([Default=Undefine
d] optional DOMString typeArg, | 39 [Custom, MeasureAs=InitMessageEvent] void initMessageEvent(optional DOMStrin
g typeArg, |
40 [Default=Undefined] optional boolean canBubbl
eArg, | 40 optional boolean canBubbleArg, |
41 [Default=Undefined] optional boolean cancelab
leArg, | 41 optional boolean cancelableArg, |
42 [Default=Undefined] optional any dataArg, | 42 optional any dataArg, |
43 [Default=Undefined] optional DOMString origin
Arg, | 43 optional DOMString originArg, |
44 [Default=Undefined] optional DOMString lastEv
entIdArg, | 44 optional DOMString lastEventIdArg, |
45 [Default=Undefined] optional Window sourceArg
, | 45 optional Window sourceArg, |
46 [Default=Undefined] optional MessagePort[] me
ssagePorts); | 46 optional MessagePort[] messagePorts); |
47 }; | 47 }; |
OLD | NEW |