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

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

Issue 12328104: Change new List(n) to return fixed length list. (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
OLDNEW
1 library dart.dom.web_sql; 1 library dart.dom.web_sql;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:html_common'; 6 import 'dart:html_common';
7 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin gBehavior, JSName; 7 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JavaScriptIndexin gBehavior, JSName;
8 import 'dart:_foreign_helper' show JS; 8 import 'dart:_foreign_helper' show JS;
9 // DO NOT EDIT - unless you are editing documentation as per: 9 // DO NOT EDIT - unless you are editing documentation as per:
10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 Iterable<Map> where(bool f(Map element)) => 258 Iterable<Map> where(bool f(Map element)) =>
259 IterableMixinWorkaround.where(this, f); 259 IterableMixinWorkaround.where(this, f);
260 260
261 Iterable expand(Iterable f(Map element)) => 261 Iterable expand(Iterable f(Map element)) =>
262 IterableMixinWorkaround.expand(this, f); 262 IterableMixinWorkaround.expand(this, f);
263 263
264 bool every(bool f(Map element)) => IterableMixinWorkaround.every(this, f); 264 bool every(bool f(Map element)) => IterableMixinWorkaround.every(this, f);
265 265
266 bool any(bool f(Map element)) => IterableMixinWorkaround.any(this, f); 266 bool any(bool f(Map element)) => IterableMixinWorkaround.any(this, f);
267 267
268 List<Map> toList() => new List<Map>.from(this); 268 List<Map> toList({ bool growable: false }) =>
269 new List<Map>.from(this, growable: growable);
floitsch 2013/02/26 13:54:19 IterableMixinWorkaround.toListList(this, growable)
270
269 Set<Map> toSet() => new Set<Map>.from(this); 271 Set<Map> toSet() => new Set<Map>.from(this);
270 272
271 bool get isEmpty => this.length == 0; 273 bool get isEmpty => this.length == 0;
272 274
273 Iterable<Map> take(int n) => IterableMixinWorkaround.takeList(this, n); 275 Iterable<Map> take(int n) => IterableMixinWorkaround.takeList(this, n);
274 276
275 Iterable<Map> takeWhile(bool test(Map value)) { 277 Iterable<Map> takeWhile(bool test(Map value)) {
276 return IterableMixinWorkaround.takeWhile(this, test); 278 return IterableMixinWorkaround.takeWhile(this, test);
277 } 279 }
278 280
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 @DomName('SQLTransactionSync') 443 @DomName('SQLTransactionSync')
442 @SupportedBrowser(SupportedBrowser.CHROME) 444 @SupportedBrowser(SupportedBrowser.CHROME)
443 @SupportedBrowser(SupportedBrowser.SAFARI) 445 @SupportedBrowser(SupportedBrowser.SAFARI)
444 @Experimental 446 @Experimental
445 class SqlTransactionSync native "*SQLTransactionSync" { 447 class SqlTransactionSync native "*SQLTransactionSync" {
446 448
447 @DomName('SQLTransactionSync.executeSql') 449 @DomName('SQLTransactionSync.executeSql')
448 @DocsEditable 450 @DocsEditable
449 SqlResultSet executeSql(String sqlStatement, List arguments) native; 451 SqlResultSet executeSql(String sqlStatement, List arguments) native;
450 } 452 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698