| 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 WheelEventWrappingImplementation extends UIEventWrappingImplementation imp
lements WheelEvent { | 5 class WheelEventWrappingImplementation extends UIEventWrappingImplementation imp
lements WheelEvent { |
| 8 WheelEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 6 WheelEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 7 |
| 8 factory WheelEventWrappingImplementation(int deltaX, int deltaY, Window view, |
| 9 int screenX, int screenY, int clientX, int clientY, [bool ctrlKey = false, |
| 10 bool altKey = false, bool shiftKey = false, bool metaKey = false]) { |
| 11 var e = dom.document.createEvent("WheelEvent"); |
| 12 e.initWheelEvent(deltaX, deltaY, LevelDom.unwrap(view), screenX, screenY, |
| 13 clientX, clientY, ctrlKey, altKey, shiftKey, metaKey); |
| 14 return LevelDom.wrapWheelEvent(e); |
| 15 } |
| 16 |
| 10 bool get altKey() { return _ptr.altKey; } | 17 bool get altKey() { return _ptr.altKey; } |
| 11 | 18 |
| 12 int get clientX() { return _ptr.clientX; } | 19 int get clientX() { return _ptr.clientX; } |
| 13 | 20 |
| 14 int get clientY() { return _ptr.clientY; } | 21 int get clientY() { return _ptr.clientY; } |
| 15 | 22 |
| 16 bool get ctrlKey() { return _ptr.ctrlKey; } | 23 bool get ctrlKey() { return _ptr.ctrlKey; } |
| 17 | 24 |
| 18 bool get metaKey() { return _ptr.metaKey; } | 25 bool get metaKey() { return _ptr.metaKey; } |
| 19 | 26 |
| 20 int get offsetX() { return _ptr.offsetX; } | 27 int get offsetX() { return _ptr.offsetX; } |
| 21 | 28 |
| 22 int get offsetY() { return _ptr.offsetY; } | 29 int get offsetY() { return _ptr.offsetY; } |
| 23 | 30 |
| 24 int get screenX() { return _ptr.screenX; } | 31 int get screenX() { return _ptr.screenX; } |
| 25 | 32 |
| 26 int get screenY() { return _ptr.screenY; } | 33 int get screenY() { return _ptr.screenY; } |
| 27 | 34 |
| 28 bool get shiftKey() { return _ptr.shiftKey; } | 35 bool get shiftKey() { return _ptr.shiftKey; } |
| 29 | 36 |
| 30 int get wheelDelta() { return _ptr.wheelDelta; } | 37 int get wheelDelta() { return _ptr.wheelDelta; } |
| 31 | 38 |
| 32 int get wheelDeltaX() { return _ptr.wheelDeltaX; } | 39 int get wheelDeltaX() { return _ptr.wheelDeltaX; } |
| 33 | 40 |
| 34 int get wheelDeltaY() { return _ptr.wheelDeltaY; } | 41 int get wheelDeltaY() { return _ptr.wheelDeltaY; } |
| 35 | 42 |
| 36 int get x() { return _ptr.x; } | 43 int get x() { return _ptr.x; } |
| 37 | 44 |
| 38 int get y() { return _ptr.y; } | 45 int get y() { return _ptr.y; } |
| 39 | |
| 40 void initWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view, int screenX
, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, bool shiftKe
y, bool metaKey) { | |
| 41 _ptr.initWheelEvent(wheelDeltaX, wheelDeltaY, LevelDom.unwrap(view), screenX
, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey); | |
| 42 return; | |
| 43 } | |
| 44 } | 46 } |
| OLD | NEW |