| 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 15 matching lines...) Expand all Loading... |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 [ | 28 [ |
| 29 JSNoStaticTables, | 29 JSNoStaticTables, |
| 30 ConstructorTemplate=Event | 30 ConstructorTemplate=Event |
| 31 ] interface MessageEvent : Event { | 31 ] interface MessageEvent : Event { |
| 32 [InitializedByEventConstructor] readonly attribute DOMString origin; | 32 [InitializedByEventConstructor] readonly attribute DOMString origin; |
| 33 [InitializedByEventConstructor] readonly attribute DOMString lastEventId; | 33 [InitializedByEventConstructor] readonly attribute DOMString lastEventId; |
| 34 [InitializedByEventConstructor] readonly attribute DOMWindow source; | 34 [InitializedByEventConstructor] readonly attribute DOMWindow source; |
| 35 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT | 35 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
| 36 [InitializedByEventConstructor, CachedAttribute, CustomGetter] readonly attr
ibute DOMObject data; | 36 [InitializedByEventConstructor, CachedAttribute, CustomGetter] readonly attr
ibute any data; |
| 37 [InitializedByEventConstructor, CustomGetter] readonly attribute Array ports
; | 37 [InitializedByEventConstructor, CustomGetter] readonly attribute Array ports
; |
| 38 | 38 |
| 39 [Custom] void initMessageEvent(in [Optional=DefaultIsUndefined] DOMString ty
peArg, | 39 [Custom] void initMessageEvent(in [Optional=DefaultIsUndefined] DOMString ty
peArg, |
| 40 in [Optional=DefaultIsUndefined] boolean canB
ubbleArg, | 40 in [Optional=DefaultIsUndefined] boolean canB
ubbleArg, |
| 41 in [Optional=DefaultIsUndefined] boolean canc
elableArg, | 41 in [Optional=DefaultIsUndefined] boolean canc
elableArg, |
| 42 in [Optional=DefaultIsUndefined] DOMObject da
taArg, | 42 in [Optional=DefaultIsUndefined] any dataArg,
|
| 43 in [Optional=DefaultIsUndefined] DOMString or
iginArg, | 43 in [Optional=DefaultIsUndefined] DOMString or
iginArg, |
| 44 in [Optional=DefaultIsUndefined] DOMString la
stEventIdArg, | 44 in [Optional=DefaultIsUndefined] DOMString la
stEventIdArg, |
| 45 in [Optional=DefaultIsUndefined] DOMWindow so
urceArg, | 45 in [Optional=DefaultIsUndefined] DOMWindow so
urceArg, |
| 46 in [Optional=DefaultIsUndefined] Array messag
ePorts); | 46 in [Optional=DefaultIsUndefined] Array messag
ePorts); |
| 47 | 47 |
| 48 [Custom] void webkitInitMessageEvent(in [Optional=DefaultIsUndefined] DOMStr
ing typeArg, | 48 [Custom] void webkitInitMessageEvent(in [Optional=DefaultIsUndefined] DOMStr
ing typeArg, |
| 49 in [Optional=DefaultIsUndefined] boolea
n canBubbleArg, | 49 in [Optional=DefaultIsUndefined] boolea
n canBubbleArg, |
| 50 in [Optional=DefaultIsUndefined] boolea
n cancelableArg, | 50 in [Optional=DefaultIsUndefined] boolea
n cancelableArg, |
| 51 in [Optional=DefaultIsUndefined] DOMObj
ect dataArg, | 51 in [Optional=DefaultIsUndefined] any da
taArg, |
| 52 in [Optional=DefaultIsUndefined] DOMStr
ing originArg, | 52 in [Optional=DefaultIsUndefined] DOMStr
ing originArg, |
| 53 in [Optional=DefaultIsUndefined] DOMStr
ing lastEventIdArg, | 53 in [Optional=DefaultIsUndefined] DOMStr
ing lastEventIdArg, |
| 54 in [Optional=DefaultIsUndefined] DOMWin
dow sourceArg, | 54 in [Optional=DefaultIsUndefined] DOMWin
dow sourceArg, |
| 55 in [Optional=DefaultIsUndefined] Array
transferables); | 55 in [Optional=DefaultIsUndefined] Array
transferables); |
| 56 #else | 56 #else |
| 57 // Code generator for ObjC bindings does not support custom bindings, thus t
here is no good way to | 57 // Code generator for ObjC bindings does not support custom bindings, thus t
here is no good way to |
| 58 // return a variant value. As workaround, expose the data attribute as Seria
lizedScriptValue. | 58 // return a variant value. As workaround, expose the data attribute as Seria
lizedScriptValue. |
| 59 readonly attribute SerializedScriptValue data; | 59 readonly attribute SerializedScriptValue data; |
| 60 | 60 |
| 61 // There's no good way to expose an array via the ObjC bindings, so for now
just expose a single port. | 61 // There's no good way to expose an array via the ObjC bindings, so for now
just expose a single port. |
| 62 readonly attribute MessagePort messagePort; | 62 readonly attribute MessagePort messagePort; |
| 63 | 63 |
| 64 void initMessageEvent(in [Optional=DefaultIsUndefined] DOMString typeArg, | 64 void initMessageEvent(in [Optional=DefaultIsUndefined] DOMString typeArg, |
| 65 in [Optional=DefaultIsUndefined] boolean canBubbleArg,
| 65 in [Optional=DefaultIsUndefined] boolean canBubbleArg,
|
| 66 in [Optional=DefaultIsUndefined] boolean cancelableArg
, | 66 in [Optional=DefaultIsUndefined] boolean cancelableArg
, |
| 67 in [Optional=DefaultIsUndefined] SerializedScriptValue
dataArg, | 67 in [Optional=DefaultIsUndefined] SerializedScriptValue
dataArg, |
| 68 in [Optional=DefaultIsUndefined] DOMString originArg, | 68 in [Optional=DefaultIsUndefined] DOMString originArg, |
| 69 in [Optional=DefaultIsUndefined] DOMString lastEventId
Arg, | 69 in [Optional=DefaultIsUndefined] DOMString lastEventId
Arg, |
| 70 in [Optional=DefaultIsUndefined] DOMWindow sourceArg, | 70 in [Optional=DefaultIsUndefined] DOMWindow sourceArg, |
| 71 in [Optional=DefaultIsUndefined] MessagePort messagePo
rt); | 71 in [Optional=DefaultIsUndefined] MessagePort messagePo
rt); |
| 72 #endif | 72 #endif |
| 73 | 73 |
| 74 }; | 74 }; |
| 75 | 75 |
| OLD | NEW |