| OLD | NEW |
| 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:_collection-dev' hide deprecated; | 15 import 'dart:_collection-dev' hide deprecated; |
| 16 import 'dart:html'; | 16 import 'dart:html'; |
| 17 import 'dart:html_common'; | 17 import 'dart:html_common'; |
| 18 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin
gBehavior, JSName; | 18 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JSName; |
| 19 import 'dart:_foreign_helper' show JS; | 19 import 'dart:_foreign_helper' show JS; |
| 20 import 'dart:_interceptors' show Interceptor; | 20 import 'dart:_interceptors' show Interceptor; |
| 21 // DO NOT EDIT - unless you are editing documentation as per: | 21 // DO NOT EDIT - unless you are editing documentation as per: |
| 22 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation | 22 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
| 23 // Auto-generated dart:audio library. | 23 // Auto-generated dart:audio library. |
| 24 | 24 |
| 25 | 25 |
| 26 | 26 |
| 27 | 27 |
| 28 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 28 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 } | 190 } |
| 191 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 191 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 192 // for details. All rights reserved. Use of this source code is governed by a | 192 // for details. All rights reserved. Use of this source code is governed by a |
| 193 // BSD-style license that can be found in the LICENSE file. | 193 // BSD-style license that can be found in the LICENSE file. |
| 194 | 194 |
| 195 | 195 |
| 196 @DocsEditable() | 196 @DocsEditable() |
| 197 @DomName('SQLResultSetRowList') | 197 @DomName('SQLResultSetRowList') |
| 198 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist | 198 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist |
| 199 @Experimental() // deprecated | 199 @Experimental() // deprecated |
| 200 class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList
Mixin<Map> implements JavaScriptIndexingBehavior, List<Map> native "SQLResultSet
RowList" { | 200 class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList
Mixin<Map> implements List<Map> native "SQLResultSetRowList" { |
| 201 | 201 |
| 202 @DomName('SQLResultSetRowList.length') | 202 @DomName('SQLResultSetRowList.length') |
| 203 @DocsEditable() | 203 @DocsEditable() |
| 204 int get length => JS("int", "#.length", this); | 204 int get length => JS("int", "#.length", this); |
| 205 | 205 |
| 206 Map operator[](int index) { | 206 Map operator[](int index) { |
| 207 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 207 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 208 index, index, length)) | 208 index, index, length)) |
| 209 throw new RangeError.range(index, 0, length); | 209 throw new RangeError.range(index, 0, length); |
| 210 return this.item(index); | 210 return this.item(index); |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 284 |
| 285 @DocsEditable() | 285 @DocsEditable() |
| 286 @DomName('SQLTransactionSync') | 286 @DomName('SQLTransactionSync') |
| 287 @SupportedBrowser(SupportedBrowser.CHROME) | 287 @SupportedBrowser(SupportedBrowser.CHROME) |
| 288 @SupportedBrowser(SupportedBrowser.SAFARI) | 288 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 289 @Experimental() | 289 @Experimental() |
| 290 // http://www.w3.org/TR/webdatabase/#sqltransactionsync | 290 // http://www.w3.org/TR/webdatabase/#sqltransactionsync |
| 291 @Experimental() // deprecated | 291 @Experimental() // deprecated |
| 292 abstract class _SQLTransactionSync extends Interceptor native "SQLTransactionSyn
c" { | 292 abstract class _SQLTransactionSync extends Interceptor native "SQLTransactionSyn
c" { |
| 293 } | 293 } |
| OLD | NEW |