| 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 html; | 5 part of html; |
| 6 | 6 |
| 7 class Events { | 7 class Events { |
| 8 /* Raw event target. */ | 8 /* Raw event target. */ |
| 9 final EventTarget _ptr; | 9 final EventTarget _ptr; |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 void _add(EventListener listener, bool useCapture) { | 43 void _add(EventListener listener, bool useCapture) { |
| 44 _ptr.$dom_addEventListener(_type, listener, useCapture); | 44 _ptr.$dom_addEventListener(_type, listener, useCapture); |
| 45 } | 45 } |
| 46 | 46 |
| 47 void _remove(EventListener listener, bool useCapture) { | 47 void _remove(EventListener listener, bool useCapture) { |
| 48 _ptr.$dom_removeEventListener(_type, listener, useCapture); | 48 _ptr.$dom_removeEventListener(_type, listener, useCapture); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 | 52 /// @domName $DOMNAME |
| 53 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 53 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 54 | 54 |
| 55 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent */ | 55 /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent */ |
| 56 Events get on => new Events(this); | 56 Events get on => new Events(this); |
| 57 $!MEMBERS | 57 $!MEMBERS |
| 58 } | 58 } |
| OLD | NEW |