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

Side by Side Diff: sdk/lib/web_sql/dart2js/web_sql_dart2js.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/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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 Iterable<Map> where(bool f(Map element)) => 280 Iterable<Map> where(bool f(Map element)) =>
281 IterableMixinWorkaround.where(this, f); 281 IterableMixinWorkaround.where(this, f);
282 282
283 Iterable expand(Iterable f(Map element)) => 283 Iterable expand(Iterable f(Map element)) =>
284 IterableMixinWorkaround.expand(this, f); 284 IterableMixinWorkaround.expand(this, f);
285 285
286 bool every(bool f(Map element)) => IterableMixinWorkaround.every(this, f); 286 bool every(bool f(Map element)) => IterableMixinWorkaround.every(this, f);
287 287
288 bool any(bool f(Map element)) => IterableMixinWorkaround.any(this, f); 288 bool any(bool f(Map element)) => IterableMixinWorkaround.any(this, f);
289 289
290 List<Map> toList({ bool growable: false }) => 290 List<Map> toList({ bool growable: true }) =>
291 new List<Map>.from(this, growable: growable); 291 new List<Map>.from(this, growable: growable);
292 292
293 Set<Map> toSet() => new Set<Map>.from(this); 293 Set<Map> toSet() => new Set<Map>.from(this);
294 294
295 bool get isEmpty => this.length == 0; 295 bool get isEmpty => this.length == 0;
296 296
297 Iterable<Map> take(int n) => IterableMixinWorkaround.takeList(this, n); 297 Iterable<Map> take(int n) => IterableMixinWorkaround.takeList(this, n);
298 298
299 Iterable<Map> takeWhile(bool test(Map value)) { 299 Iterable<Map> takeWhile(bool test(Map value)) {
300 return IterableMixinWorkaround.takeWhile(this, test); 300 return IterableMixinWorkaround.takeWhile(this, test);
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 @DomName('SQLTransactionSync') 465 @DomName('SQLTransactionSync')
466 @SupportedBrowser(SupportedBrowser.CHROME) 466 @SupportedBrowser(SupportedBrowser.CHROME)
467 @SupportedBrowser(SupportedBrowser.SAFARI) 467 @SupportedBrowser(SupportedBrowser.SAFARI)
468 @Experimental 468 @Experimental
469 class SqlTransactionSync native "*SQLTransactionSync" { 469 class SqlTransactionSync native "*SQLTransactionSync" {
470 470
471 @DomName('SQLTransactionSync.executeSql') 471 @DomName('SQLTransactionSync.executeSql')
472 @DocsEditable 472 @DocsEditable
473 SqlResultSet executeSql(String sqlStatement, List arguments) native; 473 SqlResultSet executeSql(String sqlStatement, List arguments) native;
474 } 474 }
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