| 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 /** | 5 /** |
| 6 * Wraps a callback with translations of mouse events to touch events. Use | 6 * Wraps a callback with translations of mouse events to touch events. Use |
| 7 * this function to invoke your callback that expects touch events after | 7 * this function to invoke your callback that expects touch events after |
| 8 * touch events are created from the actual mouse events. | 8 * touch events are created from the actual mouse events. |
| 9 */ | 9 */ |
| 10 EventListener mouseToTouchCallback(EventListener callback) { | 10 EventListener mouseToTouchCallback(EventListener callback) { |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 bool get returnValue() => wrapped.returnValue; | 201 bool get returnValue() => wrapped.returnValue; |
| 202 | 202 |
| 203 EventTarget get srcElement() => wrapped.srcElement; | 203 EventTarget get srcElement() => wrapped.srcElement; |
| 204 | 204 |
| 205 EventTarget get target() => wrapped.target; | 205 EventTarget get target() => wrapped.target; |
| 206 | 206 |
| 207 int get timeStamp() => wrapped.timeStamp; | 207 int get timeStamp() => wrapped.timeStamp; |
| 208 | 208 |
| 209 String get type() => wrapped.type; | 209 String get type() => wrapped.type; |
| 210 | 210 |
| 211 void initEvent(String eventTypeArg, bool canBubbleArg, | |
| 212 bool cancelableArg) { | |
| 213 wrapped.initEvent(eventTypeArg, canBubbleArg, cancelableArg); | |
| 214 } | |
| 215 | |
| 216 void preventDefault() { wrapped.preventDefault(); } | 211 void preventDefault() { wrapped.preventDefault(); } |
| 217 | 212 |
| 218 void stopImmediatePropagation() { wrapped.stopImmediatePropagation(); } | 213 void stopImmediatePropagation() { wrapped.stopImmediatePropagation(); } |
| 219 | 214 |
| 220 void stopPropagation() { wrapped.stopPropagation(); } | 215 void stopPropagation() { wrapped.stopPropagation(); } |
| 221 | 216 |
| 222 int get charCode() => wrapped.charCode; | 217 int get charCode() => wrapped.charCode; |
| 223 | 218 |
| 224 int get detail() => wrapped.detail; | 219 int get detail() => wrapped.detail; |
| 225 | 220 |
| 226 int get keyCode() => wrapped.keyCode; | 221 int get keyCode() => wrapped.keyCode; |
| 227 | 222 |
| 228 int get layerX() => wrapped.layerX; | 223 int get layerX() => wrapped.layerX; |
| 229 | 224 |
| 230 int get layerY() => wrapped.layerY; | 225 int get layerY() => wrapped.layerY; |
| 231 | 226 |
| 232 int get pageX() => wrapped.pageX; | 227 int get pageX() => wrapped.pageX; |
| 233 | 228 |
| 234 int get pageY() => wrapped.pageY; | 229 int get pageY() => wrapped.pageY; |
| 235 | 230 |
| 236 Window get view() => wrapped.view; | 231 Window get view() => wrapped.view; |
| 237 | 232 |
| 238 int get which() => wrapped.which; | 233 int get which() => wrapped.which; |
| 239 | 234 |
| 240 void initUIEvent(String type, bool canBubble, | |
| 241 bool cancelable, Window view, | |
| 242 int detail) { | |
| 243 wrapped.initUIEvent(type, canBubble, cancelable, view, detail); | |
| 244 } | |
| 245 | |
| 246 bool get altKey() => wrapped.altKey; | 235 bool get altKey() => wrapped.altKey; |
| 247 | 236 |
| 248 bool get ctrlKey() => wrapped.ctrlKey; | 237 bool get ctrlKey() => wrapped.ctrlKey; |
| 249 | 238 |
| 250 bool get metaKey() => wrapped.metaKey; | 239 bool get metaKey() => wrapped.metaKey; |
| 251 | 240 |
| 252 bool get shiftKey() => wrapped.shiftKey; | 241 bool get shiftKey() => wrapped.shiftKey; |
| 253 | |
| 254 void initTouchEvent(TouchList touches, TouchList targetTouches, | |
| 255 TouchList changedTouches, String type, | |
| 256 Window view, int screenX, | |
| 257 int screenY, int clientX, | |
| 258 int clientY, bool ctrlKey, | |
| 259 bool altKey, bool shiftKey, | |
| 260 bool metaKey) { | |
| 261 throw "unimplemented"; | |
| 262 } | |
| 263 } | 242 } |
| OLD | NEW |