| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2010 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 25 matching lines...) Expand all Loading... |
| 36 ConstructorRaisesException, | 36 ConstructorRaisesException, |
| 37 JSGenerateToNativeObject, | 37 JSGenerateToNativeObject, |
| 38 JSGenerateToJSObject | 38 JSGenerateToJSObject |
| 39 ] Worker : AbstractWorker { | 39 ] Worker : AbstractWorker { |
| 40 | 40 |
| 41 attribute EventListener onmessage; | 41 attribute EventListener onmessage; |
| 42 | 42 |
| 43 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT | 43 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
| 44 [Custom] void postMessage(in SerializedScriptValue message, in [Optional
] Array messagePorts) | 44 [Custom] void postMessage(in SerializedScriptValue message, in [Optional
] Array messagePorts) |
| 45 raises(DOMException); | 45 raises(DOMException); |
| 46 | |
| 47 #if defined(ENABLE_LEGACY_VENDOR_PREFIXES) && ENABLE_LEGACY_VENDOR_PREFIXES | |
| 48 [Custom] void webkitPostMessage(in SerializedScriptValue message, in [Op
tional] Array messagePorts) | 46 [Custom] void webkitPostMessage(in SerializedScriptValue message, in [Op
tional] Array messagePorts) |
| 49 raises(DOMException); | 47 raises(DOMException); |
| 50 #endif // defined(ENABLE_LEGACY_VENDOR_PREFIXES) && ENABLE_LEGACY_VENDOR_PREFIXE
S | |
| 51 | |
| 52 #else | 48 #else |
| 53 // There's no good way to expose an array via the ObjC bindings, so for
now just allow passing in a single port. | 49 // There's no good way to expose an array via the ObjC bindings, so for
now just allow passing in a single port. |
| 54 void postMessage(in SerializedScriptValue message, in [Optional] Message
Port messagePort) | 50 void postMessage(in SerializedScriptValue message, in [Optional] Message
Port messagePort) |
| 55 raises(DOMException); | 51 raises(DOMException); |
| 56 #endif | 52 #endif |
| 57 | 53 |
| 58 void terminate(); | 54 void terminate(); |
| 59 }; | 55 }; |
| 60 | 56 |
| 61 } | 57 } |
| OLD | NEW |