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

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

Issue 593853002: Chrome 38 script changes from integration branch (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
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, 10 {Window view, int deltaX: 0, int deltaY: 0,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Touch.darttemplate ('k') | tools/dom/templates/html/impl/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698