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

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

Issue 11299220: 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_IDBDatabase.darttemplate
diff --git a/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate b/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
index c40b2bb1a66323ce9deacee7402760ad7abaf128..27f8961e45cce7e51ad1e59769dd3bddf6fe848c 100644
--- a/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
+++ b/sdk/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
@@ -42,7 +42,8 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
return db._transaction(stores, intMode);
}
- IDBTransaction _transaction(stores, mode) native 'transaction';
+ @JSName('transaction')
+ IDBTransaction _transaction(stores, mode) native;
static bool _hasNumericMode(txn) =>
JS('bool', 'typeof(#.mode) === "number"', txn);

Powered by Google App Engine
This is Rietveld 408576698