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

Unified Diff: lib/html/templates/html/impl/impl_WheelEvent.darttemplate

Issue 11094082: Convert legacy 'native code' to JS-forms in dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/html/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/templates/html/impl/impl_WheelEvent.darttemplate
diff --git a/lib/html/templates/html/impl/impl_WheelEvent.darttemplate b/lib/html/templates/html/impl/impl_WheelEvent.darttemplate
index e4b66098a2ae9316895c5db7638fb0d5a3867093..37873a57d64919f01162e8864c4660b1c43da41c 100644
--- a/lib/html/templates/html/impl/impl_WheelEvent.darttemplate
+++ b/lib/html/templates/html/impl/impl_WheelEvent.darttemplate
@@ -69,12 +69,12 @@ $if DART2JS
return this._deltaMode;
}
- num get _deltaY() native 'return this.deltaY';
- num get _deltaX() native 'return this.deltaX';
- num get _wheelDelta() native 'return this.wheelDelta';
- num get _wheelDeltaX() native 'return this.wheelDeltaX';
- num get _detail() native 'return this.detail';
- int get _deltaMode() native 'return this.deltaMode';
+ num get _deltaY => JS('num', '#.deltaY', this);
+ num get _deltaX => JS('num', '#.deltaX', this);
+ num get _wheelDelta => JS('num', '#.wheelDelta', this);
+ num get _wheelDeltaX => JS('num', '#.wheelDeltaX', this);
+ num get _detail => JS('num', '#.detail', this);
+ int get _deltaMode => JS('int', '#.deltaMode', this);
$else
num get deltaX => $dom_wheelDeltaX;
« no previous file with comments | « lib/html/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698