| 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, int deltaZ: 0, | 10 {Window view, num deltaX: 0, num deltaY: 0, num deltaZ: 0, |
| 11 int deltaMode: 0, | 11 int deltaMode: 0, |
| 12 int detail: 0, int screenX: 0, int screenY: 0, int clientX: 0, | 12 int detail: 0, int screenX: 0, int screenY: 0, int clientX: 0, |
| 13 int clientY: 0, int button: 0, bool canBubble: true, | 13 int clientY: 0, int button: 0, bool canBubble: true, |
| 14 bool cancelable: true, bool ctrlKey: false, bool altKey: false, | 14 bool cancelable: true, bool ctrlKey: false, bool altKey: false, |
| 15 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) { | 15 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) { |
| 16 | 16 |
| 17 var options = { | 17 var options = { |
| 18 'view': view, | 18 'view': view, |
| 19 'deltaMode': deltaMode, | 19 'deltaMode': deltaMode, |
| 20 'deltaX': deltaX, | 20 'deltaX': deltaX, |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 * [deltaMode]. | 160 * [deltaMode]. |
| 161 * | 161 * |
| 162 * See also: | 162 * See also: |
| 163 * | 163 * |
| 164 * * [WheelEvent.deltaY](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html
/DOM3-Events.html#events-WheelEvent-deltaY) from the W3C. | 164 * * [WheelEvent.deltaY](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html
/DOM3-Events.html#events-WheelEvent-deltaY) from the W3C. |
| 165 */ | 165 */ |
| 166 @DomName('WheelEvent.deltaY') | 166 @DomName('WheelEvent.deltaY') |
| 167 num get deltaY => _deltaY; | 167 num get deltaY => _deltaY; |
| 168 $endif | 168 $endif |
| 169 } | 169 } |
| OLD | NEW |