Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Side by Side Diff: tools/dom/templates/html/impl/impl_WheelEvent.darttemplate

Issue 1133303002: Relax the deltaX/Y/Z types in WheelEvent constructor (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698