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 380f393622f8b2fea4812d46cfc7599fa1ab5920..2f75c5adcc09cbb4d20d9e19c2987c0149b838dd 100644 |
--- a/sdk/lib/web_sql/dartium/web_sql_dartium.dart |
+++ b/sdk/lib/web_sql/dartium/web_sql_dartium.dart |
@@ -33,6 +33,7 @@ final web_sqlBlinkMap = { |
'SQLTransaction': () => SqlTransaction, |
}; |
+ |
// 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. |
@@ -95,53 +96,67 @@ 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; |
@DomName('Database.version') |
@DocsEditable() |
- String get version => _blink.BlinkDatabase.instance.version_Getter_(this); |
- |
+ String get version => _blink.BlinkDatabase.instance.version_Getter_(unwrap_jso(this)); |
+ |
void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallback callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) { |
if (successCallback != null) { |
- _blink.BlinkDatabase.instance.changeVersion_Callback_5_(this, oldVersion, newVersion, callback, errorCallback, successCallback); |
+ _blink.BlinkDatabase.instance.changeVersion_Callback_5_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso(callback), unwrap_jso(errorCallback), unwrap_jso(successCallback)); |
return; |
} |
if (errorCallback != null) { |
- _blink.BlinkDatabase.instance.changeVersion_Callback_4_(this, oldVersion, newVersion, callback, errorCallback); |
+ _blink.BlinkDatabase.instance.changeVersion_Callback_4_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso(callback), unwrap_jso(errorCallback)); |
return; |
} |
if (callback != null) { |
- _blink.BlinkDatabase.instance.changeVersion_Callback_3_(this, oldVersion, newVersion, callback); |
+ _blink.BlinkDatabase.instance.changeVersion_Callback_3_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso(callback)); |
return; |
} |
- _blink.BlinkDatabase.instance.changeVersion_Callback_2_(this, oldVersion, newVersion); |
+ _blink.BlinkDatabase.instance.changeVersion_Callback_2_(unwrap_jso(this), oldVersion, newVersion); |
return; |
} |
void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) { |
if (successCallback != null) { |
- _blink.BlinkDatabase.instance.readTransaction_Callback_3_(this, callback, errorCallback, successCallback); |
+ _blink.BlinkDatabase.instance.readTransaction_Callback_3_(unwrap_jso(this), unwrap_jso(callback), unwrap_jso(errorCallback), unwrap_jso(successCallback)); |
return; |
} |
if (errorCallback != null) { |
- _blink.BlinkDatabase.instance.readTransaction_Callback_2_(this, callback, errorCallback); |
+ _blink.BlinkDatabase.instance.readTransaction_Callback_2_(unwrap_jso(this), unwrap_jso(callback), unwrap_jso(errorCallback)); |
return; |
} |
- _blink.BlinkDatabase.instance.readTransaction_Callback_1_(this, callback); |
+ _blink.BlinkDatabase.instance.readTransaction_Callback_1_(unwrap_jso(this), unwrap_jso(callback)); |
return; |
} |
void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) { |
if (successCallback != null) { |
- _blink.BlinkDatabase.instance.transaction_Callback_3_(this, callback, errorCallback, successCallback); |
+ _blink.BlinkDatabase.instance.transaction_Callback_3_(unwrap_jso(this), unwrap_jso(callback), unwrap_jso(errorCallback), unwrap_jso(successCallback)); |
return; |
} |
if (errorCallback != null) { |
- _blink.BlinkDatabase.instance.transaction_Callback_2_(this, callback, errorCallback); |
+ _blink.BlinkDatabase.instance.transaction_Callback_2_(unwrap_jso(this), unwrap_jso(callback), unwrap_jso(errorCallback)); |
return; |
} |
- _blink.BlinkDatabase.instance.transaction_Callback_1_(this, callback); |
+ _blink.BlinkDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwrap_jso(callback)); |
return; |
} |
@@ -161,6 +176,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; |
@@ -195,12 +224,12 @@ class SqlError extends NativeFieldWrapperClass2 { |
@DomName('SQLError.code') |
@DocsEditable() |
- int get code => _blink.BlinkSQLError.instance.code_Getter_(this); |
- |
+ int get code => _blink.BlinkSQLError.instance.code_Getter_(unwrap_jso(this)); |
+ |
@DomName('SQLError.message') |
@DocsEditable() |
- String get message => _blink.BlinkSQLError.instance.message_Getter_(this); |
- |
+ String get message => _blink.BlinkSQLError.instance.message_Getter_(unwrap_jso(this)); |
+ |
} |
// 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 |
@@ -217,18 +246,32 @@ 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_(this); |
- |
+ int get insertId => _blink.BlinkSQLResultSet.instance.insertId_Getter_(unwrap_jso(this)); |
+ |
@DomName('SQLResultSet.rows') |
@DocsEditable() |
- SqlResultSetRowList get rows => _blink.BlinkSQLResultSet.instance.rows_Getter_(this); |
- |
+ SqlResultSetRowList get rows => wrap_jso(_blink.BlinkSQLResultSet.instance.rows_Getter_(unwrap_jso(this))); |
+ |
@DomName('SQLResultSet.rowsAffected') |
@DocsEditable() |
- int get rowsAffected => _blink.BlinkSQLResultSet.instance.rowsAffected_Getter_(this); |
- |
+ int get rowsAffected => _blink.BlinkSQLResultSet.instance.rowsAffected_Getter_(unwrap_jso(this)); |
+ |
} |
// 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 |
@@ -245,18 +288,32 @@ 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_(this); |
- |
+ int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(unwrap_jso(this)); |
+ |
Map operator[](int index) { |
if (index < 0 || index >= length) |
throw new RangeError.index(index, this); |
- return _blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(this, index); |
+ return _blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(unwrap_jso(this), index); |
} |
- Map _nativeIndexedGetter(int index) => _blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(this, index); |
- |
+ Map _nativeIndexedGetter(int index) => _blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(unwrap_jso(this), index); |
+ |
void operator[]=(int index, Map value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
} |
@@ -297,8 +354,8 @@ class SqlResultSetRowList extends NativeFieldWrapperClass2 with ListMixin<Map>, |
@DomName('SQLResultSetRowList.item') |
@DocsEditable() |
- Map item(int index) => _blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(this, index); |
- |
+ Map item(int index) => _blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(unwrap_jso(this), index); |
+ |
} |
// 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 |
@@ -318,8 +375,22 @@ 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_(this, sqlStatement, arguments, callback, errorCallback); |
- |
+ 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)); |
+ |
} |