OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class _DedicatedWorkerContextWrappingImplementation extends _WorkerContextWrappi
ngImplementation implements DedicatedWorkerContext { | |
8 _DedicatedWorkerContextWrappingImplementation() : super() {} | |
9 | |
10 static create__DedicatedWorkerContextWrappingImplementation() native { | |
11 return new _DedicatedWorkerContextWrappingImplementation(); | |
12 } | |
13 | |
14 EventListener get onmessage() { return _get_onmessage(this); } | |
15 static EventListener _get_onmessage(var _this) native; | |
16 | |
17 void set onmessage(EventListener value) { _set_onmessage(this, value); } | |
18 static void _set_onmessage(var _this, EventListener value) native; | |
19 | |
20 void postMessage(Object message, [List messagePorts = null]) { | |
21 if (messagePorts === null) { | |
22 _postMessage(this, message); | |
23 return; | |
24 } else { | |
25 _postMessage_2(this, message, messagePorts); | |
26 return; | |
27 } | |
28 } | |
29 static void _postMessage(receiver, message) native; | |
30 static void _postMessage_2(receiver, message, messagePorts) native; | |
31 | |
32 void webkitPostMessage(Object message, [List transferList = null]) { | |
33 if (transferList === null) { | |
34 _webkitPostMessage(this, message); | |
35 return; | |
36 } else { | |
37 _webkitPostMessage_2(this, message, transferList); | |
38 return; | |
39 } | |
40 } | |
41 static void _webkitPostMessage(receiver, message) native; | |
42 static void _webkitPostMessage_2(receiver, message, transferList) native; | |
43 | |
44 String get typeName() { return "DedicatedWorkerContext"; } | |
45 } | |
OLD | NEW |