| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 dart.html; | 5 part of dart.html; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Helper class to implement custom events which wrap DOM events. | 8 * Helper class to implement custom events which wrap DOM events. |
| 9 */ | 9 */ |
| 10 class _WrappedEvent implements Event { | 10 class _WrappedEvent implements Event { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 bool get defaultPrevented => wrapped.defaultPrevented; | 27 bool get defaultPrevented => wrapped.defaultPrevented; |
| 28 | 28 |
| 29 int get eventPhase => wrapped.eventPhase; | 29 int get eventPhase => wrapped.eventPhase; |
| 30 | 30 |
| 31 EventTarget get target => wrapped.target; | 31 EventTarget get target => wrapped.target; |
| 32 | 32 |
| 33 int get timeStamp => wrapped.timeStamp; | 33 int get timeStamp => wrapped.timeStamp; |
| 34 | 34 |
| 35 String get type => wrapped.type; | 35 String get type => wrapped.type; |
| 36 | 36 |
| 37 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, | 37 void _initEvent(String eventTypeArg, bool canBubbleArg, |
| 38 bool cancelableArg) { | 38 bool cancelableArg) { |
| 39 throw new UnsupportedError( | 39 throw new UnsupportedError( |
| 40 'Cannot initialize this Event.'); | 40 'Cannot initialize this Event.'); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void preventDefault() { | 43 void preventDefault() { |
| 44 wrapped.preventDefault(); | 44 wrapped.preventDefault(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 void stopImmediatePropagation() { | 47 void stopImmediatePropagation() { |
| 48 wrapped.stopImmediatePropagation(); | 48 wrapped.stopImmediatePropagation(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 void stopPropagation() { | 51 void stopPropagation() { |
| 52 wrapped.stopPropagation(); | 52 wrapped.stopPropagation(); |
| 53 } | 53 } |
| 54 } | 54 } |
| OLD | NEW |