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

Unified Diff: sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate

Issue 11416257: Revert "Add @JSName annotation for native fields and methods." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate b/sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate
index 1a2ea807997cb08a9e0d60f8b6d5e4128f0e858f..0367cf3c7f2a1937e6054f954c0a1698936c71c7 100644
--- a/sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate
+++ b/sdk/lib/html/templates/html/dart2js/impl_LocalWindow.darttemplate
@@ -58,8 +58,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
}
// Prevent compiled from thinking 'location' property is available for a Dart
// member.
- @JSName('location')
- _protect_location() native;
+ _protect_location() native 'location';
static _isDartLocation(thing) {
// On Firefox the code that implements 'is Location' fails to find the patch
@@ -91,11 +90,11 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS native "@*DOMWindow" {
_cancelAnimationFrame(id);
}
- @JSName('requestAnimationFrame')
- int _requestAnimationFrame(RequestAnimationFrameCallback callback) native;
+ int _requestAnimationFrame(RequestAnimationFrameCallback callback)
+ native 'requestAnimationFrame';
- @JSName('cancelAnimationFrame')
- void _cancelAnimationFrame(int id) native;
+ void _cancelAnimationFrame(int id)
+ native 'cancelAnimationFrame';
_ensureRequestAnimationFrame() {
if (JS('bool',

Powered by Google App Engine
This is Rietveld 408576698