| 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, num deltaX: 0, num deltaY: 0, num deltaZ: 0, | 10 {Window view, num deltaX: 0, num deltaY: 0, num deltaZ: 0, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 'altKey': altKey, | 32 'altKey': altKey, |
| 33 'shiftKey': shiftKey, | 33 'shiftKey': shiftKey, |
| 34 'metaKey': metaKey, | 34 'metaKey': metaKey, |
| 35 'relatedTarget': relatedTarget, | 35 'relatedTarget': relatedTarget, |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 $if DART2JS | 38 $if DART2JS |
| 39 if (view == null) { | 39 if (view == null) { |
| 40 view = window; | 40 view = window; |
| 41 } | 41 } |
| 42 | 42 |
| 43 return JS('WheelEvent', 'new WheelEvent(#, #)', | 43 return JS('WheelEvent', 'new WheelEvent(#, #)', |
| 44 type, convertDartToNative_Dictionary(options)); | 44 type, convertDartToNative_Dictionary(options)); |
| 45 | 45 |
| 46 $else | 46 $else |
| 47 return _blink.BlinkWheelEvent.constructorCallback_2(type, options); | 47 return wrap_jso(_blink.BlinkWheelEvent.instance.constructorCallback_2_(type,
convertDartToNative_Dictionary(options))); |
| 48 $endif | 48 $endif |
| 49 } | 49 } |
| 50 | 50 |
| 51 $!MEMBERS | 51 $!MEMBERS |
| 52 | 52 |
| 53 $if DART2JS | 53 $if DART2JS |
| 54 /** | 54 /** |
| 55 * The amount that is expected to scroll vertically, in units determined by | 55 * The amount that is expected to scroll vertically, in units determined by |
| 56 * [deltaMode]. | 56 * [deltaMode]. |
| 57 * | 57 * |
| (...skipping 102 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 |