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

Side by Side Diff: sdk/lib/web_sql/dartium/web_sql_dartium.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/web_sql/dart2js/web_sql_dart2js.dart ('k') | tests/corelib/list_insert_test.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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 if (length == 0) throw new StateError("No elements"); 398 if (length == 0) throw new StateError("No elements");
399 throw new StateError("More than one element"); 399 throw new StateError("More than one element");
400 } 400 }
401 401
402 Map min([int compare(Map a, Map b)]) => 402 Map min([int compare(Map a, Map b)]) =>
403 IterableMixinWorkaround.min(this, compare); 403 IterableMixinWorkaround.min(this, compare);
404 404
405 Map max([int compare(Map a, Map b)]) => 405 Map max([int compare(Map a, Map b)]) =>
406 IterableMixinWorkaround.max(this, compare); 406 IterableMixinWorkaround.max(this, compare);
407 407
408 void insert(int index, Map element) {
409 throw new UnsupportedError("Cannot add to immutable List.");
410 }
411
408 Map removeAt(int pos) { 412 Map removeAt(int pos) {
409 throw new UnsupportedError("Cannot remove from immutable List."); 413 throw new UnsupportedError("Cannot remove from immutable List.");
410 } 414 }
411 415
412 Map removeLast() { 416 Map removeLast() {
413 throw new UnsupportedError("Cannot remove from immutable List."); 417 throw new UnsupportedError("Cannot remove from immutable List.");
414 } 418 }
415 419
416 void remove(Object object) { 420 void remove(Object object) {
417 throw new UnsupportedError("Cannot remove from immutable List."); 421 throw new UnsupportedError("Cannot remove from immutable List.");
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 @SupportedBrowser(SupportedBrowser.SAFARI) 495 @SupportedBrowser(SupportedBrowser.SAFARI)
492 @Experimental 496 @Experimental
493 class SqlTransactionSync extends NativeFieldWrapperClass1 { 497 class SqlTransactionSync extends NativeFieldWrapperClass1 {
494 SqlTransactionSync.internal(); 498 SqlTransactionSync.internal();
495 499
496 @DomName('SQLTransactionSync.executeSql') 500 @DomName('SQLTransactionSync.executeSql')
497 @DocsEditable 501 @DocsEditable
498 SqlResultSet executeSql(String sqlStatement, List arguments) native "SQLTransa ctionSync_executeSql_Callback"; 502 SqlResultSet executeSql(String sqlStatement, List arguments) native "SQLTransa ctionSync_executeSql_Callback";
499 503
500 } 504 }
OLDNEW
« no previous file with comments | « sdk/lib/web_sql/dart2js/web_sql_dart2js.dart ('k') | tests/corelib/list_insert_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698