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

Side by Side Diff: sdk/lib/web_sql/dartium/web_sql_dartium.dart

Issue 1321613005: Dartium w/ JsInterop enabled (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « sdk/lib/web_sql/dart2js/web_sql_dart2js.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * An API for storing data in the browser that can be queried with SQL. 2 * An API for storing data in the browser that can be queried with SQL.
3 * 3 *
4 * **Caution:** this specification is no longer actively maintained by the Web 4 * **Caution:** this specification is no longer actively maintained by the Web
5 * Applications Working Group and may be removed at any time. 5 * Applications Working Group and may be removed at any time.
6 * See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase /) 6 * See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase /)
7 * for more information. 7 * for more information.
8 * 8 *
9 * The [dart:indexed_db] APIs is a recommended alternatives. 9 * The [dart:indexed_db] APIs is a recommended alternatives.
10 */ 10 */
11 library dart.dom.web_sql; 11 library dart.dom.web_sql;
12 12
13 import 'dart:async'; 13 import 'dart:async';
14 import 'dart:collection'; 14 import 'dart:collection';
15 import 'dart:_internal' hide deprecated; 15 import 'dart:_internal' hide deprecated;
16 import 'dart:html'; 16 import 'dart:html';
17 import 'dart:html_common'; 17 import 'dart:html_common';
18 import 'dart:nativewrappers'; 18 import 'dart:nativewrappers';
19 import 'dart:_blink' as _blink; 19 import 'dart:_blink' as _blink;
20 import 'dart:js' as js;
21
20 // DO NOT EDIT - unless you are editing documentation as per: 22 // DO NOT EDIT - unless you are editing documentation as per:
21 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 23 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
22 // Auto-generated dart:audio library. 24 // Auto-generated dart:audio library.
23 25
24 26
25 27
28 // Need a default constructor for constructing classes with mixins that are
29 // also extending NativeFieldWrapperClass2. Defining JsoNativeFieldWrapper
30 // extending NativeFieldWrapperClass2 creates a default constructor.
31 class JsoNativeFieldWrapper extends NativeFieldWrapperClass2 {}
32
26 33
27 // FIXME: Can we make this private? 34 // FIXME: Can we make this private?
28 final web_sqlBlinkMap = { 35 final web_sqlBlinkMap = {
29 'Database': () => SqlDatabase, 36 'Database': () => SqlDatabase,
30 'SQLError': () => SqlError, 37 'SQLError': () => SqlError,
31 'SQLResultSet': () => SqlResultSet, 38 'SQLResultSet': () => SqlResultSet,
32 'SQLResultSetRowList': () => SqlResultSetRowList, 39 'SQLResultSetRowList': () => SqlResultSetRowList,
33 'SQLTransaction': () => SqlTransaction, 40 'SQLTransaction': () => SqlTransaction,
34 41
35 }; 42 };
36 43
44 // FIXME: Can we make this private?
45 final web_sqlBlinkFunctionMap = {
46 'Database': () => SqlDatabase.internalCreateSqlDatabase,
47 'SQLError': () => SqlError.internalCreateSqlError,
48 'SQLResultSet': () => SqlResultSet.internalCreateSqlResultSet,
49 'SQLResultSetRowList': () => SqlResultSetRowList.internalCreateSqlResultSetRow List,
50 'SQLTransaction': () => SqlTransaction.internalCreateSqlTransaction,
51
52 };
37 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 53 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
38 // for details. All rights reserved. Use of this source code is governed by a 54 // for details. All rights reserved. Use of this source code is governed by a
39 // BSD-style license that can be found in the LICENSE file. 55 // BSD-style license that can be found in the LICENSE file.
40 56
41 // WARNING: Do not edit - generated code. 57 // WARNING: Do not edit - generated code.
42 58
43 59
44 @DomName('SQLStatementCallback') 60 @DomName('SQLStatementCallback')
45 // http://www.w3.org/TR/webdatabase/#sqlstatementcallback 61 // http://www.w3.org/TR/webdatabase/#sqlstatementcallback
46 @Experimental() // deprecated 62 @Experimental() // deprecated
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 @DomName('Database') 105 @DomName('Database')
90 @SupportedBrowser(SupportedBrowser.CHROME) 106 @SupportedBrowser(SupportedBrowser.CHROME)
91 @SupportedBrowser(SupportedBrowser.SAFARI) 107 @SupportedBrowser(SupportedBrowser.SAFARI)
92 @Experimental() 108 @Experimental()
93 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api 109 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api
94 @Experimental() // deprecated 110 @Experimental() // deprecated
95 class SqlDatabase extends NativeFieldWrapperClass2 { 111 class SqlDatabase extends NativeFieldWrapperClass2 {
96 // To suppress missing implicit constructor warnings. 112 // To suppress missing implicit constructor warnings.
97 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); } 113 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); }
98 114
115 static SqlDatabase internalCreateSqlDatabase() {
116 return new SqlDatabase._internalWrap();
117 }
118
119 js.JsObject blink_jsObject;
120
121 factory SqlDatabase._internalWrap() {
122 return new SqlDatabase.internal_();
123 }
124
125 SqlDatabase.internal_() { }
126
127 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
128 int get hashCode => unwrap_jso(this).hashCode;
129
99 /// Checks if this type is supported on the current platform. 130 /// Checks if this type is supported on the current platform.
100 static bool get supported => true; 131 static bool get supported => true;
101 132
102 @DomName('Database.version') 133 @DomName('Database.version')
103 @DocsEditable() 134 @DocsEditable()
104 String get version => _blink.BlinkDatabase.instance.version_Getter_(unwrap_jso (this)); 135 String get version => _blink.BlinkDatabase.instance.version_Getter_(unwrap_jso (this));
105 136
106 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall back]) { 137 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall back]) {
107 if (successCallback != null) { 138 if (successCallback != null) {
108 _blink.BlinkDatabase.instance.changeVersion_Callback_5_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso(callback), unwrap_jso(errorCallback), unwrap_ jso(successCallback)); 139 _blink.BlinkDatabase.instance.changeVersion_Callback_5_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso((transaction) => callback(wrap_jso(transactio n))), unwrap_jso((error) => errorCallback(wrap_jso(error))), unwrap_jso(() => su ccessCallback()));
109 return; 140 return;
110 } 141 }
111 if (errorCallback != null) { 142 if (errorCallback != null) {
112 _blink.BlinkDatabase.instance.changeVersion_Callback_4_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso(callback), unwrap_jso(errorCallback)); 143 _blink.BlinkDatabase.instance.changeVersion_Callback_4_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso((transaction) => callback(wrap_jso(transactio n))), unwrap_jso((error) => errorCallback(wrap_jso(error))));
113 return; 144 return;
114 } 145 }
115 if (callback != null) { 146 if (callback != null) {
116 _blink.BlinkDatabase.instance.changeVersion_Callback_3_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso(callback)); 147 _blink.BlinkDatabase.instance.changeVersion_Callback_3_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso((transaction) => callback(wrap_jso(transactio n))));
117 return; 148 return;
118 } 149 }
119 _blink.BlinkDatabase.instance.changeVersion_Callback_2_(unwrap_jso(this), ol dVersion, newVersion); 150 _blink.BlinkDatabase.instance.changeVersion_Callback_2_(unwrap_jso(this), ol dVersion, newVersion);
120 return; 151 return;
121 } 152 }
122 153
123 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall back errorCallback, VoidCallback successCallback]) { 154 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall back errorCallback, VoidCallback successCallback]) {
124 if (successCallback != null) { 155 if (successCallback != null) {
125 _blink.BlinkDatabase.instance.readTransaction_Callback_3_(unwrap_jso(this) , unwrap_jso(callback), unwrap_jso(errorCallback), unwrap_jso(successCallback)); 156 _blink.BlinkDatabase.instance.readTransaction_Callback_3_(unwrap_jso(this) , unwrap_jso((transaction) => callback(wrap_jso(transaction))), unwrap_jso((erro r) => errorCallback(wrap_jso(error))), unwrap_jso(() => successCallback()));
126 return; 157 return;
127 } 158 }
128 if (errorCallback != null) { 159 if (errorCallback != null) {
129 _blink.BlinkDatabase.instance.readTransaction_Callback_2_(unwrap_jso(this) , unwrap_jso(callback), unwrap_jso(errorCallback)); 160 _blink.BlinkDatabase.instance.readTransaction_Callback_2_(unwrap_jso(this) , unwrap_jso((transaction) => callback(wrap_jso(transaction))), unwrap_jso((erro r) => errorCallback(wrap_jso(error))));
130 return; 161 return;
131 } 162 }
132 _blink.BlinkDatabase.instance.readTransaction_Callback_1_(unwrap_jso(this), unwrap_jso(callback)); 163 _blink.BlinkDatabase.instance.readTransaction_Callback_1_(unwrap_jso(this), unwrap_jso((transaction) => callback(wrap_jso(transaction))));
133 return; 164 return;
134 } 165 }
135 166
136 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) { 167 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) {
137 if (successCallback != null) { 168 if (successCallback != null) {
138 _blink.BlinkDatabase.instance.transaction_Callback_3_(unwrap_jso(this), un wrap_jso(callback), unwrap_jso(errorCallback), unwrap_jso(successCallback)); 169 _blink.BlinkDatabase.instance.transaction_Callback_3_(unwrap_jso(this), un wrap_jso((transaction) => callback(wrap_jso(transaction))), unwrap_jso((error) = > errorCallback(wrap_jso(error))), unwrap_jso(() => successCallback()));
139 return; 170 return;
140 } 171 }
141 if (errorCallback != null) { 172 if (errorCallback != null) {
142 _blink.BlinkDatabase.instance.transaction_Callback_2_(unwrap_jso(this), un wrap_jso(callback), unwrap_jso(errorCallback)); 173 _blink.BlinkDatabase.instance.transaction_Callback_2_(unwrap_jso(this), un wrap_jso((transaction) => callback(wrap_jso(transaction))), unwrap_jso((error) = > errorCallback(wrap_jso(error))));
143 return; 174 return;
144 } 175 }
145 _blink.BlinkDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwr ap_jso(callback)); 176 _blink.BlinkDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwr ap_jso((transaction) => callback(wrap_jso(transaction))));
146 return; 177 return;
147 } 178 }
148 179
149 } 180 }
150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 181 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
151 // for details. All rights reserved. Use of this source code is governed by a 182 // for details. All rights reserved. Use of this source code is governed by a
152 // BSD-style license that can be found in the LICENSE file. 183 // BSD-style license that can be found in the LICENSE file.
153 184
154 // WARNING: Do not edit - generated code. 185 // WARNING: Do not edit - generated code.
155 186
156 187
157 @DocsEditable() 188 @DocsEditable()
158 @DomName('SQLError') 189 @DomName('SQLError')
159 // http://www.w3.org/TR/webdatabase/#sqlerror 190 // http://www.w3.org/TR/webdatabase/#sqlerror
160 @Experimental() // deprecated 191 @Experimental() // deprecated
161 class SqlError extends NativeFieldWrapperClass2 { 192 class SqlError extends NativeFieldWrapperClass2 {
162 // To suppress missing implicit constructor warnings. 193 // To suppress missing implicit constructor warnings.
163 factory SqlError._() { throw new UnsupportedError("Not supported"); } 194 factory SqlError._() { throw new UnsupportedError("Not supported"); }
164 195
196 static SqlError internalCreateSqlError() {
197 return new SqlError._internalWrap();
198 }
199
200 js.JsObject blink_jsObject;
201
202 factory SqlError._internalWrap() {
203 return new SqlError.internal_();
204 }
205
206 SqlError.internal_() { }
207
208 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
209 int get hashCode => unwrap_jso(this).hashCode;
210
165 @DomName('SQLError.CONSTRAINT_ERR') 211 @DomName('SQLError.CONSTRAINT_ERR')
166 @DocsEditable() 212 @DocsEditable()
167 static const int CONSTRAINT_ERR = 6; 213 static const int CONSTRAINT_ERR = 6;
168 214
169 @DomName('SQLError.DATABASE_ERR') 215 @DomName('SQLError.DATABASE_ERR')
170 @DocsEditable() 216 @DocsEditable()
171 static const int DATABASE_ERR = 1; 217 static const int DATABASE_ERR = 1;
172 218
173 @DomName('SQLError.QUOTA_ERR') 219 @DomName('SQLError.QUOTA_ERR')
174 @DocsEditable() 220 @DocsEditable()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 257
212 258
213 @DocsEditable() 259 @DocsEditable()
214 @DomName('SQLResultSet') 260 @DomName('SQLResultSet')
215 // http://www.w3.org/TR/webdatabase/#sqlresultset 261 // http://www.w3.org/TR/webdatabase/#sqlresultset
216 @Experimental() // deprecated 262 @Experimental() // deprecated
217 class SqlResultSet extends NativeFieldWrapperClass2 { 263 class SqlResultSet extends NativeFieldWrapperClass2 {
218 // To suppress missing implicit constructor warnings. 264 // To suppress missing implicit constructor warnings.
219 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); } 265 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); }
220 266
267 static SqlResultSet internalCreateSqlResultSet() {
268 return new SqlResultSet._internalWrap();
269 }
270
271 js.JsObject blink_jsObject;
272
273 factory SqlResultSet._internalWrap() {
274 return new SqlResultSet.internal_();
275 }
276
277 SqlResultSet.internal_() { }
278
279 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
280 int get hashCode => unwrap_jso(this).hashCode;
281
221 @DomName('SQLResultSet.insertId') 282 @DomName('SQLResultSet.insertId')
222 @DocsEditable() 283 @DocsEditable()
223 int get insertId => _blink.BlinkSQLResultSet.instance.insertId_Getter_(unwrap_ jso(this)); 284 int get insertId => _blink.BlinkSQLResultSet.instance.insertId_Getter_(unwrap_ jso(this));
224 285
225 @DomName('SQLResultSet.rows') 286 @DomName('SQLResultSet.rows')
226 @DocsEditable() 287 @DocsEditable()
227 SqlResultSetRowList get rows => wrap_jso(_blink.BlinkSQLResultSet.instance.row s_Getter_(unwrap_jso(this))); 288 SqlResultSetRowList get rows => wrap_jso(_blink.BlinkSQLResultSet.instance.row s_Getter_(unwrap_jso(this)));
228 289
229 @DomName('SQLResultSet.rowsAffected') 290 @DomName('SQLResultSet.rowsAffected')
230 @DocsEditable() 291 @DocsEditable()
231 int get rowsAffected => _blink.BlinkSQLResultSet.instance.rowsAffected_Getter_ (unwrap_jso(this)); 292 int get rowsAffected => _blink.BlinkSQLResultSet.instance.rowsAffected_Getter_ (unwrap_jso(this));
232 293
233 } 294 }
234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
235 // for details. All rights reserved. Use of this source code is governed by a 296 // for details. All rights reserved. Use of this source code is governed by a
236 // BSD-style license that can be found in the LICENSE file. 297 // BSD-style license that can be found in the LICENSE file.
237 298
238 // WARNING: Do not edit - generated code. 299 // WARNING: Do not edit - generated code.
239 300
240 301
241 @DocsEditable() 302 @DocsEditable()
242 @DomName('SQLResultSetRowList') 303 @DomName('SQLResultSetRowList')
243 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist 304 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
244 @Experimental() // deprecated 305 @Experimental() // deprecated
245 class SqlResultSetRowList extends NativeFieldWrapperClass2 with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> { 306 class SqlResultSetRowList extends JsoNativeFieldWrapper with ListMixin<Map>, Imm utableListMixin<Map> implements List<Map> {
246 // To suppress missing implicit constructor warnings. 307 // To suppress missing implicit constructor warnings.
247 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); } 308 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
248 309
310 static SqlResultSetRowList internalCreateSqlResultSetRowList() {
311 return new SqlResultSetRowList._internalWrap();
312 }
313
314 js.JsObject blink_jsObject;
315
316 factory SqlResultSetRowList._internalWrap() {
317 return new SqlResultSetRowList.internal_();
318 }
319
320 SqlResultSetRowList.internal_() { }
321
322 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
323 int get hashCode => unwrap_jso(this).hashCode;
324
249 @DomName('SQLResultSetRowList.length') 325 @DomName('SQLResultSetRowList.length')
250 @DocsEditable() 326 @DocsEditable()
251 int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(unwr ap_jso(this)); 327 int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(unwr ap_jso(this));
252 328
253 Map operator[](int index) { 329 Map operator[](int index) {
254 if (index < 0 || index >= length) 330 if (index < 0 || index >= length)
255 throw new RangeError.index(index, this); 331 throw new RangeError.index(index, this);
256 return _blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(unwrap_jso( this), index); 332 return wrap_jso(_blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(un wrap_jso(this), index));
257 } 333 }
258 334
259 Map _nativeIndexedGetter(int index) => _blink.BlinkSQLResultSetRowList.instanc e.item_Callback_1_(unwrap_jso(this), index); 335 Map _nativeIndexedGetter(int index) => wrap_jso(_blink.BlinkSQLResultSetRowLis t.instance.item_Callback_1_(unwrap_jso(this), index));
260 336
261 void operator[]=(int index, Map value) { 337 void operator[]=(int index, Map value) {
262 throw new UnsupportedError("Cannot assign element of immutable List."); 338 throw new UnsupportedError("Cannot assign element of immutable List.");
263 } 339 }
264 // -- start List<Map> mixins. 340 // -- start List<Map> mixins.
265 // Map is the element type. 341 // Map is the element type.
266 342
267 343
268 void set length(int value) { 344 set length(int value) {
269 throw new UnsupportedError("Cannot resize immutable List."); 345 throw new UnsupportedError("Cannot resize immutable List.");
270 } 346 }
271 347
272 Map get first { 348 Map get first {
273 if (this.length > 0) { 349 if (this.length > 0) {
274 return _nativeIndexedGetter(0); 350 return _nativeIndexedGetter(0);
275 } 351 }
276 throw new StateError("No elements"); 352 throw new StateError("No elements");
277 } 353 }
278 354
(...skipping 12 matching lines...) Expand all
291 } 367 }
292 if (len == 0) throw new StateError("No elements"); 368 if (len == 0) throw new StateError("No elements");
293 throw new StateError("More than one element"); 369 throw new StateError("More than one element");
294 } 370 }
295 371
296 Map elementAt(int index) => this[index]; 372 Map elementAt(int index) => this[index];
297 // -- end List<Map> mixins. 373 // -- end List<Map> mixins.
298 374
299 @DomName('SQLResultSetRowList.item') 375 @DomName('SQLResultSetRowList.item')
300 @DocsEditable() 376 @DocsEditable()
301 Map item(int index) => _blink.BlinkSQLResultSetRowList.instance.item_Callback_ 1_(unwrap_jso(this), index); 377 Map item(int index) => wrap_jso(_blink.BlinkSQLResultSetRowList.instance.item_ Callback_1_(unwrap_jso(this), index));
302 378
303 } 379 }
304 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
305 // for details. All rights reserved. Use of this source code is governed by a 381 // for details. All rights reserved. Use of this source code is governed by a
306 // BSD-style license that can be found in the LICENSE file. 382 // BSD-style license that can be found in the LICENSE file.
307 383
308 // WARNING: Do not edit - generated code. 384 // WARNING: Do not edit - generated code.
309 385
310 386
311 @DocsEditable() 387 @DocsEditable()
312 @DomName('SQLTransaction') 388 @DomName('SQLTransaction')
313 @SupportedBrowser(SupportedBrowser.CHROME) 389 @SupportedBrowser(SupportedBrowser.CHROME)
314 @SupportedBrowser(SupportedBrowser.SAFARI) 390 @SupportedBrowser(SupportedBrowser.SAFARI)
315 @Experimental() 391 @Experimental()
316 // http://www.w3.org/TR/webdatabase/#sqltransaction 392 // http://www.w3.org/TR/webdatabase/#sqltransaction
317 @deprecated // deprecated 393 @deprecated // deprecated
318 class SqlTransaction extends NativeFieldWrapperClass2 { 394 class SqlTransaction extends NativeFieldWrapperClass2 {
319 // To suppress missing implicit constructor warnings. 395 // To suppress missing implicit constructor warnings.
320 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } 396 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
321 397
398 static SqlTransaction internalCreateSqlTransaction() {
399 return new SqlTransaction._internalWrap();
400 }
401
402 js.JsObject blink_jsObject;
403
404 factory SqlTransaction._internalWrap() {
405 return new SqlTransaction.internal_();
406 }
407
408 SqlTransaction.internal_() { }
409
410 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
411 int get hashCode => unwrap_jso(this).hashCode;
412
322 @DomName('SQLTransaction.executeSql') 413 @DomName('SQLTransaction.executeSql')
323 @DocsEditable() 414 @DocsEditable()
324 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) => _blink.BlinkSQLTrans action.instance.executeSql_Callback_4_(unwrap_jso(this), sqlStatement, arguments , unwrap_jso(callback), unwrap_jso(errorCallback)); 415 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) => _blink.BlinkSQLTrans action.instance.executeSql_Callback_4_(unwrap_jso(this), sqlStatement, arguments , unwrap_jso((transaction, resultSet) => callback(wrap_jso(transaction), wrap_js o(resultSet))), unwrap_jso((transaction, error) => errorCallback(wrap_jso(transa ction), wrap_jso(error))));
325 416
326 } 417 }
OLDNEW
« no previous file with comments | « sdk/lib/web_sql/dart2js/web_sql_dart2js.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698