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

Side by Side Diff: sdk/lib/web_sql/dart2js/web_sql_dart2js.dart

Issue 13956006: Remove insertRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Replace type with var.wq Created 7 years, 8 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 | Annotate | Revision Log
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 */
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 } 363 }
364 364
365 void setRange(int start, int end, Iterable<Map> iterable, [int skipCount]) { 365 void setRange(int start, int end, Iterable<Map> iterable, [int skipCount]) {
366 throw new UnsupportedError("Cannot setRange on immutable List."); 366 throw new UnsupportedError("Cannot setRange on immutable List.");
367 } 367 }
368 368
369 void removeRange(int start, int end) { 369 void removeRange(int start, int end) {
370 throw new UnsupportedError("Cannot removeRange on immutable List."); 370 throw new UnsupportedError("Cannot removeRange on immutable List.");
371 } 371 }
372 372
373 void insertRange(int start, int rangeLength, [Map initialValue]) {
374 throw new UnsupportedError("Cannot insertRange on immutable List.");
375 }
376
377 Iterable<Map> getRange(int start, int end) => 373 Iterable<Map> getRange(int start, int end) =>
378 IterableMixinWorkaround.getRangeList(this, start, end); 374 IterableMixinWorkaround.getRangeList(this, start, end);
379 375
380 List<Map> sublist(int start, [int end]) { 376 List<Map> sublist(int start, [int end]) {
381 if (end == null) end = length; 377 if (end == null) end = length;
382 return Lists.getRange(this, start, end, <Map>[]); 378 return Lists.getRange(this, start, end, <Map>[]);
383 } 379 }
384 380
385 Map<int, Map> asMap() => 381 Map<int, Map> asMap() =>
386 IterableMixinWorkaround.asMapList(this); 382 IterableMixinWorkaround.asMapList(this);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 // BSD-style license that can be found in the LICENSE file. 435 // BSD-style license that can be found in the LICENSE file.
440 436
441 437
442 @DocsEditable 438 @DocsEditable
443 @DomName('SQLTransactionSync') 439 @DomName('SQLTransactionSync')
444 @SupportedBrowser(SupportedBrowser.CHROME) 440 @SupportedBrowser(SupportedBrowser.CHROME)
445 @SupportedBrowser(SupportedBrowser.SAFARI) 441 @SupportedBrowser(SupportedBrowser.SAFARI)
446 @Experimental 442 @Experimental
447 abstract class _SQLTransactionSync native "*SQLTransactionSync" { 443 abstract class _SQLTransactionSync native "*SQLTransactionSync" {
448 } 444 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698