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

Side by Side Diff: sdk/lib/web_sql/dartium/web_sql_dartium.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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 } 381 }
382 382
383 void setRange(int start, int end, Iterable<Map> iterable, [int skipCount]) { 383 void setRange(int start, int end, Iterable<Map> iterable, [int skipCount]) {
384 throw new UnsupportedError("Cannot setRange on immutable List."); 384 throw new UnsupportedError("Cannot setRange on immutable List.");
385 } 385 }
386 386
387 void removeRange(int start, int end) { 387 void removeRange(int start, int end) {
388 throw new UnsupportedError("Cannot removeRange on immutable List."); 388 throw new UnsupportedError("Cannot removeRange on immutable List.");
389 } 389 }
390 390
391 void insertRange(int start, int rangeLength, [Map initialValue]) {
392 throw new UnsupportedError("Cannot insertRange on immutable List.");
393 }
394
395 Iterable<Map> getRange(int start, int end) => 391 Iterable<Map> getRange(int start, int end) =>
396 IterableMixinWorkaround.getRangeList(this, start, end); 392 IterableMixinWorkaround.getRangeList(this, start, end);
397 393
398 List<Map> sublist(int start, [int end]) { 394 List<Map> sublist(int start, [int end]) {
399 if (end == null) end = length; 395 if (end == null) end = length;
400 return Lists.getRange(this, start, end, <Map>[]); 396 return Lists.getRange(this, start, end, <Map>[]);
401 } 397 }
402 398
403 Map<int, Map> asMap() => 399 Map<int, Map> asMap() =>
404 IterableMixinWorkaround.asMapList(this); 400 IterableMixinWorkaround.asMapList(this);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 458
463 @DocsEditable 459 @DocsEditable
464 @DomName('SQLTransactionSync') 460 @DomName('SQLTransactionSync')
465 @SupportedBrowser(SupportedBrowser.CHROME) 461 @SupportedBrowser(SupportedBrowser.CHROME)
466 @SupportedBrowser(SupportedBrowser.SAFARI) 462 @SupportedBrowser(SupportedBrowser.SAFARI)
467 @Experimental 463 @Experimental
468 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { 464 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 {
469 _SQLTransactionSync.internal(); 465 _SQLTransactionSync.internal();
470 466
471 } 467 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698