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

Side by Side Diff: sdk/lib/web_sql/dartium/web_sql_dartium.dart

Issue 12401002: Make List.from and Iterable.toList default to not growable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/co19/co19-runtime.status » ('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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 Iterable<Map> where(bool f(Map element)) => 302 Iterable<Map> where(bool f(Map element)) =>
303 IterableMixinWorkaround.where(this, f); 303 IterableMixinWorkaround.where(this, f);
304 304
305 Iterable expand(Iterable f(Map element)) => 305 Iterable expand(Iterable f(Map element)) =>
306 IterableMixinWorkaround.expand(this, f); 306 IterableMixinWorkaround.expand(this, f);
307 307
308 bool every(bool f(Map element)) => IterableMixinWorkaround.every(this, f); 308 bool every(bool f(Map element)) => IterableMixinWorkaround.every(this, f);
309 309
310 bool any(bool f(Map element)) => IterableMixinWorkaround.any(this, f); 310 bool any(bool f(Map element)) => IterableMixinWorkaround.any(this, f);
311 311
312 List<Map> toList({ bool growable: false }) => 312 List<Map> toList({ bool growable: true }) =>
313 new List<Map>.from(this, growable: growable); 313 new List<Map>.from(this, growable: growable);
314 314
315 Set<Map> toSet() => new Set<Map>.from(this); 315 Set<Map> toSet() => new Set<Map>.from(this);
316 316
317 bool get isEmpty => this.length == 0; 317 bool get isEmpty => this.length == 0;
318 318
319 Iterable<Map> take(int n) => IterableMixinWorkaround.takeList(this, n); 319 Iterable<Map> take(int n) => IterableMixinWorkaround.takeList(this, n);
320 320
321 Iterable<Map> takeWhile(bool test(Map value)) { 321 Iterable<Map> takeWhile(bool test(Map value)) {
322 return IterableMixinWorkaround.takeWhile(this, test); 322 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 @SupportedBrowser(SupportedBrowser.SAFARI) 488 @SupportedBrowser(SupportedBrowser.SAFARI)
489 @Experimental 489 @Experimental
490 class SqlTransactionSync extends NativeFieldWrapperClass1 { 490 class SqlTransactionSync extends NativeFieldWrapperClass1 {
491 SqlTransactionSync.internal(); 491 SqlTransactionSync.internal();
492 492
493 @DomName('SQLTransactionSync.executeSql') 493 @DomName('SQLTransactionSync.executeSql')
494 @DocsEditable 494 @DocsEditable
495 SqlResultSet executeSql(String sqlStatement, List arguments) native "SQLTransa ctionSync_executeSql_Callback"; 495 SqlResultSet executeSql(String sqlStatement, List arguments) native "SQLTransa ctionSync_executeSql_Callback";
496 496
497 } 497 }
OLDNEW
« no previous file with comments | « sdk/lib/web_sql/dart2js/web_sql_dart2js.dart ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698