| 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 class _EventsImpl implements Events { | 5 class _EventsImpl implements Events { |
| 6 /* Raw event target. */ | 6 /* Raw event target. */ |
| 7 // TODO(jacobr): it would be nice if we could specify this as | 7 // TODO(jacobr): it would be nice if we could specify this as |
| 8 // _EventTargetImpl or EventTarget | 8 // _EventTargetImpl or EventTarget |
| 9 final Dynamic _ptr; | 9 final Dynamic _ptr; |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 | 50 |
| 51 void _remove(EventListener listener, bool useCapture) { | 51 void _remove(EventListener listener, bool useCapture) { |
| 52 _ptr.$dom_removeEventListener(_type, listener, useCapture); | 52 _ptr.$dom_removeEventListener(_type, listener, useCapture); |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 | 55 |
| 56 | 56 |
| 57 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 57 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 58 | 58 |
| 59 Events get on() => new _EventsImpl(this); | 59 Events get on => new _EventsImpl(this); |
| 60 $!MEMBERS | 60 $!MEMBERS |
| 61 } | 61 } |
| OLD | NEW |