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

Unified Diff: sdk/lib/web_sql/dartium/web_sql_dartium.dart

Issue 1234273003: - Update _blink library using dart:js instead of native keyword (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Enable --gen-interop Created 5 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
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | tools/dom/scripts/go.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_sql/dartium/web_sql_dartium.dart
diff --git a/sdk/lib/web_sql/dartium/web_sql_dartium.dart b/sdk/lib/web_sql/dartium/web_sql_dartium.dart
index 540f88dce0e0eb0c00e79afdf7d1dd79c1faf590..8960eedfba0ba0c79033e08706965a72da47a948 100644
--- a/sdk/lib/web_sql/dartium/web_sql_dartium.dart
+++ b/sdk/lib/web_sql/dartium/web_sql_dartium.dart
@@ -34,6 +34,15 @@ final web_sqlBlinkMap = {
};
+// FIXME: Can we make this private?
+final web_sqlBlinkFunctionMap = {
+ 'Database': () => SqlDatabase.internalCreateSqlDatabase,
+ 'SQLError': () => SqlError.internalCreateSqlError,
+ 'SQLResultSet': () => SqlResultSet.internalCreateSqlResultSet,
+ 'SQLResultSetRowList': () => SqlResultSetRowList.internalCreateSqlResultSetRowList,
+ 'SQLTransaction': () => SqlTransaction.internalCreateSqlTransaction,
+
+};
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -96,6 +105,20 @@ class SqlDatabase extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory SqlDatabase._() { throw new UnsupportedError("Not supported"); }
+ static SqlDatabase internalCreateSqlDatabase() {
+ return new SqlDatabase._internalWrap();
+ }
+
+ JsObject blink_jsObject = null;
+
+ factory SqlDatabase._internalWrap() {
+ return new SqlDatabase._internal();
+ }
+
+ SqlDatabase._internal() { }
+
+ bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
+
/// Checks if this type is supported on the current platform.
static bool get supported => true;
@@ -162,6 +185,20 @@ class SqlError extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory SqlError._() { throw new UnsupportedError("Not supported"); }
+ static SqlError internalCreateSqlError() {
+ return new SqlError._internalWrap();
+ }
+
+ JsObject blink_jsObject = null;
+
+ factory SqlError._internalWrap() {
+ return new SqlError._internal();
+ }
+
+ SqlError._internal() { }
+
+ bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
+
@DomName('SQLError.CONSTRAINT_ERR')
@DocsEditable()
static const int CONSTRAINT_ERR = 6;
@@ -218,6 +255,20 @@ class SqlResultSet extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory SqlResultSet._() { throw new UnsupportedError("Not supported"); }
+ static SqlResultSet internalCreateSqlResultSet() {
+ return new SqlResultSet._internalWrap();
+ }
+
+ JsObject blink_jsObject = null;
+
+ factory SqlResultSet._internalWrap() {
+ return new SqlResultSet._internal();
+ }
+
+ SqlResultSet._internal() { }
+
+ bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
+
@DomName('SQLResultSet.insertId')
@DocsEditable()
int get insertId => _blink.BlinkSQLResultSet.instance.insertId_Getter_(unwrap_jso(this));
@@ -246,6 +297,20 @@ class SqlResultSetRowList extends NativeFieldWrapperClass2 with ListMixin<Map>,
// To suppress missing implicit constructor warnings.
factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
+ static SqlResultSetRowList internalCreateSqlResultSetRowList() {
+ return new SqlResultSetRowList._internalWrap();
+ }
+
+ JsObject blink_jsObject = null;
+
+ factory SqlResultSetRowList._internalWrap() {
+ return new SqlResultSetRowList._internal();
+ }
+
+ SqlResultSetRowList._internal() { }
+
+ bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
+
@DomName('SQLResultSetRowList.length')
@DocsEditable()
int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(unwrap_jso(this));
@@ -319,6 +384,20 @@ class SqlTransaction extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
+ static SqlTransaction internalCreateSqlTransaction() {
+ return new SqlTransaction._internalWrap();
+ }
+
+ JsObject blink_jsObject = null;
+
+ factory SqlTransaction._internalWrap() {
+ return new SqlTransaction._internal();
+ }
+
+ SqlTransaction._internal() { }
+
+ bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
+
@DomName('SQLTransaction.executeSql')
@DocsEditable()
void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCallback callback, SqlStatementErrorCallback errorCallback]) => _blink.BlinkSQLTransaction.instance.executeSql_Callback_4_(unwrap_jso(this), sqlStatement, arguments, unwrap_jso(callback), unwrap_jso(errorCallback));
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | tools/dom/scripts/go.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698