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

Side by Side Diff: sdk/lib/svg/dartium/svg_dartium.dart

Issue 11316113: Creating a common library for all DOM types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback. Created 8 years 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 svg; 1 library svg;
2 2
3 import 'dart:html'; 3 import 'dart:html';
4 import 'dart:nativewrappers'; 4 import 'dart:nativewrappers';
5 // DO NOT EDIT 5 // DO NOT EDIT
6 // Auto-generated dart:svg library. 6 // Auto-generated dart:svg library.
7 7
8 8
9 9
10 10
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 } 472 }
473 473
474 void addLast(AnimatedLength value) { 474 void addLast(AnimatedLength value) {
475 throw new UnsupportedError("Cannot add to immutable List."); 475 throw new UnsupportedError("Cannot add to immutable List.");
476 } 476 }
477 477
478 void addAll(Collection<AnimatedLength> collection) { 478 void addAll(Collection<AnimatedLength> collection) {
479 throw new UnsupportedError("Cannot add to immutable List."); 479 throw new UnsupportedError("Cannot add to immutable List.");
480 } 480 }
481 481
482 bool contains(AnimatedLength element) => _Collections.contains(this, element); 482 bool contains(AnimatedLength element) => Collections.contains(this, element);
483 483
484 void forEach(void f(AnimatedLength element)) => _Collections.forEach(this, f); 484 void forEach(void f(AnimatedLength element)) => Collections.forEach(this, f);
485 485
486 Collection map(f(AnimatedLength element)) => _Collections.map(this, [], f); 486 Collection map(f(AnimatedLength element)) => Collections.map(this, [], f);
487 487
488 Collection<AnimatedLength> filter(bool f(AnimatedLength element)) => 488 Collection<AnimatedLength> filter(bool f(AnimatedLength element)) =>
489 _Collections.filter(this, <AnimatedLength>[], f); 489 Collections.filter(this, <AnimatedLength>[], f);
490 490
491 bool every(bool f(AnimatedLength element)) => _Collections.every(this, f); 491 bool every(bool f(AnimatedLength element)) => Collections.every(this, f);
492 492
493 bool some(bool f(AnimatedLength element)) => _Collections.some(this, f); 493 bool some(bool f(AnimatedLength element)) => Collections.some(this, f);
494 494
495 bool get isEmpty => this.length == 0; 495 bool get isEmpty => this.length == 0;
496 496
497 // From List<AnimatedLength>: 497 // From List<AnimatedLength>:
498 498
499 void sort([Comparator<AnimatedLength> compare = Comparable.compare]) { 499 void sort([Comparator<AnimatedLength> compare = Comparable.compare]) {
500 throw new UnsupportedError("Cannot sort immutable List."); 500 throw new UnsupportedError("Cannot sort immutable List.");
501 } 501 }
502 502
503 int indexOf(AnimatedLength element, [int start = 0]) => 503 int indexOf(AnimatedLength element, [int start = 0]) =>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 } 601 }
602 602
603 void addLast(AnimatedNumber value) { 603 void addLast(AnimatedNumber value) {
604 throw new UnsupportedError("Cannot add to immutable List."); 604 throw new UnsupportedError("Cannot add to immutable List.");
605 } 605 }
606 606
607 void addAll(Collection<AnimatedNumber> collection) { 607 void addAll(Collection<AnimatedNumber> collection) {
608 throw new UnsupportedError("Cannot add to immutable List."); 608 throw new UnsupportedError("Cannot add to immutable List.");
609 } 609 }
610 610
611 bool contains(AnimatedNumber element) => _Collections.contains(this, element); 611 bool contains(AnimatedNumber element) => Collections.contains(this, element);
612 612
613 void forEach(void f(AnimatedNumber element)) => _Collections.forEach(this, f); 613 void forEach(void f(AnimatedNumber element)) => Collections.forEach(this, f);
614 614
615 Collection map(f(AnimatedNumber element)) => _Collections.map(this, [], f); 615 Collection map(f(AnimatedNumber element)) => Collections.map(this, [], f);
616 616
617 Collection<AnimatedNumber> filter(bool f(AnimatedNumber element)) => 617 Collection<AnimatedNumber> filter(bool f(AnimatedNumber element)) =>
618 _Collections.filter(this, <AnimatedNumber>[], f); 618 Collections.filter(this, <AnimatedNumber>[], f);
619 619
620 bool every(bool f(AnimatedNumber element)) => _Collections.every(this, f); 620 bool every(bool f(AnimatedNumber element)) => Collections.every(this, f);
621 621
622 bool some(bool f(AnimatedNumber element)) => _Collections.some(this, f); 622 bool some(bool f(AnimatedNumber element)) => Collections.some(this, f);
623 623
624 bool get isEmpty => this.length == 0; 624 bool get isEmpty => this.length == 0;
625 625
626 // From List<AnimatedNumber>: 626 // From List<AnimatedNumber>:
627 627
628 void sort([Comparator<AnimatedNumber> compare = Comparable.compare]) { 628 void sort([Comparator<AnimatedNumber> compare = Comparable.compare]) {
629 throw new UnsupportedError("Cannot sort immutable List."); 629 throw new UnsupportedError("Cannot sort immutable List.");
630 } 630 }
631 631
632 int indexOf(AnimatedNumber element, [int start = 0]) => 632 int indexOf(AnimatedNumber element, [int start = 0]) =>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 } 770 }
771 771
772 void addLast(AnimateTransformElement value) { 772 void addLast(AnimateTransformElement value) {
773 throw new UnsupportedError("Cannot add to immutable List."); 773 throw new UnsupportedError("Cannot add to immutable List.");
774 } 774 }
775 775
776 void addAll(Collection<AnimateTransformElement> collection) { 776 void addAll(Collection<AnimateTransformElement> collection) {
777 throw new UnsupportedError("Cannot add to immutable List."); 777 throw new UnsupportedError("Cannot add to immutable List.");
778 } 778 }
779 779
780 bool contains(AnimateTransformElement element) => _Collections.contains(this, element); 780 bool contains(AnimateTransformElement element) => Collections.contains(this, e lement);
781 781
782 void forEach(void f(AnimateTransformElement element)) => _Collections.forEach( this, f); 782 void forEach(void f(AnimateTransformElement element)) => Collections.forEach(t his, f);
783 783
784 Collection map(f(AnimateTransformElement element)) => _Collections.map(this, [ ], f); 784 Collection map(f(AnimateTransformElement element)) => Collections.map(this, [] , f);
785 785
786 Collection<AnimateTransformElement> filter(bool f(AnimateTransformElement elem ent)) => 786 Collection<AnimateTransformElement> filter(bool f(AnimateTransformElement elem ent)) =>
787 _Collections.filter(this, <AnimateTransformElement>[], f); 787 Collections.filter(this, <AnimateTransformElement>[], f);
788 788
789 bool every(bool f(AnimateTransformElement element)) => _Collections.every(this , f); 789 bool every(bool f(AnimateTransformElement element)) => Collections.every(this, f);
790 790
791 bool some(bool f(AnimateTransformElement element)) => _Collections.some(this, f); 791 bool some(bool f(AnimateTransformElement element)) => Collections.some(this, f );
792 792
793 bool get isEmpty => this.length == 0; 793 bool get isEmpty => this.length == 0;
794 794
795 // From List<AnimateTransformElement>: 795 // From List<AnimateTransformElement>:
796 796
797 void sort([Comparator<AnimateTransformElement> compare = Comparable.compare]) { 797 void sort([Comparator<AnimateTransformElement> compare = Comparable.compare]) {
798 throw new UnsupportedError("Cannot sort immutable List."); 798 throw new UnsupportedError("Cannot sort immutable List.");
799 } 799 }
800 800
801 int indexOf(AnimateTransformElement element, [int start = 0]) => 801 int indexOf(AnimateTransformElement element, [int start = 0]) =>
(...skipping 2947 matching lines...) Expand 10 before | Expand all | Expand 10 after
3749 } 3749 }
3750 3750
3751 void addLast(Length value) { 3751 void addLast(Length value) {
3752 throw new UnsupportedError("Cannot add to immutable List."); 3752 throw new UnsupportedError("Cannot add to immutable List.");
3753 } 3753 }
3754 3754
3755 void addAll(Collection<Length> collection) { 3755 void addAll(Collection<Length> collection) {
3756 throw new UnsupportedError("Cannot add to immutable List."); 3756 throw new UnsupportedError("Cannot add to immutable List.");
3757 } 3757 }
3758 3758
3759 bool contains(Length element) => _Collections.contains(this, element); 3759 bool contains(Length element) => Collections.contains(this, element);
3760 3760
3761 void forEach(void f(Length element)) => _Collections.forEach(this, f); 3761 void forEach(void f(Length element)) => Collections.forEach(this, f);
3762 3762
3763 Collection map(f(Length element)) => _Collections.map(this, [], f); 3763 Collection map(f(Length element)) => Collections.map(this, [], f);
3764 3764
3765 Collection<Length> filter(bool f(Length element)) => 3765 Collection<Length> filter(bool f(Length element)) =>
3766 _Collections.filter(this, <Length>[], f); 3766 Collections.filter(this, <Length>[], f);
3767 3767
3768 bool every(bool f(Length element)) => _Collections.every(this, f); 3768 bool every(bool f(Length element)) => Collections.every(this, f);
3769 3769
3770 bool some(bool f(Length element)) => _Collections.some(this, f); 3770 bool some(bool f(Length element)) => Collections.some(this, f);
3771 3771
3772 bool get isEmpty => this.length == 0; 3772 bool get isEmpty => this.length == 0;
3773 3773
3774 // From List<Length>: 3774 // From List<Length>:
3775 3775
3776 void sort([Comparator<Length> compare = Comparable.compare]) { 3776 void sort([Comparator<Length> compare = Comparable.compare]) {
3777 throw new UnsupportedError("Cannot sort immutable List."); 3777 throw new UnsupportedError("Cannot sort immutable List.");
3778 } 3778 }
3779 3779
3780 int indexOf(Length element, [int start = 0]) => 3780 int indexOf(Length element, [int start = 0]) =>
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
4408 } 4408 }
4409 4409
4410 void addLast(Number value) { 4410 void addLast(Number value) {
4411 throw new UnsupportedError("Cannot add to immutable List."); 4411 throw new UnsupportedError("Cannot add to immutable List.");
4412 } 4412 }
4413 4413
4414 void addAll(Collection<Number> collection) { 4414 void addAll(Collection<Number> collection) {
4415 throw new UnsupportedError("Cannot add to immutable List."); 4415 throw new UnsupportedError("Cannot add to immutable List.");
4416 } 4416 }
4417 4417
4418 bool contains(Number element) => _Collections.contains(this, element); 4418 bool contains(Number element) => Collections.contains(this, element);
4419 4419
4420 void forEach(void f(Number element)) => _Collections.forEach(this, f); 4420 void forEach(void f(Number element)) => Collections.forEach(this, f);
4421 4421
4422 Collection map(f(Number element)) => _Collections.map(this, [], f); 4422 Collection map(f(Number element)) => Collections.map(this, [], f);
4423 4423
4424 Collection<Number> filter(bool f(Number element)) => 4424 Collection<Number> filter(bool f(Number element)) =>
4425 _Collections.filter(this, <Number>[], f); 4425 Collections.filter(this, <Number>[], f);
4426 4426
4427 bool every(bool f(Number element)) => _Collections.every(this, f); 4427 bool every(bool f(Number element)) => Collections.every(this, f);
4428 4428
4429 bool some(bool f(Number element)) => _Collections.some(this, f); 4429 bool some(bool f(Number element)) => Collections.some(this, f);
4430 4430
4431 bool get isEmpty => this.length == 0; 4431 bool get isEmpty => this.length == 0;
4432 4432
4433 // From List<Number>: 4433 // From List<Number>:
4434 4434
4435 void sort([Comparator<Number> compare = Comparable.compare]) { 4435 void sort([Comparator<Number> compare = Comparable.compare]) {
4436 throw new UnsupportedError("Cannot sort immutable List."); 4436 throw new UnsupportedError("Cannot sort immutable List.");
4437 } 4437 }
4438 4438
4439 int indexOf(Number element, [int start = 0]) => 4439 int indexOf(Number element, [int start = 0]) =>
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
5479 } 5479 }
5480 5480
5481 void addLast(PathSeg value) { 5481 void addLast(PathSeg value) {
5482 throw new UnsupportedError("Cannot add to immutable List."); 5482 throw new UnsupportedError("Cannot add to immutable List.");
5483 } 5483 }
5484 5484
5485 void addAll(Collection<PathSeg> collection) { 5485 void addAll(Collection<PathSeg> collection) {
5486 throw new UnsupportedError("Cannot add to immutable List."); 5486 throw new UnsupportedError("Cannot add to immutable List.");
5487 } 5487 }
5488 5488
5489 bool contains(PathSeg element) => _Collections.contains(this, element); 5489 bool contains(PathSeg element) => Collections.contains(this, element);
5490 5490
5491 void forEach(void f(PathSeg element)) => _Collections.forEach(this, f); 5491 void forEach(void f(PathSeg element)) => Collections.forEach(this, f);
5492 5492
5493 Collection map(f(PathSeg element)) => _Collections.map(this, [], f); 5493 Collection map(f(PathSeg element)) => Collections.map(this, [], f);
5494 5494
5495 Collection<PathSeg> filter(bool f(PathSeg element)) => 5495 Collection<PathSeg> filter(bool f(PathSeg element)) =>
5496 _Collections.filter(this, <PathSeg>[], f); 5496 Collections.filter(this, <PathSeg>[], f);
5497 5497
5498 bool every(bool f(PathSeg element)) => _Collections.every(this, f); 5498 bool every(bool f(PathSeg element)) => Collections.every(this, f);
5499 5499
5500 bool some(bool f(PathSeg element)) => _Collections.some(this, f); 5500 bool some(bool f(PathSeg element)) => Collections.some(this, f);
5501 5501
5502 bool get isEmpty => this.length == 0; 5502 bool get isEmpty => this.length == 0;
5503 5503
5504 // From List<PathSeg>: 5504 // From List<PathSeg>:
5505 5505
5506 void sort([Comparator<PathSeg> compare = Comparable.compare]) { 5506 void sort([Comparator<PathSeg> compare = Comparable.compare]) {
5507 throw new UnsupportedError("Cannot sort immutable List."); 5507 throw new UnsupportedError("Cannot sort immutable List.");
5508 } 5508 }
5509 5509
5510 int indexOf(PathSeg element, [int start = 0]) => 5510 int indexOf(PathSeg element, [int start = 0]) =>
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
6388 } 6388 }
6389 6389
6390 void addLast(String value) { 6390 void addLast(String value) {
6391 throw new UnsupportedError("Cannot add to immutable List."); 6391 throw new UnsupportedError("Cannot add to immutable List.");
6392 } 6392 }
6393 6393
6394 void addAll(Collection<String> collection) { 6394 void addAll(Collection<String> collection) {
6395 throw new UnsupportedError("Cannot add to immutable List."); 6395 throw new UnsupportedError("Cannot add to immutable List.");
6396 } 6396 }
6397 6397
6398 bool contains(String element) => _Collections.contains(this, element); 6398 bool contains(String element) => Collections.contains(this, element);
6399 6399
6400 void forEach(void f(String element)) => _Collections.forEach(this, f); 6400 void forEach(void f(String element)) => Collections.forEach(this, f);
6401 6401
6402 Collection map(f(String element)) => _Collections.map(this, [], f); 6402 Collection map(f(String element)) => Collections.map(this, [], f);
6403 6403
6404 Collection<String> filter(bool f(String element)) => 6404 Collection<String> filter(bool f(String element)) =>
6405 _Collections.filter(this, <String>[], f); 6405 Collections.filter(this, <String>[], f);
6406 6406
6407 bool every(bool f(String element)) => _Collections.every(this, f); 6407 bool every(bool f(String element)) => Collections.every(this, f);
6408 6408
6409 bool some(bool f(String element)) => _Collections.some(this, f); 6409 bool some(bool f(String element)) => Collections.some(this, f);
6410 6410
6411 bool get isEmpty => this.length == 0; 6411 bool get isEmpty => this.length == 0;
6412 6412
6413 // From List<String>: 6413 // From List<String>:
6414 6414
6415 void sort([Comparator<String> compare = Comparable.compare]) { 6415 void sort([Comparator<String> compare = Comparable.compare]) {
6416 throw new UnsupportedError("Cannot sort immutable List."); 6416 throw new UnsupportedError("Cannot sort immutable List.");
6417 } 6417 }
6418 6418
6419 int indexOf(String element, [int start = 0]) => 6419 int indexOf(String element, [int start = 0]) =>
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
7529 } 7529 }
7530 7530
7531 void addLast(Transform value) { 7531 void addLast(Transform value) {
7532 throw new UnsupportedError("Cannot add to immutable List."); 7532 throw new UnsupportedError("Cannot add to immutable List.");
7533 } 7533 }
7534 7534
7535 void addAll(Collection<Transform> collection) { 7535 void addAll(Collection<Transform> collection) {
7536 throw new UnsupportedError("Cannot add to immutable List."); 7536 throw new UnsupportedError("Cannot add to immutable List.");
7537 } 7537 }
7538 7538
7539 bool contains(Transform element) => _Collections.contains(this, element); 7539 bool contains(Transform element) => Collections.contains(this, element);
7540 7540
7541 void forEach(void f(Transform element)) => _Collections.forEach(this, f); 7541 void forEach(void f(Transform element)) => Collections.forEach(this, f);
7542 7542
7543 Collection map(f(Transform element)) => _Collections.map(this, [], f); 7543 Collection map(f(Transform element)) => Collections.map(this, [], f);
7544 7544
7545 Collection<Transform> filter(bool f(Transform element)) => 7545 Collection<Transform> filter(bool f(Transform element)) =>
7546 _Collections.filter(this, <Transform>[], f); 7546 Collections.filter(this, <Transform>[], f);
7547 7547
7548 bool every(bool f(Transform element)) => _Collections.every(this, f); 7548 bool every(bool f(Transform element)) => Collections.every(this, f);
7549 7549
7550 bool some(bool f(Transform element)) => _Collections.some(this, f); 7550 bool some(bool f(Transform element)) => Collections.some(this, f);
7551 7551
7552 bool get isEmpty => this.length == 0; 7552 bool get isEmpty => this.length == 0;
7553 7553
7554 // From List<Transform>: 7554 // From List<Transform>:
7555 7555
7556 void sort([Comparator<Transform> compare = Comparable.compare]) { 7556 void sort([Comparator<Transform> compare = Comparable.compare]) {
7557 throw new UnsupportedError("Cannot sort immutable List."); 7557 throw new UnsupportedError("Cannot sort immutable List.");
7558 } 7558 }
7559 7559
7560 int indexOf(Transform element, [int start = 0]) => 7560 int indexOf(Transform element, [int start = 0]) =>
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
8020 } 8020 }
8021 8021
8022 void addLast(ElementInstance value) { 8022 void addLast(ElementInstance value) {
8023 throw new UnsupportedError("Cannot add to immutable List."); 8023 throw new UnsupportedError("Cannot add to immutable List.");
8024 } 8024 }
8025 8025
8026 void addAll(Collection<ElementInstance> collection) { 8026 void addAll(Collection<ElementInstance> collection) {
8027 throw new UnsupportedError("Cannot add to immutable List."); 8027 throw new UnsupportedError("Cannot add to immutable List.");
8028 } 8028 }
8029 8029
8030 bool contains(ElementInstance element) => _Collections.contains(this, element) ; 8030 bool contains(ElementInstance element) => Collections.contains(this, element);
8031 8031
8032 void forEach(void f(ElementInstance element)) => _Collections.forEach(this, f) ; 8032 void forEach(void f(ElementInstance element)) => Collections.forEach(this, f);
8033 8033
8034 Collection map(f(ElementInstance element)) => _Collections.map(this, [], f); 8034 Collection map(f(ElementInstance element)) => Collections.map(this, [], f);
8035 8035
8036 Collection<ElementInstance> filter(bool f(ElementInstance element)) => 8036 Collection<ElementInstance> filter(bool f(ElementInstance element)) =>
8037 _Collections.filter(this, <ElementInstance>[], f); 8037 Collections.filter(this, <ElementInstance>[], f);
8038 8038
8039 bool every(bool f(ElementInstance element)) => _Collections.every(this, f); 8039 bool every(bool f(ElementInstance element)) => Collections.every(this, f);
8040 8040
8041 bool some(bool f(ElementInstance element)) => _Collections.some(this, f); 8041 bool some(bool f(ElementInstance element)) => Collections.some(this, f);
8042 8042
8043 bool get isEmpty => this.length == 0; 8043 bool get isEmpty => this.length == 0;
8044 8044
8045 // From List<ElementInstance>: 8045 // From List<ElementInstance>:
8046 8046
8047 void sort([Comparator<ElementInstance> compare = Comparable.compare]) { 8047 void sort([Comparator<ElementInstance> compare = Comparable.compare]) {
8048 throw new UnsupportedError("Cannot sort immutable List."); 8048 throw new UnsupportedError("Cannot sort immutable List.");
8049 } 8049 }
8050 8050
8051 int indexOf(ElementInstance element, [int start = 0]) => 8051 int indexOf(ElementInstance element, [int start = 0]) =>
(...skipping 27 matching lines...) Expand all
8079 List<ElementInstance> getRange(int start, int rangeLength) => 8079 List<ElementInstance> getRange(int start, int rangeLength) =>
8080 _Lists.getRange(this, start, rangeLength, <ElementInstance>[]); 8080 _Lists.getRange(this, start, rangeLength, <ElementInstance>[]);
8081 8081
8082 // -- end List<ElementInstance> mixins. 8082 // -- end List<ElementInstance> mixins.
8083 8083
8084 8084
8085 /** @domName SVGElementInstanceList.item */ 8085 /** @domName SVGElementInstanceList.item */
8086 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback"; 8086 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback";
8087 8087
8088 } 8088 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698