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

Side by Side Diff: sdk/lib/web_sql/dart2js/web_sql_dart2js.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/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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 if (end == null) end = length; 431 if (end == null) end = length;
432 return Lists.getRange(this, start, end, <Map>[]); 432 return Lists.getRange(this, start, end, <Map>[]);
433 } 433 }
434 434
435 List<Map> getRange(int start, int rangeLength) => 435 List<Map> getRange(int start, int rangeLength) =>
436 sublist(start, start + rangeLength); 436 sublist(start, start + rangeLength);
437 437
438 Map<int, Map> asMap() => 438 Map<int, Map> asMap() =>
439 IterableMixinWorkaround.asMapList(this); 439 IterableMixinWorkaround.asMapList(this);
440 440
441 String toString() {
442 StringBuffer buffer = new StringBuffer('[');
443 buffer.writeAll(this, ', ');
444 buffer.write(']');
445 return buffer.toString();
446 }
447
441 // -- end List<Map> mixins. 448 // -- end List<Map> mixins.
442 449
443 @DomName('SQLResultSetRowList.item') 450 @DomName('SQLResultSetRowList.item')
444 @DocsEditable 451 @DocsEditable
445 @Creates('=Object') 452 @Creates('=Object')
446 Map item(int index) { 453 Map item(int index) {
447 return convertNativeToDart_Dictionary(_item_1(index)); 454 return convertNativeToDart_Dictionary(_item_1(index));
448 } 455 }
449 @JSName('item') 456 @JSName('item')
450 @DomName('SQLResultSetRowList.item') 457 @DomName('SQLResultSetRowList.item')
(...skipping 26 matching lines...) Expand all
477 @DomName('SQLTransactionSync') 484 @DomName('SQLTransactionSync')
478 @SupportedBrowser(SupportedBrowser.CHROME) 485 @SupportedBrowser(SupportedBrowser.CHROME)
479 @SupportedBrowser(SupportedBrowser.SAFARI) 486 @SupportedBrowser(SupportedBrowser.SAFARI)
480 @Experimental 487 @Experimental
481 class SqlTransactionSync native "*SQLTransactionSync" { 488 class SqlTransactionSync native "*SQLTransactionSync" {
482 489
483 @DomName('SQLTransactionSync.executeSql') 490 @DomName('SQLTransactionSync.executeSql')
484 @DocsEditable 491 @DocsEditable
485 SqlResultSet executeSql(String sqlStatement, List arguments) native; 492 SqlResultSet executeSql(String sqlStatement, List arguments) native;
486 } 493 }
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