| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ | 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ |
| 8 | 8 |
| 9 factory WheelEvent(String type, | 9 factory WheelEvent(String type, |
| 10 {Window view, int deltaX: 0, int deltaY: 0, | 10 {Window view, int deltaX: 0, int deltaY: 0, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Dartium always needs these flipped because we're using the legacy | 70 // Dartium always needs these flipped because we're using the legacy |
| 71 // _initWebKitWheelEvent instead of the more modern WheelEvent constructor | 71 // _initWebKitWheelEvent instead of the more modern WheelEvent constructor |
| 72 // which isn't yet properly exposed by the Dartium bindings. | 72 // which isn't yet properly exposed by the Dartium bindings. |
| 73 deltaX = -deltaX; | 73 deltaX = -deltaX; |
| 74 deltaY = -deltaY; | 74 deltaY = -deltaY; |
| 75 $endif | 75 $endif |
| 76 // Fallthrough for Dartium. | 76 // Fallthrough for Dartium. |
| 77 event._initMouseEvent(type, canBubble, cancelable, view, detail, | 77 event._initMouseEvent(type, canBubble, cancelable, view, detail, |
| 78 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, | 78 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, |
| 79 metaKey, button, relatedTarget); | 79 metaKey, button, relatedTarget); |
| 80 event._initWebKitWheelEvent(deltaX, deltaY, | |
| 81 view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, | |
| 82 metaKey); | |
| 83 $if DART2JS | 80 $if DART2JS |
| 84 } | 81 } |
| 85 $endif | 82 $endif |
| 86 | 83 |
| 87 return event; | 84 return event; |
| 88 } | 85 } |
| 89 | 86 |
| 90 $!MEMBERS | 87 $!MEMBERS |
| 91 | 88 |
| 92 $if DART2JS | 89 $if DART2JS |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 * [deltaMode]. | 234 * [deltaMode]. |
| 238 * | 235 * |
| 239 * See also: | 236 * See also: |
| 240 * | 237 * |
| 241 * * [WheelEvent.deltaY](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html
/DOM3-Events.html#events-WheelEvent-deltaY) from the W3C. | 238 * * [WheelEvent.deltaY](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html
/DOM3-Events.html#events-WheelEvent-deltaY) from the W3C. |
| 242 */ | 239 */ |
| 243 @DomName('WheelEvent.deltaY') | 240 @DomName('WheelEvent.deltaY') |
| 244 num get deltaY => _deltaY; | 241 num get deltaY => _deltaY; |
| 245 $endif | 242 $endif |
| 246 } | 243 } |
| OLD | NEW |