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

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

Issue 589253002: Revert "Chrome 38 script changes from integration branch" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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);
80 $if DART2JS 83 $if DART2JS
81 } 84 }
82 $endif 85 $endif
83 86
84 return event; 87 return event;
85 } 88 }
86 89
87 $!MEMBERS 90 $!MEMBERS
88 91
89 $if DART2JS 92 $if DART2JS
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 * [deltaMode]. 237 * [deltaMode].
235 * 238 *
236 * See also: 239 * See also:
237 * 240 *
238 * * [WheelEvent.deltaY](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html /DOM3-Events.html#events-WheelEvent-deltaY) from the W3C. 241 * * [WheelEvent.deltaY](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html /DOM3-Events.html#events-WheelEvent-deltaY) from the W3C.
239 */ 242 */
240 @DomName('WheelEvent.deltaY') 243 @DomName('WheelEvent.deltaY')
241 num get deltaY => _deltaY; 244 num get deltaY => _deltaY;
242 $endif 245 $endif
243 } 246 }
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