| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 class EventWrappingImplementation extends DOMWrapperBase implements Event { | 5 class EventWrappingImplementation extends DOMWrapperBase implements Event { |
| 8 EventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 6 EventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 7 |
| 8 factory EventWrappingImplementation(String type, [bool canBubble = false, |
| 9 bool cancelable = false]) { |
| 10 var e = dom.document.createEvent("Event"); |
| 11 e.initEvent(type, canBubble, cancelable); |
| 12 return LevelDom.wrapEvent(e); |
| 13 } |
| 14 |
| 10 bool get bubbles() { return _ptr.bubbles; } | 15 bool get bubbles() { return _ptr.bubbles; } |
| 11 | 16 |
| 12 bool get cancelBubble() { return _ptr.cancelBubble; } | 17 bool get cancelBubble() { return _ptr.cancelBubble; } |
| 13 | 18 |
| 14 void set cancelBubble(bool value) { _ptr.cancelBubble = value; } | 19 void set cancelBubble(bool value) { _ptr.cancelBubble = value; } |
| 15 | 20 |
| 16 bool get cancelable() { return _ptr.cancelable; } | 21 bool get cancelable() { return _ptr.cancelable; } |
| 17 | 22 |
| 18 EventTarget get currentTarget() { return LevelDom.wrapEventTarget(_ptr.current
Target); } | 23 EventTarget get currentTarget() { return LevelDom.wrapEventTarget(_ptr.current
Target); } |
| 19 | 24 |
| 20 bool get defaultPrevented() { return _ptr.defaultPrevented; } | 25 bool get defaultPrevented() { return _ptr.defaultPrevented; } |
| 21 | 26 |
| 22 int get eventPhase() { return _ptr.eventPhase; } | 27 int get eventPhase() { return _ptr.eventPhase; } |
| 23 | 28 |
| 24 bool get returnValue() { return _ptr.returnValue; } | 29 bool get returnValue() { return _ptr.returnValue; } |
| 25 | 30 |
| 26 void set returnValue(bool value) { _ptr.returnValue = value; } | 31 void set returnValue(bool value) { _ptr.returnValue = value; } |
| 27 | 32 |
| 28 EventTarget get srcElement() { return LevelDom.wrapEventTarget(_ptr.srcElement
); } | 33 EventTarget get srcElement() { return LevelDom.wrapEventTarget(_ptr.srcElement
); } |
| 29 | 34 |
| 30 EventTarget get target() { return LevelDom.wrapEventTarget(_ptr.target); } | 35 EventTarget get target() { return LevelDom.wrapEventTarget(_ptr.target); } |
| 31 | 36 |
| 32 int get timeStamp() { return _ptr.timeStamp; } | 37 int get timeStamp() { return _ptr.timeStamp; } |
| 33 | 38 |
| 34 String get type() { return _ptr.type; } | 39 String get type() { return _ptr.type; } |
| 35 | 40 |
| 36 void initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) { | |
| 37 _ptr.initEvent(eventTypeArg, canBubbleArg, cancelableArg); | |
| 38 return; | |
| 39 } | |
| 40 | |
| 41 void preventDefault() { | 41 void preventDefault() { |
| 42 _ptr.preventDefault(); | 42 _ptr.preventDefault(); |
| 43 return; | 43 return; |
| 44 } | 44 } |
| 45 | 45 |
| 46 void stopImmediatePropagation() { | 46 void stopImmediatePropagation() { |
| 47 _ptr.stopImmediatePropagation(); | 47 _ptr.stopImmediatePropagation(); |
| 48 return; | 48 return; |
| 49 } | 49 } |
| 50 | 50 |
| 51 void stopPropagation() { | 51 void stopPropagation() { |
| 52 _ptr.stopPropagation(); | 52 _ptr.stopPropagation(); |
| 53 return; | 53 return; |
| 54 } | 54 } |
| 55 } | 55 } |
| OLD | NEW |