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 _AbstractWorkerWrappingImplementation extends DOMWrapperBase implements Ab
stractWorker { | |
8 _AbstractWorkerWrappingImplementation() : super() {} | |
9 | |
10 static create__AbstractWorkerWrappingImplementation() native { | |
11 return new _AbstractWorkerWrappingImplementation(); | |
12 } | |
13 | |
14 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
15 if (useCapture === null) { | |
16 _addEventListener_AbstractWorker(this, type, listener); | |
17 return; | |
18 } else { | |
19 _addEventListener_AbstractWorker_2(this, type, listener, useCapture); | |
20 return; | |
21 } | |
22 } | |
23 static void _addEventListener_AbstractWorker(receiver, type, listener) native; | |
24 static void _addEventListener_AbstractWorker_2(receiver, type, listener, useCa
pture) native; | |
25 | |
26 bool dispatchEvent(Event evt) { | |
27 return _dispatchEvent_AbstractWorker(this, evt); | |
28 } | |
29 static bool _dispatchEvent_AbstractWorker(receiver, evt) native; | |
30 | |
31 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
32 if (useCapture === null) { | |
33 _removeEventListener_AbstractWorker(this, type, listener); | |
34 return; | |
35 } else { | |
36 _removeEventListener_AbstractWorker_2(this, type, listener, useCapture); | |
37 return; | |
38 } | |
39 } | |
40 static void _removeEventListener_AbstractWorker(receiver, type, listener) nati
ve; | |
41 static void _removeEventListener_AbstractWorker_2(receiver, type, listener, us
eCapture) native; | |
42 | |
43 String get typeName() { return "AbstractWorker"; } | |
44 } | |
OLD | NEW |