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

Unified Diff: sdk/lib/web_sql/dart2js/web_sql_dart2js.dart

Issue 409053002: Use @Native annotation on dart2js DOM native classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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
Index: sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
diff --git a/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart b/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
index cdc5e171f25048e09fcf4447b39dd6daf4de5c7c..163ad7958cb1a5b042284abd48fbb55ecf421160 100644
--- a/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
+++ b/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
@@ -15,7 +15,7 @@ import 'dart:collection';
import 'dart:_internal' hide deprecated;
import 'dart:html';
import 'dart:html_common';
-import 'dart:_js_helper' show convertDartClosureToJS, Creates, JSName;
+import 'dart:_js_helper' show convertDartClosureToJS, Creates, JSName, Native;
import 'dart:_foreign_helper' show JS;
import 'dart:_interceptors' show Interceptor;
// DO NOT EDIT - unless you are editing documentation as per:
@@ -81,7 +81,8 @@ typedef void SqlTransactionErrorCallback(SqlError error);
@Experimental()
// http://www.w3.org/TR/webdatabase/#asynchronous-database-api
@Experimental() // deprecated
-class SqlDatabase extends Interceptor native "Database" {
+@Native("Database")
+class SqlDatabase extends Interceptor {
// To suppress missing implicit constructor warnings.
factory SqlDatabase._() { throw new UnsupportedError("Not supported"); }
@@ -125,7 +126,8 @@ class SqlDatabase extends Interceptor native "Database" {
@DomName('SQLError')
// http://www.w3.org/TR/webdatabase/#sqlerror
@Experimental() // deprecated
-class SqlError extends Interceptor native "SQLError" {
+@Native("SQLError")
+class SqlError extends Interceptor {
// To suppress missing implicit constructor warnings.
factory SqlError._() { throw new UnsupportedError("Not supported"); }
@@ -178,7 +180,8 @@ class SqlError extends Interceptor native "SQLError" {
@DomName('SQLResultSet')
// http://www.w3.org/TR/webdatabase/#sqlresultset
@Experimental() // deprecated
-class SqlResultSet extends Interceptor native "SQLResultSet" {
+@Native("SQLResultSet")
+class SqlResultSet extends Interceptor {
// To suppress missing implicit constructor warnings.
factory SqlResultSet._() { throw new UnsupportedError("Not supported"); }
@@ -203,7 +206,8 @@ class SqlResultSet extends Interceptor native "SQLResultSet" {
@DomName('SQLResultSetRowList')
// http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
@Experimental() // deprecated
-class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> native "SQLResultSetRowList" {
+@Native("SQLResultSetRowList")
+class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> {
// To suppress missing implicit constructor warnings.
factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
@@ -279,7 +283,8 @@ class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList
@Experimental()
// http://www.w3.org/TR/webdatabase/#sqltransaction
@deprecated // deprecated
-class SqlTransaction extends Interceptor native "SQLTransaction" {
+@Native("SQLTransaction")
+class SqlTransaction extends Interceptor {
// To suppress missing implicit constructor warnings.
factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
@@ -299,7 +304,8 @@ class SqlTransaction extends Interceptor native "SQLTransaction" {
@Experimental()
// http://www.w3.org/TR/webdatabase/#sqltransactionsync
@Experimental() // deprecated
-abstract class _SQLTransactionSync extends Interceptor native "SQLTransactionSync" {
+@Native("SQLTransactionSync")
+abstract class _SQLTransactionSync extends Interceptor {
// To suppress missing implicit constructor warnings.
factory _SQLTransactionSync._() { throw new UnsupportedError("Not supported"); }
}

Powered by Google App Engine
This is Rietveld 408576698