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

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: Created 8 years, 1 month 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 2949 matching lines...) Expand 10 before | Expand all | Expand 10 after
3751 } 3751 }
3752 3752
3753 void addLast(Length value) { 3753 void addLast(Length value) {
3754 throw new UnsupportedError("Cannot add to immutable List."); 3754 throw new UnsupportedError("Cannot add to immutable List.");
3755 } 3755 }
3756 3756
3757 void addAll(Collection<Length> collection) { 3757 void addAll(Collection<Length> collection) {
3758 throw new UnsupportedError("Cannot add to immutable List."); 3758 throw new UnsupportedError("Cannot add to immutable List.");
3759 } 3759 }
3760 3760
3761 bool contains(Length element) => _Collections.contains(this, element); 3761 bool contains(Length element) => Collections.contains(this, element);
3762 3762
3763 void forEach(void f(Length element)) => _Collections.forEach(this, f); 3763 void forEach(void f(Length element)) => Collections.forEach(this, f);
3764 3764
3765 Collection map(f(Length element)) => _Collections.map(this, [], f); 3765 Collection map(f(Length element)) => Collections.map(this, [], f);
3766 3766
3767 Collection<Length> filter(bool f(Length element)) => 3767 Collection<Length> filter(bool f(Length element)) =>
3768 _Collections.filter(this, <Length>[], f); 3768 Collections.filter(this, <Length>[], f);
3769 3769
3770 bool every(bool f(Length element)) => _Collections.every(this, f); 3770 bool every(bool f(Length element)) => Collections.every(this, f);
3771 3771
3772 bool some(bool f(Length element)) => _Collections.some(this, f); 3772 bool some(bool f(Length element)) => Collections.some(this, f);
3773 3773
3774 bool get isEmpty => this.length == 0; 3774 bool get isEmpty => this.length == 0;
3775 3775
3776 // From List<Length>: 3776 // From List<Length>:
3777 3777
3778 void sort([Comparator<Length> compare = Comparable.compare]) { 3778 void sort([Comparator<Length> compare = Comparable.compare]) {
3779 throw new UnsupportedError("Cannot sort immutable List."); 3779 throw new UnsupportedError("Cannot sort immutable List.");
3780 } 3780 }
3781 3781
3782 int indexOf(Length element, [int start = 0]) => 3782 int indexOf(Length element, [int start = 0]) =>
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
4410 } 4410 }
4411 4411
4412 void addLast(Number value) { 4412 void addLast(Number value) {
4413 throw new UnsupportedError("Cannot add to immutable List."); 4413 throw new UnsupportedError("Cannot add to immutable List.");
4414 } 4414 }
4415 4415
4416 void addAll(Collection<Number> collection) { 4416 void addAll(Collection<Number> collection) {
4417 throw new UnsupportedError("Cannot add to immutable List."); 4417 throw new UnsupportedError("Cannot add to immutable List.");
4418 } 4418 }
4419 4419
4420 bool contains(Number element) => _Collections.contains(this, element); 4420 bool contains(Number element) => Collections.contains(this, element);
4421 4421
4422 void forEach(void f(Number element)) => _Collections.forEach(this, f); 4422 void forEach(void f(Number element)) => Collections.forEach(this, f);
4423 4423
4424 Collection map(f(Number element)) => _Collections.map(this, [], f); 4424 Collection map(f(Number element)) => Collections.map(this, [], f);
4425 4425
4426 Collection<Number> filter(bool f(Number element)) => 4426 Collection<Number> filter(bool f(Number element)) =>
4427 _Collections.filter(this, <Number>[], f); 4427 Collections.filter(this, <Number>[], f);
4428 4428
4429 bool every(bool f(Number element)) => _Collections.every(this, f); 4429 bool every(bool f(Number element)) => Collections.every(this, f);
4430 4430
4431 bool some(bool f(Number element)) => _Collections.some(this, f); 4431 bool some(bool f(Number element)) => Collections.some(this, f);
4432 4432
4433 bool get isEmpty => this.length == 0; 4433 bool get isEmpty => this.length == 0;
4434 4434
4435 // From List<Number>: 4435 // From List<Number>:
4436 4436
4437 void sort([Comparator<Number> compare = Comparable.compare]) { 4437 void sort([Comparator<Number> compare = Comparable.compare]) {
4438 throw new UnsupportedError("Cannot sort immutable List."); 4438 throw new UnsupportedError("Cannot sort immutable List.");
4439 } 4439 }
4440 4440
4441 int indexOf(Number element, [int start = 0]) => 4441 int indexOf(Number element, [int start = 0]) =>
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
5481 } 5481 }
5482 5482
5483 void addLast(PathSeg value) { 5483 void addLast(PathSeg value) {
5484 throw new UnsupportedError("Cannot add to immutable List."); 5484 throw new UnsupportedError("Cannot add to immutable List.");
5485 } 5485 }
5486 5486
5487 void addAll(Collection<PathSeg> collection) { 5487 void addAll(Collection<PathSeg> collection) {
5488 throw new UnsupportedError("Cannot add to immutable List."); 5488 throw new UnsupportedError("Cannot add to immutable List.");
5489 } 5489 }
5490 5490
5491 bool contains(PathSeg element) => _Collections.contains(this, element); 5491 bool contains(PathSeg element) => Collections.contains(this, element);
5492 5492
5493 void forEach(void f(PathSeg element)) => _Collections.forEach(this, f); 5493 void forEach(void f(PathSeg element)) => Collections.forEach(this, f);
5494 5494
5495 Collection map(f(PathSeg element)) => _Collections.map(this, [], f); 5495 Collection map(f(PathSeg element)) => Collections.map(this, [], f);
5496 5496
5497 Collection<PathSeg> filter(bool f(PathSeg element)) => 5497 Collection<PathSeg> filter(bool f(PathSeg element)) =>
5498 _Collections.filter(this, <PathSeg>[], f); 5498 Collections.filter(this, <PathSeg>[], f);
5499 5499
5500 bool every(bool f(PathSeg element)) => _Collections.every(this, f); 5500 bool every(bool f(PathSeg element)) => Collections.every(this, f);
5501 5501
5502 bool some(bool f(PathSeg element)) => _Collections.some(this, f); 5502 bool some(bool f(PathSeg element)) => Collections.some(this, f);
5503 5503
5504 bool get isEmpty => this.length == 0; 5504 bool get isEmpty => this.length == 0;
5505 5505
5506 // From List<PathSeg>: 5506 // From List<PathSeg>:
5507 5507
5508 void sort([Comparator<PathSeg> compare = Comparable.compare]) { 5508 void sort([Comparator<PathSeg> compare = Comparable.compare]) {
5509 throw new UnsupportedError("Cannot sort immutable List."); 5509 throw new UnsupportedError("Cannot sort immutable List.");
5510 } 5510 }
5511 5511
5512 int indexOf(PathSeg element, [int start = 0]) => 5512 int indexOf(PathSeg element, [int start = 0]) =>
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
6390 } 6390 }
6391 6391
6392 void addLast(String value) { 6392 void addLast(String value) {
6393 throw new UnsupportedError("Cannot add to immutable List."); 6393 throw new UnsupportedError("Cannot add to immutable List.");
6394 } 6394 }
6395 6395
6396 void addAll(Collection<String> collection) { 6396 void addAll(Collection<String> collection) {
6397 throw new UnsupportedError("Cannot add to immutable List."); 6397 throw new UnsupportedError("Cannot add to immutable List.");
6398 } 6398 }
6399 6399
6400 bool contains(String element) => _Collections.contains(this, element); 6400 bool contains(String element) => Collections.contains(this, element);
6401 6401
6402 void forEach(void f(String element)) => _Collections.forEach(this, f); 6402 void forEach(void f(String element)) => Collections.forEach(this, f);
6403 6403
6404 Collection map(f(String element)) => _Collections.map(this, [], f); 6404 Collection map(f(String element)) => Collections.map(this, [], f);
6405 6405
6406 Collection<String> filter(bool f(String element)) => 6406 Collection<String> filter(bool f(String element)) =>
6407 _Collections.filter(this, <String>[], f); 6407 Collections.filter(this, <String>[], f);
6408 6408
6409 bool every(bool f(String element)) => _Collections.every(this, f); 6409 bool every(bool f(String element)) => Collections.every(this, f);
6410 6410
6411 bool some(bool f(String element)) => _Collections.some(this, f); 6411 bool some(bool f(String element)) => Collections.some(this, f);
6412 6412
6413 bool get isEmpty => this.length == 0; 6413 bool get isEmpty => this.length == 0;
6414 6414
6415 // From List<String>: 6415 // From List<String>:
6416 6416
6417 void sort([Comparator<String> compare = Comparable.compare]) { 6417 void sort([Comparator<String> compare = Comparable.compare]) {
6418 throw new UnsupportedError("Cannot sort immutable List."); 6418 throw new UnsupportedError("Cannot sort immutable List.");
6419 } 6419 }
6420 6420
6421 int indexOf(String element, [int start = 0]) => 6421 int indexOf(String element, [int start = 0]) =>
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
7531 } 7531 }
7532 7532
7533 void addLast(Transform value) { 7533 void addLast(Transform value) {
7534 throw new UnsupportedError("Cannot add to immutable List."); 7534 throw new UnsupportedError("Cannot add to immutable List.");
7535 } 7535 }
7536 7536
7537 void addAll(Collection<Transform> collection) { 7537 void addAll(Collection<Transform> collection) {
7538 throw new UnsupportedError("Cannot add to immutable List."); 7538 throw new UnsupportedError("Cannot add to immutable List.");
7539 } 7539 }
7540 7540
7541 bool contains(Transform element) => _Collections.contains(this, element); 7541 bool contains(Transform element) => Collections.contains(this, element);
7542 7542
7543 void forEach(void f(Transform element)) => _Collections.forEach(this, f); 7543 void forEach(void f(Transform element)) => Collections.forEach(this, f);
7544 7544
7545 Collection map(f(Transform element)) => _Collections.map(this, [], f); 7545 Collection map(f(Transform element)) => Collections.map(this, [], f);
7546 7546
7547 Collection<Transform> filter(bool f(Transform element)) => 7547 Collection<Transform> filter(bool f(Transform element)) =>
7548 _Collections.filter(this, <Transform>[], f); 7548 Collections.filter(this, <Transform>[], f);
7549 7549
7550 bool every(bool f(Transform element)) => _Collections.every(this, f); 7550 bool every(bool f(Transform element)) => Collections.every(this, f);
7551 7551
7552 bool some(bool f(Transform element)) => _Collections.some(this, f); 7552 bool some(bool f(Transform element)) => Collections.some(this, f);
7553 7553
7554 bool get isEmpty => this.length == 0; 7554 bool get isEmpty => this.length == 0;
7555 7555
7556 // From List<Transform>: 7556 // From List<Transform>:
7557 7557
7558 void sort([Comparator<Transform> compare = Comparable.compare]) { 7558 void sort([Comparator<Transform> compare = Comparable.compare]) {
7559 throw new UnsupportedError("Cannot sort immutable List."); 7559 throw new UnsupportedError("Cannot sort immutable List.");
7560 } 7560 }
7561 7561
7562 int indexOf(Transform element, [int start = 0]) => 7562 int indexOf(Transform element, [int start = 0]) =>
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
8022 } 8022 }
8023 8023
8024 void addLast(ElementInstance value) { 8024 void addLast(ElementInstance value) {
8025 throw new UnsupportedError("Cannot add to immutable List."); 8025 throw new UnsupportedError("Cannot add to immutable List.");
8026 } 8026 }
8027 8027
8028 void addAll(Collection<ElementInstance> collection) { 8028 void addAll(Collection<ElementInstance> collection) {
8029 throw new UnsupportedError("Cannot add to immutable List."); 8029 throw new UnsupportedError("Cannot add to immutable List.");
8030 } 8030 }
8031 8031
8032 bool contains(ElementInstance element) => _Collections.contains(this, element) ; 8032 bool contains(ElementInstance element) => Collections.contains(this, element);
8033 8033
8034 void forEach(void f(ElementInstance element)) => _Collections.forEach(this, f) ; 8034 void forEach(void f(ElementInstance element)) => Collections.forEach(this, f);
8035 8035
8036 Collection map(f(ElementInstance element)) => _Collections.map(this, [], f); 8036 Collection map(f(ElementInstance element)) => Collections.map(this, [], f);
8037 8037
8038 Collection<ElementInstance> filter(bool f(ElementInstance element)) => 8038 Collection<ElementInstance> filter(bool f(ElementInstance element)) =>
8039 _Collections.filter(this, <ElementInstance>[], f); 8039 Collections.filter(this, <ElementInstance>[], f);
8040 8040
8041 bool every(bool f(ElementInstance element)) => _Collections.every(this, f); 8041 bool every(bool f(ElementInstance element)) => Collections.every(this, f);
8042 8042
8043 bool some(bool f(ElementInstance element)) => _Collections.some(this, f); 8043 bool some(bool f(ElementInstance element)) => Collections.some(this, f);
8044 8044
8045 bool get isEmpty => this.length == 0; 8045 bool get isEmpty => this.length == 0;
8046 8046
8047 // From List<ElementInstance>: 8047 // From List<ElementInstance>:
8048 8048
8049 void sort([Comparator<ElementInstance> compare = Comparable.compare]) { 8049 void sort([Comparator<ElementInstance> compare = Comparable.compare]) {
8050 throw new UnsupportedError("Cannot sort immutable List."); 8050 throw new UnsupportedError("Cannot sort immutable List.");
8051 } 8051 }
8052 8052
8053 int indexOf(ElementInstance element, [int start = 0]) => 8053 int indexOf(ElementInstance element, [int start = 0]) =>
(...skipping 27 matching lines...) Expand all
8081 List<ElementInstance> getRange(int start, int rangeLength) => 8081 List<ElementInstance> getRange(int start, int rangeLength) =>
8082 _Lists.getRange(this, start, rangeLength, <ElementInstance>[]); 8082 _Lists.getRange(this, start, rangeLength, <ElementInstance>[]);
8083 8083
8084 // -- end List<ElementInstance> mixins. 8084 // -- end List<ElementInstance> mixins.
8085 8085
8086 8086
8087 /** @domName SVGElementInstanceList.item */ 8087 /** @domName SVGElementInstanceList.item */
8088 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback"; 8088 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback";
8089 8089
8090 } 8090 }
OLDNEW
« sdk/lib/html/scripts/generator.py ('K') | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698