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

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

Issue 1345083002: Revert "Dartium JS Interop enabled." (Closed) Base URL: https://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-analyzer.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
22 // DO NOT EDIT - unless you are editing documentation as per: 20 // DO NOT EDIT - unless you are editing documentation as per:
23 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 21 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
24 // Auto-generated dart:audio library. 22 // Auto-generated dart:audio library.
25 23
26 24
27 25
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
33 26
34 // FIXME: Can we make this private? 27 // FIXME: Can we make this private?
35 final web_sqlBlinkMap = { 28 final web_sqlBlinkMap = {
36 'Database': () => SqlDatabase, 29 'Database': () => SqlDatabase,
37 'SQLError': () => SqlError, 30 'SQLError': () => SqlError,
38 'SQLResultSet': () => SqlResultSet, 31 'SQLResultSet': () => SqlResultSet,
39 'SQLResultSetRowList': () => SqlResultSetRowList, 32 'SQLResultSetRowList': () => SqlResultSetRowList,
40 'SQLTransaction': () => SqlTransaction, 33 'SQLTransaction': () => SqlTransaction,
41 34
42 }; 35 };
43 36
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 };
53 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 37 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
54 // for details. All rights reserved. Use of this source code is governed by a 38 // for details. All rights reserved. Use of this source code is governed by a
55 // BSD-style license that can be found in the LICENSE file. 39 // BSD-style license that can be found in the LICENSE file.
56 40
57 // WARNING: Do not edit - generated code. 41 // WARNING: Do not edit - generated code.
58 42
59 43
60 @DomName('SQLStatementCallback') 44 @DomName('SQLStatementCallback')
61 // http://www.w3.org/TR/webdatabase/#sqlstatementcallback 45 // http://www.w3.org/TR/webdatabase/#sqlstatementcallback
62 @Experimental() // deprecated 46 @Experimental() // deprecated
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 @DomName('Database') 89 @DomName('Database')
106 @SupportedBrowser(SupportedBrowser.CHROME) 90 @SupportedBrowser(SupportedBrowser.CHROME)
107 @SupportedBrowser(SupportedBrowser.SAFARI) 91 @SupportedBrowser(SupportedBrowser.SAFARI)
108 @Experimental() 92 @Experimental()
109 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api 93 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api
110 @Experimental() // deprecated 94 @Experimental() // deprecated
111 class SqlDatabase extends NativeFieldWrapperClass2 { 95 class SqlDatabase extends NativeFieldWrapperClass2 {
112 // To suppress missing implicit constructor warnings. 96 // To suppress missing implicit constructor warnings.
113 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); } 97 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); }
114 98
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
130 /// Checks if this type is supported on the current platform. 99 /// Checks if this type is supported on the current platform.
131 static bool get supported => true; 100 static bool get supported => true;
132 101
133 @DomName('Database.version') 102 @DomName('Database.version')
134 @DocsEditable() 103 @DocsEditable()
135 String get version => _blink.BlinkDatabase.instance.version_Getter_(unwrap_jso (this)); 104 String get version => _blink.BlinkDatabase.instance.version_Getter_(unwrap_jso (this));
136 105
137 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall back]) { 106 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall back]) {
138 if (successCallback != null) { 107 if (successCallback != null) {
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())); 108 _blink.BlinkDatabase.instance.changeVersion_Callback_5_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso(callback), unwrap_jso(errorCallback), unwrap_ jso(successCallback));
140 return; 109 return;
141 } 110 }
142 if (errorCallback != null) { 111 if (errorCallback != null) {
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)))); 112 _blink.BlinkDatabase.instance.changeVersion_Callback_4_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso(callback), unwrap_jso(errorCallback));
144 return; 113 return;
145 } 114 }
146 if (callback != null) { 115 if (callback != null) {
147 _blink.BlinkDatabase.instance.changeVersion_Callback_3_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso((transaction) => callback(wrap_jso(transactio n)))); 116 _blink.BlinkDatabase.instance.changeVersion_Callback_3_(unwrap_jso(this), oldVersion, newVersion, unwrap_jso(callback));
148 return; 117 return;
149 } 118 }
150 _blink.BlinkDatabase.instance.changeVersion_Callback_2_(unwrap_jso(this), ol dVersion, newVersion); 119 _blink.BlinkDatabase.instance.changeVersion_Callback_2_(unwrap_jso(this), ol dVersion, newVersion);
151 return; 120 return;
152 } 121 }
153 122
154 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall back errorCallback, VoidCallback successCallback]) { 123 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall back errorCallback, VoidCallback successCallback]) {
155 if (successCallback != null) { 124 if (successCallback != null) {
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())); 125 _blink.BlinkDatabase.instance.readTransaction_Callback_3_(unwrap_jso(this) , unwrap_jso(callback), unwrap_jso(errorCallback), unwrap_jso(successCallback));
157 return; 126 return;
158 } 127 }
159 if (errorCallback != null) { 128 if (errorCallback != null) {
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)))); 129 _blink.BlinkDatabase.instance.readTransaction_Callback_2_(unwrap_jso(this) , unwrap_jso(callback), unwrap_jso(errorCallback));
161 return; 130 return;
162 } 131 }
163 _blink.BlinkDatabase.instance.readTransaction_Callback_1_(unwrap_jso(this), unwrap_jso((transaction) => callback(wrap_jso(transaction)))); 132 _blink.BlinkDatabase.instance.readTransaction_Callback_1_(unwrap_jso(this), unwrap_jso(callback));
164 return; 133 return;
165 } 134 }
166 135
167 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) { 136 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) {
168 if (successCallback != null) { 137 if (successCallback != null) {
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())); 138 _blink.BlinkDatabase.instance.transaction_Callback_3_(unwrap_jso(this), un wrap_jso(callback), unwrap_jso(errorCallback), unwrap_jso(successCallback));
170 return; 139 return;
171 } 140 }
172 if (errorCallback != null) { 141 if (errorCallback != null) {
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)))); 142 _blink.BlinkDatabase.instance.transaction_Callback_2_(unwrap_jso(this), un wrap_jso(callback), unwrap_jso(errorCallback));
174 return; 143 return;
175 } 144 }
176 _blink.BlinkDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwr ap_jso((transaction) => callback(wrap_jso(transaction)))); 145 _blink.BlinkDatabase.instance.transaction_Callback_1_(unwrap_jso(this), unwr ap_jso(callback));
177 return; 146 return;
178 } 147 }
179 148
180 } 149 }
181 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 150 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
182 // for details. All rights reserved. Use of this source code is governed by a 151 // for details. All rights reserved. Use of this source code is governed by a
183 // BSD-style license that can be found in the LICENSE file. 152 // BSD-style license that can be found in the LICENSE file.
184 153
185 // WARNING: Do not edit - generated code. 154 // WARNING: Do not edit - generated code.
186 155
187 156
188 @DocsEditable() 157 @DocsEditable()
189 @DomName('SQLError') 158 @DomName('SQLError')
190 // http://www.w3.org/TR/webdatabase/#sqlerror 159 // http://www.w3.org/TR/webdatabase/#sqlerror
191 @Experimental() // deprecated 160 @Experimental() // deprecated
192 class SqlError extends NativeFieldWrapperClass2 { 161 class SqlError extends NativeFieldWrapperClass2 {
193 // To suppress missing implicit constructor warnings. 162 // To suppress missing implicit constructor warnings.
194 factory SqlError._() { throw new UnsupportedError("Not supported"); } 163 factory SqlError._() { throw new UnsupportedError("Not supported"); }
195 164
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
211 @DomName('SQLError.CONSTRAINT_ERR') 165 @DomName('SQLError.CONSTRAINT_ERR')
212 @DocsEditable() 166 @DocsEditable()
213 static const int CONSTRAINT_ERR = 6; 167 static const int CONSTRAINT_ERR = 6;
214 168
215 @DomName('SQLError.DATABASE_ERR') 169 @DomName('SQLError.DATABASE_ERR')
216 @DocsEditable() 170 @DocsEditable()
217 static const int DATABASE_ERR = 1; 171 static const int DATABASE_ERR = 1;
218 172
219 @DomName('SQLError.QUOTA_ERR') 173 @DomName('SQLError.QUOTA_ERR')
220 @DocsEditable() 174 @DocsEditable()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 211
258 212
259 @DocsEditable() 213 @DocsEditable()
260 @DomName('SQLResultSet') 214 @DomName('SQLResultSet')
261 // http://www.w3.org/TR/webdatabase/#sqlresultset 215 // http://www.w3.org/TR/webdatabase/#sqlresultset
262 @Experimental() // deprecated 216 @Experimental() // deprecated
263 class SqlResultSet extends NativeFieldWrapperClass2 { 217 class SqlResultSet extends NativeFieldWrapperClass2 {
264 // To suppress missing implicit constructor warnings. 218 // To suppress missing implicit constructor warnings.
265 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); } 219 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); }
266 220
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
282 @DomName('SQLResultSet.insertId') 221 @DomName('SQLResultSet.insertId')
283 @DocsEditable() 222 @DocsEditable()
284 int get insertId => _blink.BlinkSQLResultSet.instance.insertId_Getter_(unwrap_ jso(this)); 223 int get insertId => _blink.BlinkSQLResultSet.instance.insertId_Getter_(unwrap_ jso(this));
285 224
286 @DomName('SQLResultSet.rows') 225 @DomName('SQLResultSet.rows')
287 @DocsEditable() 226 @DocsEditable()
288 SqlResultSetRowList get rows => wrap_jso(_blink.BlinkSQLResultSet.instance.row s_Getter_(unwrap_jso(this))); 227 SqlResultSetRowList get rows => wrap_jso(_blink.BlinkSQLResultSet.instance.row s_Getter_(unwrap_jso(this)));
289 228
290 @DomName('SQLResultSet.rowsAffected') 229 @DomName('SQLResultSet.rowsAffected')
291 @DocsEditable() 230 @DocsEditable()
292 int get rowsAffected => _blink.BlinkSQLResultSet.instance.rowsAffected_Getter_ (unwrap_jso(this)); 231 int get rowsAffected => _blink.BlinkSQLResultSet.instance.rowsAffected_Getter_ (unwrap_jso(this));
293 232
294 } 233 }
295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
296 // for details. All rights reserved. Use of this source code is governed by a 235 // for details. All rights reserved. Use of this source code is governed by a
297 // BSD-style license that can be found in the LICENSE file. 236 // BSD-style license that can be found in the LICENSE file.
298 237
299 // WARNING: Do not edit - generated code. 238 // WARNING: Do not edit - generated code.
300 239
301 240
302 @DocsEditable() 241 @DocsEditable()
303 @DomName('SQLResultSetRowList') 242 @DomName('SQLResultSetRowList')
304 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist 243 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
305 @Experimental() // deprecated 244 @Experimental() // deprecated
306 class SqlResultSetRowList extends JsoNativeFieldWrapper with ListMixin<Map>, Imm utableListMixin<Map> implements List<Map> { 245 class SqlResultSetRowList extends NativeFieldWrapperClass2 with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> {
307 // To suppress missing implicit constructor warnings. 246 // To suppress missing implicit constructor warnings.
308 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); } 247 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
309 248
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
325 @DomName('SQLResultSetRowList.length') 249 @DomName('SQLResultSetRowList.length')
326 @DocsEditable() 250 @DocsEditable()
327 int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(unwr ap_jso(this)); 251 int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(unwr ap_jso(this));
328 252
329 Map operator[](int index) { 253 Map operator[](int index) {
330 if (index < 0 || index >= length) 254 if (index < 0 || index >= length)
331 throw new RangeError.index(index, this); 255 throw new RangeError.index(index, this);
332 return wrap_jso(_blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(un wrap_jso(this), index)); 256 return _blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(unwrap_jso( this), index);
333 } 257 }
334 258
335 Map _nativeIndexedGetter(int index) => wrap_jso(_blink.BlinkSQLResultSetRowLis t.instance.item_Callback_1_(unwrap_jso(this), index)); 259 Map _nativeIndexedGetter(int index) => _blink.BlinkSQLResultSetRowList.instanc e.item_Callback_1_(unwrap_jso(this), index);
336 260
337 void operator[]=(int index, Map value) { 261 void operator[]=(int index, Map value) {
338 throw new UnsupportedError("Cannot assign element of immutable List."); 262 throw new UnsupportedError("Cannot assign element of immutable List.");
339 } 263 }
340 // -- start List<Map> mixins. 264 // -- start List<Map> mixins.
341 // Map is the element type. 265 // Map is the element type.
342 266
343 267
344 set length(int value) { 268 void set length(int value) {
345 throw new UnsupportedError("Cannot resize immutable List."); 269 throw new UnsupportedError("Cannot resize immutable List.");
346 } 270 }
347 271
348 Map get first { 272 Map get first {
349 if (this.length > 0) { 273 if (this.length > 0) {
350 return _nativeIndexedGetter(0); 274 return _nativeIndexedGetter(0);
351 } 275 }
352 throw new StateError("No elements"); 276 throw new StateError("No elements");
353 } 277 }
354 278
(...skipping 12 matching lines...) Expand all
367 } 291 }
368 if (len == 0) throw new StateError("No elements"); 292 if (len == 0) throw new StateError("No elements");
369 throw new StateError("More than one element"); 293 throw new StateError("More than one element");
370 } 294 }
371 295
372 Map elementAt(int index) => this[index]; 296 Map elementAt(int index) => this[index];
373 // -- end List<Map> mixins. 297 // -- end List<Map> mixins.
374 298
375 @DomName('SQLResultSetRowList.item') 299 @DomName('SQLResultSetRowList.item')
376 @DocsEditable() 300 @DocsEditable()
377 Map item(int index) => wrap_jso(_blink.BlinkSQLResultSetRowList.instance.item_ Callback_1_(unwrap_jso(this), index)); 301 Map item(int index) => _blink.BlinkSQLResultSetRowList.instance.item_Callback_ 1_(unwrap_jso(this), index);
378 302
379 } 303 }
380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 304 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
381 // for details. All rights reserved. Use of this source code is governed by a 305 // for details. All rights reserved. Use of this source code is governed by a
382 // BSD-style license that can be found in the LICENSE file. 306 // BSD-style license that can be found in the LICENSE file.
383 307
384 // WARNING: Do not edit - generated code. 308 // WARNING: Do not edit - generated code.
385 309
386 310
387 @DocsEditable() 311 @DocsEditable()
388 @DomName('SQLTransaction') 312 @DomName('SQLTransaction')
389 @SupportedBrowser(SupportedBrowser.CHROME) 313 @SupportedBrowser(SupportedBrowser.CHROME)
390 @SupportedBrowser(SupportedBrowser.SAFARI) 314 @SupportedBrowser(SupportedBrowser.SAFARI)
391 @Experimental() 315 @Experimental()
392 // http://www.w3.org/TR/webdatabase/#sqltransaction 316 // http://www.w3.org/TR/webdatabase/#sqltransaction
393 @deprecated // deprecated 317 @deprecated // deprecated
394 class SqlTransaction extends NativeFieldWrapperClass2 { 318 class SqlTransaction extends NativeFieldWrapperClass2 {
395 // To suppress missing implicit constructor warnings. 319 // To suppress missing implicit constructor warnings.
396 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } 320 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
397 321
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
413 @DomName('SQLTransaction.executeSql') 322 @DomName('SQLTransaction.executeSql')
414 @DocsEditable() 323 @DocsEditable()
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)))); 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));
416 325
417 } 326 }
OLDNEW
« no previous file with comments | « sdk/lib/web_sql/dart2js/web_sql_dart2js.dart ('k') | tests/co19/co19-analyzer.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698