summaryrefslogtreecommitdiff
path: root/Source/WebCore/workers/DedicatedWorkerGlobalScope.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/workers/DedicatedWorkerGlobalScope.idl')
-rw-r--r--Source/WebCore/workers/DedicatedWorkerGlobalScope.idl19
1 files changed, 5 insertions, 14 deletions
diff --git a/Source/WebCore/workers/DedicatedWorkerGlobalScope.idl b/Source/WebCore/workers/DedicatedWorkerGlobalScope.idl
index ce824f662..a080e6847 100644
--- a/Source/WebCore/workers/DedicatedWorkerGlobalScope.idl
+++ b/Source/WebCore/workers/DedicatedWorkerGlobalScope.idl
@@ -29,21 +29,12 @@
*/
[
- GlobalContext=DedicatedWorkerGlobalScope,
+ CustomProxyToJSObject,
+ Exposed=DedicatedWorker,
+ Global=(Worker,DedicatedWorker),
JSGenerateToNativeObject,
- JSNoStaticTables,
] interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
+ [CallWith=ScriptState, MayThrowException] void postMessage(any message, optional sequence<object> transfer = []);
-#if !defined(LANGUAGE_CPP) || !LANGUAGE_CPP
-#if defined(LANGUAGE_JAVASCRIPT) && LANGUAGE_JAVASCRIPT
- [Custom, RaisesException] void postMessage(any message, optional Array messagePorts);
-#else
- // There's no good way to expose an array via the ObjC bindings, so for now just allow passing in a single port.
- [RaisesException] void postMessage(DOMString message, optional MessagePort messagePort);
-#endif
-#endif
-
- attribute EventListener onmessage;
-
+ attribute EventHandler onmessage;
};
-