Chromium Code Reviews| 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 MouseEventWrappingImplementation extends UIEventWrappingImplementation imp lements MouseEvent { | 5 class MouseEventWrappingImplementation extends UIEventWrappingImplementation imp lements MouseEvent { |
| 8 MouseEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 6 MouseEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 7 |
| 8 factory MouseEventWrappingImplementation(String type, Window view, int detail, | |
| 9 int screenX, int screenY, int clientX, int clientY, int button, | |
| 10 [bool canBubble = false, bool cancelable = false, bool ctrlKey = false, | |
| 11 bool altKey = false, bool shiftKey = false, bool metaKey = false, | |
| 12 EventTarget relatedTarget = null]) { | |
| 13 var e = dom.document.createEvent("MouseEvent"); | |
|
Jacob
2011/10/27 21:23:05
use final instead of var here and elsewhere
nweiz
2011/10/27 22:23:54
Done.
| |
| 14 e.initMouseEvent(type, canBubble, cancelable, LevelDom.unwrap(view), detail, | |
| 15 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, | |
| 16 button, LevelDom.unwrap(relatedTarget)); | |
| 17 return LevelDom.wrapMouseEvent(e); | |
| 18 } | |
| 19 | |
| 10 bool get altKey() { return _ptr.altKey; } | 20 bool get altKey() { return _ptr.altKey; } |
| 11 | 21 |
| 12 int get button() { return _ptr.button; } | 22 int get button() { return _ptr.button; } |
| 13 | 23 |
| 14 int get clientX() { return _ptr.clientX; } | 24 int get clientX() { return _ptr.clientX; } |
| 15 | 25 |
| 16 int get clientY() { return _ptr.clientY; } | 26 int get clientY() { return _ptr.clientY; } |
| 17 | 27 |
| 18 bool get ctrlKey() { return _ptr.ctrlKey; } | 28 bool get ctrlKey() { return _ptr.ctrlKey; } |
| 19 | 29 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 31 | 41 |
| 32 int get screenY() { return _ptr.screenY; } | 42 int get screenY() { return _ptr.screenY; } |
| 33 | 43 |
| 34 bool get shiftKey() { return _ptr.shiftKey; } | 44 bool get shiftKey() { return _ptr.shiftKey; } |
| 35 | 45 |
| 36 Node get toElement() { return LevelDom.wrapNode(_ptr.toElement); } | 46 Node get toElement() { return LevelDom.wrapNode(_ptr.toElement); } |
| 37 | 47 |
| 38 int get x() { return _ptr.x; } | 48 int get x() { return _ptr.x; } |
| 39 | 49 |
| 40 int get y() { return _ptr.y; } | 50 int get y() { return _ptr.y; } |
| 41 | |
| 42 void initMouseEvent(String type, bool canBubble, bool cancelable, Window view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlKey, b ool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTarget) { | |
| 43 _ptr.initMouseEvent(type, canBubble, cancelable, LevelDom.unwrap(view), deta il, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, butt on, LevelDom.unwrap(relatedTarget)); | |
| 44 return; | |
| 45 } | |
| 46 } | 51 } |
| OLD | NEW |