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: Rebuild DOM (unrelated CL) and update status files. 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
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_sql/dartium/web_sql_dartium.dart » ('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 */
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 360 }
361 361
362 void retainWhere(bool test(Map element)) { 362 void retainWhere(bool test(Map element)) {
363 throw new UnsupportedError("Cannot remove from immutable List."); 363 throw new UnsupportedError("Cannot remove from immutable List.");
364 } 364 }
365 365
366 void setRange(int start, int end, Iterable<Map> iterable, [int skipCount]) { 366 void setRange(int start, int end, Iterable<Map> iterable, [int skipCount]) {
367 throw new UnsupportedError("Cannot setRange on immutable List."); 367 throw new UnsupportedError("Cannot setRange on immutable List.");
368 } 368 }
369 369
370 void removeRange(int start, int rangeLength) { 370 void removeRange(int start, int end) {
371 throw new UnsupportedError("Cannot removeRange on immutable List."); 371 throw new UnsupportedError("Cannot removeRange on immutable List.");
372 } 372 }
373 373
374 void insertRange(int start, int rangeLength, [Map initialValue]) {
375 throw new UnsupportedError("Cannot insertRange on immutable List.");
376 }
377
378 Iterable<Map> getRange(int start, int end) => 374 Iterable<Map> getRange(int start, int end) =>
379 IterableMixinWorkaround.getRangeList(this, start, end); 375 IterableMixinWorkaround.getRangeList(this, start, end);
380 376
381 List<Map> sublist(int start, [int end]) { 377 List<Map> sublist(int start, [int end]) {
382 if (end == null) end = length; 378 if (end == null) end = length;
383 return Lists.getRange(this, start, end, <Map>[]); 379 return Lists.getRange(this, start, end, <Map>[]);
384 } 380 }
385 381
386 Map<int, Map> asMap() => 382 Map<int, Map> asMap() =>
387 IterableMixinWorkaround.asMapList(this); 383 IterableMixinWorkaround.asMapList(this);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 // BSD-style license that can be found in the LICENSE file. 436 // BSD-style license that can be found in the LICENSE file.
441 437
442 438
443 @DocsEditable 439 @DocsEditable
444 @DomName('SQLTransactionSync') 440 @DomName('SQLTransactionSync')
445 @SupportedBrowser(SupportedBrowser.CHROME) 441 @SupportedBrowser(SupportedBrowser.CHROME)
446 @SupportedBrowser(SupportedBrowser.SAFARI) 442 @SupportedBrowser(SupportedBrowser.SAFARI)
447 @Experimental 443 @Experimental
448 abstract class _SQLTransactionSync native "*SQLTransactionSync" { 444 abstract class _SQLTransactionSync native "*SQLTransactionSync" {
449 } 445 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_sql/dartium/web_sql_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698