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 */ |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 class SqlResultSetRowList extends NativeFieldWrapperClass2 with ListMixin<Map>,
ImmutableListMixin<Map> implements List<Map> { | 245 class SqlResultSetRowList extends NativeFieldWrapperClass2 with ListMixin<Map>,
ImmutableListMixin<Map> implements List<Map> { |
246 // To suppress missing implicit constructor warnings. | 246 // To suppress missing implicit constructor warnings. |
247 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported");
} | 247 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported");
} |
248 | 248 |
249 @DomName('SQLResultSetRowList.length') | 249 @DomName('SQLResultSetRowList.length') |
250 @DocsEditable() | 250 @DocsEditable() |
251 int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(this
); | 251 int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(this
); |
252 | 252 |
253 Map operator[](int index) { | 253 Map operator[](int index) { |
254 if (index < 0 || index >= length) | 254 if (index < 0 || index >= length) |
255 throw new RangeError.range(index, 0, length); | 255 throw new RangeError.index(index, this); |
256 return _blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(this, index
); | 256 return _blink.BlinkSQLResultSetRowList.instance.item_Callback_1_(this, index
); |
257 } | 257 } |
258 | 258 |
259 Map _nativeIndexedGetter(int index) => _blink.BlinkSQLResultSetRowList.instanc
e.item_Callback_1_(this, index); | 259 Map _nativeIndexedGetter(int index) => _blink.BlinkSQLResultSetRowList.instanc
e.item_Callback_1_(this, index); |
260 | 260 |
261 void operator[]=(int index, Map value) { | 261 void operator[]=(int index, Map value) { |
262 throw new UnsupportedError("Cannot assign element of immutable List."); | 262 throw new UnsupportedError("Cannot assign element of immutable List."); |
263 } | 263 } |
264 // -- start List<Map> mixins. | 264 // -- start List<Map> mixins. |
265 // Map is the element type. | 265 // Map is the element type. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 @SupportedBrowser(SupportedBrowser.CHROME) | 336 @SupportedBrowser(SupportedBrowser.CHROME) |
337 @SupportedBrowser(SupportedBrowser.SAFARI) | 337 @SupportedBrowser(SupportedBrowser.SAFARI) |
338 @Experimental() | 338 @Experimental() |
339 // http://www.w3.org/TR/webdatabase/#sqltransactionsync | 339 // http://www.w3.org/TR/webdatabase/#sqltransactionsync |
340 @Experimental() // deprecated | 340 @Experimental() // deprecated |
341 abstract class _SQLTransactionSync extends NativeFieldWrapperClass2 { | 341 abstract class _SQLTransactionSync extends NativeFieldWrapperClass2 { |
342 // To suppress missing implicit constructor warnings. | 342 // To suppress missing implicit constructor warnings. |
343 factory _SQLTransactionSync._() { throw new UnsupportedError("Not supported");
} | 343 factory _SQLTransactionSync._() { throw new UnsupportedError("Not supported");
} |
344 | 344 |
345 } | 345 } |
OLD | NEW |