| 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 UIEventWrappingImplementation extends EventWrappingImplementation implemen
ts UIEvent { | 5 class UIEventWrappingImplementation extends EventWrappingImplementation implemen
ts UIEvent { |
| 8 UIEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 6 UIEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 7 |
| 8 factory UIEventWrappingImplementation(String type, Window view, int detail, |
| 9 [bool canBubble = false, bool cancelable = false]) { |
| 10 var e = dom.document.createEvent("UIEvent"); |
| 11 e.initUIEvent(type, canBubble, cancelable, LevelDom.unwrap(view), detail); |
| 12 return LevelDom.wrapUIEvent(e); |
| 13 } |
| 14 |
| 10 int get charCode() { return _ptr.charCode; } | 15 int get charCode() { return _ptr.charCode; } |
| 11 | 16 |
| 12 int get detail() { return _ptr.detail; } | 17 int get detail() { return _ptr.detail; } |
| 13 | 18 |
| 14 int get keyCode() { return _ptr.keyCode; } | 19 int get keyCode() { return _ptr.keyCode; } |
| 15 | 20 |
| 16 int get layerX() { return _ptr.layerX; } | 21 int get layerX() { return _ptr.layerX; } |
| 17 | 22 |
| 18 int get layerY() { return _ptr.layerY; } | 23 int get layerY() { return _ptr.layerY; } |
| 19 | 24 |
| 20 int get pageX() { return _ptr.pageX; } | 25 int get pageX() { return _ptr.pageX; } |
| 21 | 26 |
| 22 int get pageY() { return _ptr.pageY; } | 27 int get pageY() { return _ptr.pageY; } |
| 23 | 28 |
| 24 Window get view() { return LevelDom.wrapWindow(_ptr.view); } | 29 Window get view() { return LevelDom.wrapWindow(_ptr.view); } |
| 25 | 30 |
| 26 int get which() { return _ptr.which; } | 31 int get which() { return _ptr.which; } |
| 27 | |
| 28 void initUIEvent(String type, bool canBubble, bool cancelable, Window view, in
t detail) { | |
| 29 _ptr.initUIEvent(type, canBubble, cancelable, LevelDom.unwrap(view), detail)
; | |
| 30 return; | |
| 31 } | |
| 32 } | 32 } |
| OLD | NEW |