OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
6 | 6 |
| 7 // We implement EventTarget and have stubs for its methods because it's tricky t
o |
| 8 // convince the scripts to make our instance methods abstract, and the bodies th
at |
| 9 // get generated require `this` to be an EventTarget. |
7 @DocsEditable() | 10 @DocsEditable() |
8 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME extends EventTarge
t { | 11 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME implements EventTa
rget { |
| 12 |
| 13 void addEventListener(String type, dynamic listener(Event event), [bool useCap
ture]); |
| 14 bool dispatchEvent(Event event); |
| 15 void removeEventListener(String type, dynamic listener(Event event), [bool use
Capture]); |
| 16 Events get on; |
| 17 |
9 $!MEMBERS} | 18 $!MEMBERS} |
OLD | NEW |