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

Side by Side Diff: lib/html/templates/html/dart2js/impl_ElementEvents.darttemplate

Issue 11365019: Merging dart:html interfaces and implementations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding generated files. Created 8 years, 1 month 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 class $CLASSNAME extends $SUPER implements $INTERFACE { 5 class $CLASSNAME extends $SUPER {
6 $CLASSNAME(_ptr) : super(_ptr); 6 $CLASSNAME(EventTarget _ptr) : super(_ptr);
7 $!MEMBERS 7 $!MEMBERS
8 EventListenerList get mouseWheel { 8 EventListenerList get mouseWheel {
9 if (JS('bool', '#.onwheel !== undefined', _ptr)) { 9 if (JS('bool', '#.onwheel !== undefined', _ptr)) {
10 // W3C spec, and should be IE9+, but IE has a bug exposing onwheel. 10 // W3C spec, and should be IE9+, but IE has a bug exposing onwheel.
11 return this['wheel']; 11 return this['wheel'];
12 } else if (JS('bool', '#.onmousewheel !== undefined', _ptr)) { 12 } else if (JS('bool', '#.onmousewheel !== undefined', _ptr)) {
13 // Chrome & IE 13 // Chrome & IE
14 return this['mousewheel']; 14 return this['mousewheel'];
15 } else { 15 } else {
16 // Firefox 16 // Firefox
17 return this['DOMMouseScroll']; 17 return this['DOMMouseScroll'];
18 } 18 }
19 } 19 }
20 } 20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698