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

Side by Side Diff: sdk/lib/svg/dartium/svg_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/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.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 library dart.dom.svg; 1 library dart.dom.svg;
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:nativewrappers'; 7 import 'dart:nativewrappers';
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated dart:svg library. 9 // Auto-generated dart:svg library.
10 10
(...skipping 3487 matching lines...) Expand 10 before | Expand all | Expand 10 after
3498 if (end == null) end = length; 3498 if (end == null) end = length;
3499 return Lists.getRange(this, start, end, <Length>[]); 3499 return Lists.getRange(this, start, end, <Length>[]);
3500 } 3500 }
3501 3501
3502 List<Length> getRange(int start, int rangeLength) => 3502 List<Length> getRange(int start, int rangeLength) =>
3503 sublist(start, start + rangeLength); 3503 sublist(start, start + rangeLength);
3504 3504
3505 Map<int, Length> asMap() => 3505 Map<int, Length> asMap() =>
3506 IterableMixinWorkaround.asMapList(this); 3506 IterableMixinWorkaround.asMapList(this);
3507 3507
3508 String toString() {
3509 StringBuffer buffer = new StringBuffer('[');
3510 buffer.writeAll(this, ', ');
3511 buffer.write(']');
3512 return buffer.toString();
3513 }
3514
3508 // -- end List<Length> mixins. 3515 // -- end List<Length> mixins.
3509 3516
3510 @DomName('SVGLengthList.appendItem') 3517 @DomName('SVGLengthList.appendItem')
3511 @DocsEditable 3518 @DocsEditable
3512 Length appendItem(Length item) native "SVGLengthList_appendItem_Callback"; 3519 Length appendItem(Length item) native "SVGLengthList_appendItem_Callback";
3513 3520
3514 @DomName('SVGLengthList.clear') 3521 @DomName('SVGLengthList.clear')
3515 @DocsEditable 3522 @DocsEditable
3516 void clear() native "SVGLengthList_clear_Callback"; 3523 void clear() native "SVGLengthList_clear_Callback";
3517 3524
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
4213 if (end == null) end = length; 4220 if (end == null) end = length;
4214 return Lists.getRange(this, start, end, <Number>[]); 4221 return Lists.getRange(this, start, end, <Number>[]);
4215 } 4222 }
4216 4223
4217 List<Number> getRange(int start, int rangeLength) => 4224 List<Number> getRange(int start, int rangeLength) =>
4218 sublist(start, start + rangeLength); 4225 sublist(start, start + rangeLength);
4219 4226
4220 Map<int, Number> asMap() => 4227 Map<int, Number> asMap() =>
4221 IterableMixinWorkaround.asMapList(this); 4228 IterableMixinWorkaround.asMapList(this);
4222 4229
4230 String toString() {
4231 StringBuffer buffer = new StringBuffer('[');
4232 buffer.writeAll(this, ', ');
4233 buffer.write(']');
4234 return buffer.toString();
4235 }
4236
4223 // -- end List<Number> mixins. 4237 // -- end List<Number> mixins.
4224 4238
4225 @DomName('SVGNumberList.appendItem') 4239 @DomName('SVGNumberList.appendItem')
4226 @DocsEditable 4240 @DocsEditable
4227 Number appendItem(Number item) native "SVGNumberList_appendItem_Callback"; 4241 Number appendItem(Number item) native "SVGNumberList_appendItem_Callback";
4228 4242
4229 @DomName('SVGNumberList.clear') 4243 @DomName('SVGNumberList.clear')
4230 @DocsEditable 4244 @DocsEditable
4231 void clear() native "SVGNumberList_clear_Callback"; 4245 void clear() native "SVGNumberList_clear_Callback";
4232 4246
(...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
5404 if (end == null) end = length; 5418 if (end == null) end = length;
5405 return Lists.getRange(this, start, end, <PathSeg>[]); 5419 return Lists.getRange(this, start, end, <PathSeg>[]);
5406 } 5420 }
5407 5421
5408 List<PathSeg> getRange(int start, int rangeLength) => 5422 List<PathSeg> getRange(int start, int rangeLength) =>
5409 sublist(start, start + rangeLength); 5423 sublist(start, start + rangeLength);
5410 5424
5411 Map<int, PathSeg> asMap() => 5425 Map<int, PathSeg> asMap() =>
5412 IterableMixinWorkaround.asMapList(this); 5426 IterableMixinWorkaround.asMapList(this);
5413 5427
5428 String toString() {
5429 StringBuffer buffer = new StringBuffer('[');
5430 buffer.writeAll(this, ', ');
5431 buffer.write(']');
5432 return buffer.toString();
5433 }
5434
5414 // -- end List<PathSeg> mixins. 5435 // -- end List<PathSeg> mixins.
5415 5436
5416 @DomName('SVGPathSegList.appendItem') 5437 @DomName('SVGPathSegList.appendItem')
5417 @DocsEditable 5438 @DocsEditable
5418 PathSeg appendItem(PathSeg newItem) native "SVGPathSegList_appendItem_Callback "; 5439 PathSeg appendItem(PathSeg newItem) native "SVGPathSegList_appendItem_Callback ";
5419 5440
5420 @DomName('SVGPathSegList.clear') 5441 @DomName('SVGPathSegList.clear')
5421 @DocsEditable 5442 @DocsEditable
5422 void clear() native "SVGPathSegList_clear_Callback"; 5443 void clear() native "SVGPathSegList_clear_Callback";
5423 5444
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
6400 if (end == null) end = length; 6421 if (end == null) end = length;
6401 return Lists.getRange(this, start, end, <String>[]); 6422 return Lists.getRange(this, start, end, <String>[]);
6402 } 6423 }
6403 6424
6404 List<String> getRange(int start, int rangeLength) => 6425 List<String> getRange(int start, int rangeLength) =>
6405 sublist(start, start + rangeLength); 6426 sublist(start, start + rangeLength);
6406 6427
6407 Map<int, String> asMap() => 6428 Map<int, String> asMap() =>
6408 IterableMixinWorkaround.asMapList(this); 6429 IterableMixinWorkaround.asMapList(this);
6409 6430
6431 String toString() {
6432 StringBuffer buffer = new StringBuffer('[');
6433 buffer.writeAll(this, ', ');
6434 buffer.write(']');
6435 return buffer.toString();
6436 }
6437
6410 // -- end List<String> mixins. 6438 // -- end List<String> mixins.
6411 6439
6412 @DomName('SVGStringList.appendItem') 6440 @DomName('SVGStringList.appendItem')
6413 @DocsEditable 6441 @DocsEditable
6414 String appendItem(String item) native "SVGStringList_appendItem_Callback"; 6442 String appendItem(String item) native "SVGStringList_appendItem_Callback";
6415 6443
6416 @DomName('SVGStringList.clear') 6444 @DomName('SVGStringList.clear')
6417 @DocsEditable 6445 @DocsEditable
6418 void clear() native "SVGStringList_clear_Callback"; 6446 void clear() native "SVGStringList_clear_Callback";
6419 6447
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
7665 if (end == null) end = length; 7693 if (end == null) end = length;
7666 return Lists.getRange(this, start, end, <Transform>[]); 7694 return Lists.getRange(this, start, end, <Transform>[]);
7667 } 7695 }
7668 7696
7669 List<Transform> getRange(int start, int rangeLength) => 7697 List<Transform> getRange(int start, int rangeLength) =>
7670 sublist(start, start + rangeLength); 7698 sublist(start, start + rangeLength);
7671 7699
7672 Map<int, Transform> asMap() => 7700 Map<int, Transform> asMap() =>
7673 IterableMixinWorkaround.asMapList(this); 7701 IterableMixinWorkaround.asMapList(this);
7674 7702
7703 String toString() {
7704 StringBuffer buffer = new StringBuffer('[');
7705 buffer.writeAll(this, ', ');
7706 buffer.write(']');
7707 return buffer.toString();
7708 }
7709
7675 // -- end List<Transform> mixins. 7710 // -- end List<Transform> mixins.
7676 7711
7677 @DomName('SVGTransformList.appendItem') 7712 @DomName('SVGTransformList.appendItem')
7678 @DocsEditable 7713 @DocsEditable
7679 Transform appendItem(Transform item) native "SVGTransformList_appendItem_Callb ack"; 7714 Transform appendItem(Transform item) native "SVGTransformList_appendItem_Callb ack";
7680 7715
7681 @DomName('SVGTransformList.clear') 7716 @DomName('SVGTransformList.clear')
7682 @DocsEditable 7717 @DocsEditable
7683 void clear() native "SVGTransformList_clear_Callback"; 7718 void clear() native "SVGTransformList_clear_Callback";
7684 7719
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
8252 if (end == null) end = length; 8287 if (end == null) end = length;
8253 return Lists.getRange(this, start, end, <ElementInstance>[]); 8288 return Lists.getRange(this, start, end, <ElementInstance>[]);
8254 } 8289 }
8255 8290
8256 List<ElementInstance> getRange(int start, int rangeLength) => 8291 List<ElementInstance> getRange(int start, int rangeLength) =>
8257 sublist(start, start + rangeLength); 8292 sublist(start, start + rangeLength);
8258 8293
8259 Map<int, ElementInstance> asMap() => 8294 Map<int, ElementInstance> asMap() =>
8260 IterableMixinWorkaround.asMapList(this); 8295 IterableMixinWorkaround.asMapList(this);
8261 8296
8297 String toString() {
8298 StringBuffer buffer = new StringBuffer('[');
8299 buffer.writeAll(this, ', ');
8300 buffer.write(']');
8301 return buffer.toString();
8302 }
8303
8262 // -- end List<ElementInstance> mixins. 8304 // -- end List<ElementInstance> mixins.
8263 8305
8264 @DomName('SVGElementInstanceList.item') 8306 @DomName('SVGElementInstanceList.item')
8265 @DocsEditable 8307 @DocsEditable
8266 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback"; 8308 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback";
8267 8309
8268 } 8310 }
8269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 8311 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
8270 // for details. All rights reserved. Use of this source code is governed by a 8312 // for details. All rights reserved. Use of this source code is governed by a
8271 // BSD-style license that can be found in the LICENSE file. 8313 // BSD-style license that can be found in the LICENSE file.
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
8754 @DocsEditable 8796 @DocsEditable
8755 @DomName('SVGVKernElement') 8797 @DomName('SVGVKernElement')
8756 class _SVGVKernElement extends SvgElement { 8798 class _SVGVKernElement extends SvgElement {
8757 _SVGVKernElement.internal() : super.internal(); 8799 _SVGVKernElement.internal() : super.internal();
8758 8800
8759 @DomName('SVGVKernElement.SVGVKernElement') 8801 @DomName('SVGVKernElement.SVGVKernElement')
8760 @DocsEditable 8802 @DocsEditable
8761 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 8803 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
8762 8804
8763 } 8805 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698