| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 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 21 matching lines...) Expand all Loading... |
| 32 JSGenerateIsReachable=Impl, | 32 JSGenerateIsReachable=Impl, |
| 33 ActiveDOMObject, | 33 ActiveDOMObject, |
| 34 EventTarget, | 34 EventTarget, |
| 35 JSNoStaticTables | 35 JSNoStaticTables |
| 36 ] MessagePort { | 36 ] MessagePort { |
| 37 // We need to have something as an ObjC binding, because MessagePort is used in
MessageEvent, which already has one, | 37 // We need to have something as an ObjC binding, because MessagePort is used in
MessageEvent, which already has one, |
| 38 // but we don't want to actually expose the API while it is in flux. | 38 // but we don't want to actually expose the API while it is in flux. |
| 39 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT | 39 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
| 40 [Custom] void postMessage(in any message, in [Optional] Array messagePor
ts) | 40 [Custom] void postMessage(in any message, in [Optional] Array messagePor
ts) |
| 41 raises(DOMException); | 41 raises(DOMException); |
| 42 | |
| 43 #if defined(ENABLE_LEGACY_VENDOR_PREFIXES) && ENABLE_LEGACY_VENDOR_PREFIXES | |
| 44 [Custom] void webkitPostMessage(in any message, in [Optional] Array tran
sfer) | 42 [Custom] void webkitPostMessage(in any message, in [Optional] Array tran
sfer) |
| 45 raises(DOMException); | 43 raises(DOMException); |
| 46 #endif // defined(ENABLE_LEGACY_VENDOR_PREFIXES) && ENABLE_LEGACY_VENDOR_PREFIXE
S | |
| 47 | |
| 48 void start(); | 44 void start(); |
| 49 void close(); | 45 void close(); |
| 50 | 46 |
| 51 // event handler attributes | 47 // event handler attributes |
| 52 attribute EventListener onmessage; | 48 attribute EventListener onmessage; |
| 53 | 49 |
| 54 // EventTarget interface | 50 // EventTarget interface |
| 55 void addEventListener(in DOMString type, | 51 void addEventListener(in DOMString type, |
| 56 in EventListener listener, | 52 in EventListener listener, |
| 57 in [Optional] boolean useCapture); | 53 in [Optional] boolean useCapture); |
| 58 void removeEventListener(in DOMString type, | 54 void removeEventListener(in DOMString type, |
| 59 in EventListener listener, | 55 in EventListener listener, |
| 60 in [Optional] boolean useCapture); | 56 in [Optional] boolean useCapture); |
| 61 boolean dispatchEvent(in Event evt) | 57 boolean dispatchEvent(in Event evt) |
| 62 raises(EventException); | 58 raises(EventException); |
| 63 #endif | 59 #endif |
| 64 }; | 60 }; |
| 65 | 61 |
| 66 } | 62 } |
| OLD | NEW |