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 _EventTargetWrappingImplementation extends DOMWrapperBase implements Event
Target { | |
8 _EventTargetWrappingImplementation() : super() {} | |
9 | |
10 static create__EventTargetWrappingImplementation() native { | |
11 return new _EventTargetWrappingImplementation(); | |
12 } | |
13 | |
14 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
15 if (useCapture === null) { | |
16 _addEventListener(this, type, listener); | |
17 return; | |
18 } else { | |
19 _addEventListener_2(this, type, listener, useCapture); | |
20 return; | |
21 } | |
22 } | |
23 static void _addEventListener(receiver, type, listener) native; | |
24 static void _addEventListener_2(receiver, type, listener, useCapture) native; | |
25 | |
26 bool dispatchEvent(Event event) { | |
27 return _dispatchEvent(this, event); | |
28 } | |
29 static bool _dispatchEvent(receiver, event) native; | |
30 | |
31 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
32 if (useCapture === null) { | |
33 _removeEventListener(this, type, listener); | |
34 return; | |
35 } else { | |
36 _removeEventListener_2(this, type, listener, useCapture); | |
37 return; | |
38 } | |
39 } | |
40 static void _removeEventListener(receiver, type, listener) native; | |
41 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | |
42 | |
43 String get typeName() { return "EventTarget"; } | |
44 } | |
OLD | NEW |