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

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

Issue 12383073: Add List.insert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use insertBefore and add is-check. Created 7 years, 9 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 if (length == 0) throw new StateError("No elements"); 376 if (length == 0) throw new StateError("No elements");
377 throw new StateError("More than one element"); 377 throw new StateError("More than one element");
378 } 378 }
379 379
380 Map min([int compare(Map a, Map b)]) => 380 Map min([int compare(Map a, Map b)]) =>
381 IterableMixinWorkaround.min(this, compare); 381 IterableMixinWorkaround.min(this, compare);
382 382
383 Map max([int compare(Map a, Map b)]) => 383 Map max([int compare(Map a, Map b)]) =>
384 IterableMixinWorkaround.max(this, compare); 384 IterableMixinWorkaround.max(this, compare);
385 385
386 void insert(int index, Map element) {
387 throw new UnsupportedError("Cannot add to immutable List.");
388 }
389
386 Map removeAt(int pos) { 390 Map removeAt(int pos) {
387 throw new UnsupportedError("Cannot remove from immutable List."); 391 throw new UnsupportedError("Cannot remove from immutable List.");
388 } 392 }
389 393
390 Map removeLast() { 394 Map removeLast() {
391 throw new UnsupportedError("Cannot remove from immutable List."); 395 throw new UnsupportedError("Cannot remove from immutable List.");
392 } 396 }
393 397
394 void remove(Object object) { 398 void remove(Object object) {
395 throw new UnsupportedError("Cannot remove from immutable List."); 399 throw new UnsupportedError("Cannot remove from immutable List.");
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 @DomName('SQLTransactionSync') 472 @DomName('SQLTransactionSync')
469 @SupportedBrowser(SupportedBrowser.CHROME) 473 @SupportedBrowser(SupportedBrowser.CHROME)
470 @SupportedBrowser(SupportedBrowser.SAFARI) 474 @SupportedBrowser(SupportedBrowser.SAFARI)
471 @Experimental 475 @Experimental
472 class SqlTransactionSync native "*SQLTransactionSync" { 476 class SqlTransactionSync native "*SQLTransactionSync" {
473 477
474 @DomName('SQLTransactionSync.executeSql') 478 @DomName('SQLTransactionSync.executeSql')
475 @DocsEditable 479 @DocsEditable
476 SqlResultSet executeSql(String sqlStatement, List arguments) native; 480 SqlResultSet executeSql(String sqlStatement, List arguments) native;
477 } 481 }
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