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

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

Issue 13704017: Make html lists print a nice toString method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/html/element_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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 if (end == null) end = length; 453 if (end == null) end = length;
454 return Lists.getRange(this, start, end, <Map>[]); 454 return Lists.getRange(this, start, end, <Map>[]);
455 } 455 }
456 456
457 List<Map> getRange(int start, int rangeLength) => 457 List<Map> getRange(int start, int rangeLength) =>
458 sublist(start, start + rangeLength); 458 sublist(start, start + rangeLength);
459 459
460 Map<int, Map> asMap() => 460 Map<int, Map> asMap() =>
461 IterableMixinWorkaround.asMapList(this); 461 IterableMixinWorkaround.asMapList(this);
462 462
463 String toString() {
464 StringBuffer buffer = new StringBuffer('[');
465 buffer.writeAll(this, ', ');
466 buffer.write(']');
467 return buffer.toString();
468 }
469
463 // -- end List<Map> mixins. 470 // -- end List<Map> mixins.
464 471
465 @DomName('SQLResultSetRowList.item') 472 @DomName('SQLResultSetRowList.item')
466 @DocsEditable 473 @DocsEditable
467 Map item(int index) native "SQLResultSetRowList_item_Callback"; 474 Map item(int index) native "SQLResultSetRowList_item_Callback";
468 475
469 } 476 }
470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
471 // for details. All rights reserved. Use of this source code is governed by a 478 // for details. All rights reserved. Use of this source code is governed by a
472 // BSD-style license that can be found in the LICENSE file. 479 // BSD-style license that can be found in the LICENSE file.
(...skipping 27 matching lines...) Expand all
500 @SupportedBrowser(SupportedBrowser.SAFARI) 507 @SupportedBrowser(SupportedBrowser.SAFARI)
501 @Experimental 508 @Experimental
502 class SqlTransactionSync extends NativeFieldWrapperClass1 { 509 class SqlTransactionSync extends NativeFieldWrapperClass1 {
503 SqlTransactionSync.internal(); 510 SqlTransactionSync.internal();
504 511
505 @DomName('SQLTransactionSync.executeSql') 512 @DomName('SQLTransactionSync.executeSql')
506 @DocsEditable 513 @DocsEditable
507 SqlResultSet executeSql(String sqlStatement, List arguments) native "SQLTransa ctionSync_executeSql_Callback"; 514 SqlResultSet executeSql(String sqlStatement, List arguments) native "SQLTransa ctionSync_executeSql_Callback";
508 515
509 } 516 }
OLDNEW
« no previous file with comments | « sdk/lib/web_sql/dart2js/web_sql_dart2js.dart ('k') | tests/html/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698