| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 IsWorkerContext, | 36 IsWorkerContext, |
| 37 JSGenerateToNativeObject, | 37 JSGenerateToNativeObject, |
| 38 JSNoStaticTables, | 38 JSNoStaticTables, |
| 39 OmitConstructor | 39 OmitConstructor |
| 40 ] DedicatedWorkerContext : WorkerContext { | 40 ] DedicatedWorkerContext : WorkerContext { |
| 41 | 41 |
| 42 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP | 42 #if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP |
| 43 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT | 43 #if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT |
| 44 [Custom] void postMessage(in any message, in [Optional] Array messagePor
ts) | 44 [Custom] void postMessage(in any message, in [Optional] Array messagePor
ts) |
| 45 raises(DOMException); | 45 raises(DOMException); |
| 46 | |
| 47 #if defined(ENABLE_LEGACY_VENDOR_PREFIXES) && ENABLE_LEGACY_VENDOR_PREFIXES | |
| 48 [Custom] void webkitPostMessage(in any message, in [Optional] Array tran
sferList) | 46 [Custom] void webkitPostMessage(in any message, in [Optional] Array tran
sferList) |
| 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 DOMString message, in [Optional] MessagePort message
Port) | 50 void postMessage(in DOMString message, in [Optional] MessagePort message
Port) |
| 55 raises(DOMException); | 51 raises(DOMException); |
| 56 #endif | 52 #endif |
| 57 #endif | 53 #endif |
| 58 | 54 |
| 59 attribute EventListener onmessage; | 55 attribute EventListener onmessage; |
| 60 | 56 |
| 61 }; | 57 }; |
| 62 | 58 |
| 63 } | 59 } |
| OLD | NEW |