OLD | NEW |
1 #library('dom'); | 1 #library('dom'); |
2 | 2 |
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 // DO NOT EDIT | 7 // DO NOT EDIT |
8 // Auto-generated Dart DOM library. | 8 // Auto-generated Dart DOM library. |
9 | 9 |
10 | 10 |
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 } | 604 } |
605 | 605 |
606 int indexOf(int element, [int start = 0]) => | 606 int indexOf(int element, [int start = 0]) => |
607 _Lists.indexOf(this, element, start, this.length); | 607 _Lists.indexOf(this, element, start, this.length); |
608 | 608 |
609 int lastIndexOf(int element, [int start = 0]) => | 609 int lastIndexOf(int element, [int start = 0]) => |
610 _Lists.lastIndexOf(this, element, start); | 610 _Lists.lastIndexOf(this, element, start); |
611 | 611 |
612 int last() => this[length - 1]; | 612 int last() => this[length - 1]; |
613 | 613 |
614 // FIXME: implement thesee. | 614 // FIXME: implement these. |
615 void setRange(int start, int length, List<int> from, [int startFrom]) { | 615 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
616 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 616 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
617 } | 617 } |
618 void removeRange(int start, int length) { | 618 void removeRange(int start, int rangeLength) { |
619 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 619 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
620 } | 620 } |
621 void insertRange(int start, int length, [int initialValue]) { | 621 void insertRange(int start, int rangeLength, [int initialValue]) { |
622 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 622 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
623 } | 623 } |
624 List<int> getRange(int start, int length) => | 624 List<int> getRange(int start, int rangeLength) => |
625 _Lists.getRange(this, start, length, <int>[]); | 625 _Lists.getRange(this, start, rangeLength, <int>[]); |
626 | 626 |
627 // -- end List<int> mixins. | 627 // -- end List<int> mixins. |
628 } | 628 } |
629 | 629 |
630 class _CanvasRenderingContextJs extends _DOMTypeJs implements CanvasRenderingCon
text native "*CanvasRenderingContext" { | 630 class _CanvasRenderingContextJs extends _DOMTypeJs implements CanvasRenderingCon
text native "*CanvasRenderingContext" { |
631 | 631 |
632 final _HTMLCanvasElementJs canvas; | 632 final _HTMLCanvasElementJs canvas; |
633 } | 633 } |
634 | 634 |
635 class _CanvasRenderingContext2DJs extends _CanvasRenderingContextJs implements C
anvasRenderingContext2D native "*CanvasRenderingContext2D" { | 635 class _CanvasRenderingContext2DJs extends _CanvasRenderingContextJs implements C
anvasRenderingContext2D native "*CanvasRenderingContext2D" { |
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2382 } | 2382 } |
2383 | 2383 |
2384 int indexOf(num element, [int start = 0]) => | 2384 int indexOf(num element, [int start = 0]) => |
2385 _Lists.indexOf(this, element, start, this.length); | 2385 _Lists.indexOf(this, element, start, this.length); |
2386 | 2386 |
2387 int lastIndexOf(num element, [int start = 0]) => | 2387 int lastIndexOf(num element, [int start = 0]) => |
2388 _Lists.lastIndexOf(this, element, start); | 2388 _Lists.lastIndexOf(this, element, start); |
2389 | 2389 |
2390 num last() => this[length - 1]; | 2390 num last() => this[length - 1]; |
2391 | 2391 |
2392 // FIXME: implement thesee. | 2392 // FIXME: implement these. |
2393 void setRange(int start, int length, List<num> from, [int startFrom]) { | 2393 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
2394 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 2394 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
2395 } | 2395 } |
2396 void removeRange(int start, int length) { | 2396 void removeRange(int start, int rangeLength) { |
2397 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 2397 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
2398 } | 2398 } |
2399 void insertRange(int start, int length, [num initialValue]) { | 2399 void insertRange(int start, int rangeLength, [num initialValue]) { |
2400 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 2400 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
2401 } | 2401 } |
2402 List<num> getRange(int start, int length) => | 2402 List<num> getRange(int start, int rangeLength) => |
2403 _Lists.getRange(this, start, length, <num>[]); | 2403 _Lists.getRange(this, start, rangeLength, <num>[]); |
2404 | 2404 |
2405 // -- end List<num> mixins. | 2405 // -- end List<num> mixins. |
2406 | 2406 |
2407 void setElements(Object array, [int offset = null]) native ''' | 2407 void setElements(Object array, [int offset = null]) native ''' |
2408 if (offset == null) return this.set(array); | 2408 if (offset == null) return this.set(array); |
2409 return this.set(array, offset);'''; | 2409 return this.set(array, offset);'''; |
2410 | 2410 |
2411 _Float32ArrayJs subarray(int start, [int end = null]) native; | 2411 _Float32ArrayJs subarray(int start, [int end = null]) native; |
2412 } | 2412 } |
2413 | 2413 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2474 } | 2474 } |
2475 | 2475 |
2476 int indexOf(num element, [int start = 0]) => | 2476 int indexOf(num element, [int start = 0]) => |
2477 _Lists.indexOf(this, element, start, this.length); | 2477 _Lists.indexOf(this, element, start, this.length); |
2478 | 2478 |
2479 int lastIndexOf(num element, [int start = 0]) => | 2479 int lastIndexOf(num element, [int start = 0]) => |
2480 _Lists.lastIndexOf(this, element, start); | 2480 _Lists.lastIndexOf(this, element, start); |
2481 | 2481 |
2482 num last() => this[length - 1]; | 2482 num last() => this[length - 1]; |
2483 | 2483 |
2484 // FIXME: implement thesee. | 2484 // FIXME: implement these. |
2485 void setRange(int start, int length, List<num> from, [int startFrom]) { | 2485 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
2486 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 2486 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
2487 } | 2487 } |
2488 void removeRange(int start, int length) { | 2488 void removeRange(int start, int rangeLength) { |
2489 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 2489 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
2490 } | 2490 } |
2491 void insertRange(int start, int length, [num initialValue]) { | 2491 void insertRange(int start, int rangeLength, [num initialValue]) { |
2492 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 2492 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
2493 } | 2493 } |
2494 List<num> getRange(int start, int length) => | 2494 List<num> getRange(int start, int rangeLength) => |
2495 _Lists.getRange(this, start, length, <num>[]); | 2495 _Lists.getRange(this, start, rangeLength, <num>[]); |
2496 | 2496 |
2497 // -- end List<num> mixins. | 2497 // -- end List<num> mixins. |
2498 | 2498 |
2499 void setElements(Object array, [int offset = null]) native ''' | 2499 void setElements(Object array, [int offset = null]) native ''' |
2500 if (offset == null) return this.set(array); | 2500 if (offset == null) return this.set(array); |
2501 return this.set(array, offset);'''; | 2501 return this.set(array, offset);'''; |
2502 | 2502 |
2503 _Float64ArrayJs subarray(int start, [int end = null]) native; | 2503 _Float64ArrayJs subarray(int start, [int end = null]) native; |
2504 } | 2504 } |
2505 | 2505 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2775 } | 2775 } |
2776 | 2776 |
2777 int indexOf(Node element, [int start = 0]) => | 2777 int indexOf(Node element, [int start = 0]) => |
2778 _Lists.indexOf(this, element, start, this.length); | 2778 _Lists.indexOf(this, element, start, this.length); |
2779 | 2779 |
2780 int lastIndexOf(Node element, [int start = 0]) => | 2780 int lastIndexOf(Node element, [int start = 0]) => |
2781 _Lists.lastIndexOf(this, element, start); | 2781 _Lists.lastIndexOf(this, element, start); |
2782 | 2782 |
2783 Node last() => this[length - 1]; | 2783 Node last() => this[length - 1]; |
2784 | 2784 |
2785 // FIXME: implement thesee. | 2785 // FIXME: implement these. |
2786 void setRange(int start, int length, List<Node> from, [int startFrom]) { | 2786 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
2787 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 2787 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
2788 } | 2788 } |
2789 void removeRange(int start, int length) { | 2789 void removeRange(int start, int rangeLength) { |
2790 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 2790 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
2791 } | 2791 } |
2792 void insertRange(int start, int length, [Node initialValue]) { | 2792 void insertRange(int start, int rangeLength, [Node initialValue]) { |
2793 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 2793 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
2794 } | 2794 } |
2795 List<Node> getRange(int start, int length) => | 2795 List<Node> getRange(int start, int rangeLength) => |
2796 _Lists.getRange(this, start, length, <Node>[]); | 2796 _Lists.getRange(this, start, rangeLength, <Node>[]); |
2797 | 2797 |
2798 // -- end List<Node> mixins. | 2798 // -- end List<Node> mixins. |
2799 | 2799 |
2800 _NodeJs item(int index) native; | 2800 _NodeJs item(int index) native; |
2801 | 2801 |
2802 _NodeJs namedItem(String name) native; | 2802 _NodeJs namedItem(String name) native; |
2803 } | 2803 } |
2804 | 2804 |
2805 class _HTMLContentElementJs extends _HTMLElementJs implements HTMLContentElement
native "*HTMLContentElement" { | 2805 class _HTMLContentElementJs extends _HTMLElementJs implements HTMLContentElement
native "*HTMLContentElement" { |
2806 | 2806 |
(...skipping 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4430 } | 4430 } |
4431 | 4431 |
4432 int indexOf(int element, [int start = 0]) => | 4432 int indexOf(int element, [int start = 0]) => |
4433 _Lists.indexOf(this, element, start, this.length); | 4433 _Lists.indexOf(this, element, start, this.length); |
4434 | 4434 |
4435 int lastIndexOf(int element, [int start = 0]) => | 4435 int lastIndexOf(int element, [int start = 0]) => |
4436 _Lists.lastIndexOf(this, element, start); | 4436 _Lists.lastIndexOf(this, element, start); |
4437 | 4437 |
4438 int last() => this[length - 1]; | 4438 int last() => this[length - 1]; |
4439 | 4439 |
4440 // FIXME: implement thesee. | 4440 // FIXME: implement these. |
4441 void setRange(int start, int length, List<int> from, [int startFrom]) { | 4441 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
4442 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 4442 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
4443 } | 4443 } |
4444 void removeRange(int start, int length) { | 4444 void removeRange(int start, int rangeLength) { |
4445 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 4445 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
4446 } | 4446 } |
4447 void insertRange(int start, int length, [int initialValue]) { | 4447 void insertRange(int start, int rangeLength, [int initialValue]) { |
4448 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 4448 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
4449 } | 4449 } |
4450 List<int> getRange(int start, int length) => | 4450 List<int> getRange(int start, int rangeLength) => |
4451 _Lists.getRange(this, start, length, <int>[]); | 4451 _Lists.getRange(this, start, rangeLength, <int>[]); |
4452 | 4452 |
4453 // -- end List<int> mixins. | 4453 // -- end List<int> mixins. |
4454 | 4454 |
4455 void setElements(Object array, [int offset = null]) native ''' | 4455 void setElements(Object array, [int offset = null]) native ''' |
4456 if (offset == null) return this.set(array); | 4456 if (offset == null) return this.set(array); |
4457 return this.set(array, offset);'''; | 4457 return this.set(array, offset);'''; |
4458 | 4458 |
4459 _Int16ArrayJs subarray(int start, [int end = null]) native; | 4459 _Int16ArrayJs subarray(int start, [int end = null]) native; |
4460 } | 4460 } |
4461 | 4461 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4522 } | 4522 } |
4523 | 4523 |
4524 int indexOf(int element, [int start = 0]) => | 4524 int indexOf(int element, [int start = 0]) => |
4525 _Lists.indexOf(this, element, start, this.length); | 4525 _Lists.indexOf(this, element, start, this.length); |
4526 | 4526 |
4527 int lastIndexOf(int element, [int start = 0]) => | 4527 int lastIndexOf(int element, [int start = 0]) => |
4528 _Lists.lastIndexOf(this, element, start); | 4528 _Lists.lastIndexOf(this, element, start); |
4529 | 4529 |
4530 int last() => this[length - 1]; | 4530 int last() => this[length - 1]; |
4531 | 4531 |
4532 // FIXME: implement thesee. | 4532 // FIXME: implement these. |
4533 void setRange(int start, int length, List<int> from, [int startFrom]) { | 4533 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
4534 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 4534 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
4535 } | 4535 } |
4536 void removeRange(int start, int length) { | 4536 void removeRange(int start, int rangeLength) { |
4537 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 4537 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
4538 } | 4538 } |
4539 void insertRange(int start, int length, [int initialValue]) { | 4539 void insertRange(int start, int rangeLength, [int initialValue]) { |
4540 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 4540 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
4541 } | 4541 } |
4542 List<int> getRange(int start, int length) => | 4542 List<int> getRange(int start, int rangeLength) => |
4543 _Lists.getRange(this, start, length, <int>[]); | 4543 _Lists.getRange(this, start, rangeLength, <int>[]); |
4544 | 4544 |
4545 // -- end List<int> mixins. | 4545 // -- end List<int> mixins. |
4546 | 4546 |
4547 void setElements(Object array, [int offset = null]) native ''' | 4547 void setElements(Object array, [int offset = null]) native ''' |
4548 if (offset == null) return this.set(array); | 4548 if (offset == null) return this.set(array); |
4549 return this.set(array, offset);'''; | 4549 return this.set(array, offset);'''; |
4550 | 4550 |
4551 _Int32ArrayJs subarray(int start, [int end = null]) native; | 4551 _Int32ArrayJs subarray(int start, [int end = null]) native; |
4552 } | 4552 } |
4553 | 4553 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4614 } | 4614 } |
4615 | 4615 |
4616 int indexOf(int element, [int start = 0]) => | 4616 int indexOf(int element, [int start = 0]) => |
4617 _Lists.indexOf(this, element, start, this.length); | 4617 _Lists.indexOf(this, element, start, this.length); |
4618 | 4618 |
4619 int lastIndexOf(int element, [int start = 0]) => | 4619 int lastIndexOf(int element, [int start = 0]) => |
4620 _Lists.lastIndexOf(this, element, start); | 4620 _Lists.lastIndexOf(this, element, start); |
4621 | 4621 |
4622 int last() => this[length - 1]; | 4622 int last() => this[length - 1]; |
4623 | 4623 |
4624 // FIXME: implement thesee. | 4624 // FIXME: implement these. |
4625 void setRange(int start, int length, List<int> from, [int startFrom]) { | 4625 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
4626 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 4626 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
4627 } | 4627 } |
4628 void removeRange(int start, int length) { | 4628 void removeRange(int start, int rangeLength) { |
4629 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 4629 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
4630 } | 4630 } |
4631 void insertRange(int start, int length, [int initialValue]) { | 4631 void insertRange(int start, int rangeLength, [int initialValue]) { |
4632 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 4632 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
4633 } | 4633 } |
4634 List<int> getRange(int start, int length) => | 4634 List<int> getRange(int start, int rangeLength) => |
4635 _Lists.getRange(this, start, length, <int>[]); | 4635 _Lists.getRange(this, start, rangeLength, <int>[]); |
4636 | 4636 |
4637 // -- end List<int> mixins. | 4637 // -- end List<int> mixins. |
4638 | 4638 |
4639 void setElements(Object array, [int offset = null]) native ''' | 4639 void setElements(Object array, [int offset = null]) native ''' |
4640 if (offset == null) return this.set(array); | 4640 if (offset == null) return this.set(array); |
4641 return this.set(array, offset);'''; | 4641 return this.set(array, offset);'''; |
4642 | 4642 |
4643 _Int8ArrayJs subarray(int start, [int end = null]) native; | 4643 _Int8ArrayJs subarray(int start, [int end = null]) native; |
4644 } | 4644 } |
4645 | 4645 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4851 } | 4851 } |
4852 | 4852 |
4853 int indexOf(String element, [int start = 0]) => | 4853 int indexOf(String element, [int start = 0]) => |
4854 _Lists.indexOf(this, element, start, this.length); | 4854 _Lists.indexOf(this, element, start, this.length); |
4855 | 4855 |
4856 int lastIndexOf(String element, [int start = 0]) => | 4856 int lastIndexOf(String element, [int start = 0]) => |
4857 _Lists.lastIndexOf(this, element, start); | 4857 _Lists.lastIndexOf(this, element, start); |
4858 | 4858 |
4859 String last() => this[length - 1]; | 4859 String last() => this[length - 1]; |
4860 | 4860 |
4861 // FIXME: implement thesee. | 4861 // FIXME: implement these. |
4862 void setRange(int start, int length, List<String> from, [int startFrom]) { | 4862 void setRange(int start, int rangeLength, List<String> from, [int startFrom])
{ |
4863 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 4863 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
4864 } | 4864 } |
4865 void removeRange(int start, int length) { | 4865 void removeRange(int start, int rangeLength) { |
4866 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 4866 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
4867 } | 4867 } |
4868 void insertRange(int start, int length, [String initialValue]) { | 4868 void insertRange(int start, int rangeLength, [String initialValue]) { |
4869 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 4869 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
4870 } | 4870 } |
4871 List<String> getRange(int start, int length) => | 4871 List<String> getRange(int start, int rangeLength) => |
4872 _Lists.getRange(this, start, length, <String>[]); | 4872 _Lists.getRange(this, start, rangeLength, <String>[]); |
4873 | 4873 |
4874 // -- end List<String> mixins. | 4874 // -- end List<String> mixins. |
4875 | 4875 |
4876 void appendMedium(String newMedium) native; | 4876 void appendMedium(String newMedium) native; |
4877 | 4877 |
4878 void deleteMedium(String oldMedium) native; | 4878 void deleteMedium(String oldMedium) native; |
4879 | 4879 |
4880 String item(int index) native; | 4880 String item(int index) native; |
4881 } | 4881 } |
4882 | 4882 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5119 } | 5119 } |
5120 | 5120 |
5121 int indexOf(Node element, [int start = 0]) => | 5121 int indexOf(Node element, [int start = 0]) => |
5122 _Lists.indexOf(this, element, start, this.length); | 5122 _Lists.indexOf(this, element, start, this.length); |
5123 | 5123 |
5124 int lastIndexOf(Node element, [int start = 0]) => | 5124 int lastIndexOf(Node element, [int start = 0]) => |
5125 _Lists.lastIndexOf(this, element, start); | 5125 _Lists.lastIndexOf(this, element, start); |
5126 | 5126 |
5127 Node last() => this[length - 1]; | 5127 Node last() => this[length - 1]; |
5128 | 5128 |
5129 // FIXME: implement thesee. | 5129 // FIXME: implement these. |
5130 void setRange(int start, int length, List<Node> from, [int startFrom]) { | 5130 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
5131 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 5131 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
5132 } | 5132 } |
5133 void removeRange(int start, int length) { | 5133 void removeRange(int start, int rangeLength) { |
5134 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 5134 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
5135 } | 5135 } |
5136 void insertRange(int start, int length, [Node initialValue]) { | 5136 void insertRange(int start, int rangeLength, [Node initialValue]) { |
5137 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 5137 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
5138 } | 5138 } |
5139 List<Node> getRange(int start, int length) => | 5139 List<Node> getRange(int start, int rangeLength) => |
5140 _Lists.getRange(this, start, length, <Node>[]); | 5140 _Lists.getRange(this, start, rangeLength, <Node>[]); |
5141 | 5141 |
5142 // -- end List<Node> mixins. | 5142 // -- end List<Node> mixins. |
5143 | 5143 |
5144 _NodeJs getNamedItem(String name) native; | 5144 _NodeJs getNamedItem(String name) native; |
5145 | 5145 |
5146 _NodeJs getNamedItemNS(String namespaceURI, String localName) native; | 5146 _NodeJs getNamedItemNS(String namespaceURI, String localName) native; |
5147 | 5147 |
5148 _NodeJs item(int index) native; | 5148 _NodeJs item(int index) native; |
5149 | 5149 |
5150 _NodeJs removeNamedItem(String name) native; | 5150 _NodeJs removeNamedItem(String name) native; |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5428 } | 5428 } |
5429 | 5429 |
5430 int indexOf(Node element, [int start = 0]) => | 5430 int indexOf(Node element, [int start = 0]) => |
5431 _Lists.indexOf(this, element, start, this.length); | 5431 _Lists.indexOf(this, element, start, this.length); |
5432 | 5432 |
5433 int lastIndexOf(Node element, [int start = 0]) => | 5433 int lastIndexOf(Node element, [int start = 0]) => |
5434 _Lists.lastIndexOf(this, element, start); | 5434 _Lists.lastIndexOf(this, element, start); |
5435 | 5435 |
5436 Node last() => this[length - 1]; | 5436 Node last() => this[length - 1]; |
5437 | 5437 |
5438 // FIXME: implement thesee. | 5438 // FIXME: implement these. |
5439 void setRange(int start, int length, List<Node> from, [int startFrom]) { | 5439 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
5440 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 5440 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
5441 } | 5441 } |
5442 void removeRange(int start, int length) { | 5442 void removeRange(int start, int rangeLength) { |
5443 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 5443 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
5444 } | 5444 } |
5445 void insertRange(int start, int length, [Node initialValue]) { | 5445 void insertRange(int start, int rangeLength, [Node initialValue]) { |
5446 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 5446 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
5447 } | 5447 } |
5448 List<Node> getRange(int start, int length) => | 5448 List<Node> getRange(int start, int rangeLength) => |
5449 _Lists.getRange(this, start, length, <Node>[]); | 5449 _Lists.getRange(this, start, rangeLength, <Node>[]); |
5450 | 5450 |
5451 // -- end List<Node> mixins. | 5451 // -- end List<Node> mixins. |
5452 | 5452 |
5453 _NodeJs item(int index) native; | 5453 _NodeJs item(int index) native; |
5454 } | 5454 } |
5455 | 5455 |
5456 class _NodeSelectorJs extends _DOMTypeJs implements NodeSelector native "*NodeSe
lector" { | 5456 class _NodeSelectorJs extends _DOMTypeJs implements NodeSelector native "*NodeSe
lector" { |
5457 | 5457 |
5458 _ElementJs querySelector(String selectors) native; | 5458 _ElementJs querySelector(String selectors) native; |
5459 | 5459 |
(...skipping 4135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9595 } | 9595 } |
9596 | 9596 |
9597 int indexOf(StyleSheet element, [int start = 0]) => | 9597 int indexOf(StyleSheet element, [int start = 0]) => |
9598 _Lists.indexOf(this, element, start, this.length); | 9598 _Lists.indexOf(this, element, start, this.length); |
9599 | 9599 |
9600 int lastIndexOf(StyleSheet element, [int start = 0]) => | 9600 int lastIndexOf(StyleSheet element, [int start = 0]) => |
9601 _Lists.lastIndexOf(this, element, start); | 9601 _Lists.lastIndexOf(this, element, start); |
9602 | 9602 |
9603 StyleSheet last() => this[length - 1]; | 9603 StyleSheet last() => this[length - 1]; |
9604 | 9604 |
9605 // FIXME: implement thesee. | 9605 // FIXME: implement these. |
9606 void setRange(int start, int length, List<StyleSheet> from, [int startFrom]) { | 9606 void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFro
m]) { |
9607 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 9607 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
9608 } | 9608 } |
9609 void removeRange(int start, int length) { | 9609 void removeRange(int start, int rangeLength) { |
9610 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 9610 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
9611 } | 9611 } |
9612 void insertRange(int start, int length, [StyleSheet initialValue]) { | 9612 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { |
9613 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 9613 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
9614 } | 9614 } |
9615 List<StyleSheet> getRange(int start, int length) => | 9615 List<StyleSheet> getRange(int start, int rangeLength) => |
9616 _Lists.getRange(this, start, length, <StyleSheet>[]); | 9616 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]); |
9617 | 9617 |
9618 // -- end List<StyleSheet> mixins. | 9618 // -- end List<StyleSheet> mixins. |
9619 | 9619 |
9620 _StyleSheetJs item(int index) native; | 9620 _StyleSheetJs item(int index) native; |
9621 } | 9621 } |
9622 | 9622 |
9623 class _TextJs extends _CharacterDataJs implements Text native "*Text" { | 9623 class _TextJs extends _CharacterDataJs implements Text native "*Text" { |
9624 | 9624 |
9625 final String wholeText; | 9625 final String wholeText; |
9626 | 9626 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9847 } | 9847 } |
9848 | 9848 |
9849 int indexOf(Touch element, [int start = 0]) => | 9849 int indexOf(Touch element, [int start = 0]) => |
9850 _Lists.indexOf(this, element, start, this.length); | 9850 _Lists.indexOf(this, element, start, this.length); |
9851 | 9851 |
9852 int lastIndexOf(Touch element, [int start = 0]) => | 9852 int lastIndexOf(Touch element, [int start = 0]) => |
9853 _Lists.lastIndexOf(this, element, start); | 9853 _Lists.lastIndexOf(this, element, start); |
9854 | 9854 |
9855 Touch last() => this[length - 1]; | 9855 Touch last() => this[length - 1]; |
9856 | 9856 |
9857 // FIXME: implement thesee. | 9857 // FIXME: implement these. |
9858 void setRange(int start, int length, List<Touch> from, [int startFrom]) { | 9858 void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) { |
9859 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 9859 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
9860 } | 9860 } |
9861 void removeRange(int start, int length) { | 9861 void removeRange(int start, int rangeLength) { |
9862 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 9862 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
9863 } | 9863 } |
9864 void insertRange(int start, int length, [Touch initialValue]) { | 9864 void insertRange(int start, int rangeLength, [Touch initialValue]) { |
9865 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 9865 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
9866 } | 9866 } |
9867 List<Touch> getRange(int start, int length) => | 9867 List<Touch> getRange(int start, int rangeLength) => |
9868 _Lists.getRange(this, start, length, <Touch>[]); | 9868 _Lists.getRange(this, start, rangeLength, <Touch>[]); |
9869 | 9869 |
9870 // -- end List<Touch> mixins. | 9870 // -- end List<Touch> mixins. |
9871 | 9871 |
9872 _TouchJs item(int index) native; | 9872 _TouchJs item(int index) native; |
9873 } | 9873 } |
9874 | 9874 |
9875 class _TrackEventJs extends _EventJs implements TrackEvent native "*TrackEvent"
{ | 9875 class _TrackEventJs extends _EventJs implements TrackEvent native "*TrackEvent"
{ |
9876 | 9876 |
9877 final Object track; | 9877 final Object track; |
9878 } | 9878 } |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9990 } | 9990 } |
9991 | 9991 |
9992 int indexOf(int element, [int start = 0]) => | 9992 int indexOf(int element, [int start = 0]) => |
9993 _Lists.indexOf(this, element, start, this.length); | 9993 _Lists.indexOf(this, element, start, this.length); |
9994 | 9994 |
9995 int lastIndexOf(int element, [int start = 0]) => | 9995 int lastIndexOf(int element, [int start = 0]) => |
9996 _Lists.lastIndexOf(this, element, start); | 9996 _Lists.lastIndexOf(this, element, start); |
9997 | 9997 |
9998 int last() => this[length - 1]; | 9998 int last() => this[length - 1]; |
9999 | 9999 |
10000 // FIXME: implement thesee. | 10000 // FIXME: implement these. |
10001 void setRange(int start, int length, List<int> from, [int startFrom]) { | 10001 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
10002 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 10002 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
10003 } | 10003 } |
10004 void removeRange(int start, int length) { | 10004 void removeRange(int start, int rangeLength) { |
10005 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 10005 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
10006 } | 10006 } |
10007 void insertRange(int start, int length, [int initialValue]) { | 10007 void insertRange(int start, int rangeLength, [int initialValue]) { |
10008 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 10008 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
10009 } | 10009 } |
10010 List<int> getRange(int start, int length) => | 10010 List<int> getRange(int start, int rangeLength) => |
10011 _Lists.getRange(this, start, length, <int>[]); | 10011 _Lists.getRange(this, start, rangeLength, <int>[]); |
10012 | 10012 |
10013 // -- end List<int> mixins. | 10013 // -- end List<int> mixins. |
10014 | 10014 |
10015 void setElements(Object array, [int offset = null]) native ''' | 10015 void setElements(Object array, [int offset = null]) native ''' |
10016 if (offset == null) return this.set(array); | 10016 if (offset == null) return this.set(array); |
10017 return this.set(array, offset);'''; | 10017 return this.set(array, offset);'''; |
10018 | 10018 |
10019 _Uint16ArrayJs subarray(int start, [int end = null]) native; | 10019 _Uint16ArrayJs subarray(int start, [int end = null]) native; |
10020 } | 10020 } |
10021 | 10021 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10082 } | 10082 } |
10083 | 10083 |
10084 int indexOf(int element, [int start = 0]) => | 10084 int indexOf(int element, [int start = 0]) => |
10085 _Lists.indexOf(this, element, start, this.length); | 10085 _Lists.indexOf(this, element, start, this.length); |
10086 | 10086 |
10087 int lastIndexOf(int element, [int start = 0]) => | 10087 int lastIndexOf(int element, [int start = 0]) => |
10088 _Lists.lastIndexOf(this, element, start); | 10088 _Lists.lastIndexOf(this, element, start); |
10089 | 10089 |
10090 int last() => this[length - 1]; | 10090 int last() => this[length - 1]; |
10091 | 10091 |
10092 // FIXME: implement thesee. | 10092 // FIXME: implement these. |
10093 void setRange(int start, int length, List<int> from, [int startFrom]) { | 10093 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
10094 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 10094 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
10095 } | 10095 } |
10096 void removeRange(int start, int length) { | 10096 void removeRange(int start, int rangeLength) { |
10097 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 10097 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
10098 } | 10098 } |
10099 void insertRange(int start, int length, [int initialValue]) { | 10099 void insertRange(int start, int rangeLength, [int initialValue]) { |
10100 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 10100 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
10101 } | 10101 } |
10102 List<int> getRange(int start, int length) => | 10102 List<int> getRange(int start, int rangeLength) => |
10103 _Lists.getRange(this, start, length, <int>[]); | 10103 _Lists.getRange(this, start, rangeLength, <int>[]); |
10104 | 10104 |
10105 // -- end List<int> mixins. | 10105 // -- end List<int> mixins. |
10106 | 10106 |
10107 void setElements(Object array, [int offset = null]) native ''' | 10107 void setElements(Object array, [int offset = null]) native ''' |
10108 if (offset == null) return this.set(array); | 10108 if (offset == null) return this.set(array); |
10109 return this.set(array, offset);'''; | 10109 return this.set(array, offset);'''; |
10110 | 10110 |
10111 _Uint32ArrayJs subarray(int start, [int end = null]) native; | 10111 _Uint32ArrayJs subarray(int start, [int end = null]) native; |
10112 } | 10112 } |
10113 | 10113 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10174 } | 10174 } |
10175 | 10175 |
10176 int indexOf(int element, [int start = 0]) => | 10176 int indexOf(int element, [int start = 0]) => |
10177 _Lists.indexOf(this, element, start, this.length); | 10177 _Lists.indexOf(this, element, start, this.length); |
10178 | 10178 |
10179 int lastIndexOf(int element, [int start = 0]) => | 10179 int lastIndexOf(int element, [int start = 0]) => |
10180 _Lists.lastIndexOf(this, element, start); | 10180 _Lists.lastIndexOf(this, element, start); |
10181 | 10181 |
10182 int last() => this[length - 1]; | 10182 int last() => this[length - 1]; |
10183 | 10183 |
10184 // FIXME: implement thesee. | 10184 // FIXME: implement these. |
10185 void setRange(int start, int length, List<int> from, [int startFrom]) { | 10185 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
10186 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); | 10186 throw new UnsupportedOperationException("Cannot setRange on immutable List."
); |
10187 } | 10187 } |
10188 void removeRange(int start, int length) { | 10188 void removeRange(int start, int rangeLength) { |
10189 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 10189 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
10190 } | 10190 } |
10191 void insertRange(int start, int length, [int initialValue]) { | 10191 void insertRange(int start, int rangeLength, [int initialValue]) { |
10192 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 10192 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
10193 } | 10193 } |
10194 List<int> getRange(int start, int length) => | 10194 List<int> getRange(int start, int rangeLength) => |
10195 _Lists.getRange(this, start, length, <int>[]); | 10195 _Lists.getRange(this, start, rangeLength, <int>[]); |
10196 | 10196 |
10197 // -- end List<int> mixins. | 10197 // -- end List<int> mixins. |
10198 | 10198 |
10199 void setElements(Object array, [int offset = null]) native ''' | 10199 void setElements(Object array, [int offset = null]) native ''' |
10200 if (offset == null) return this.set(array); | 10200 if (offset == null) return this.set(array); |
10201 return this.set(array, offset);'''; | 10201 return this.set(array, offset);'''; |
10202 | 10202 |
10203 _Uint8ArrayJs subarray(int start, [int end = null]) native; | 10203 _Uint8ArrayJs subarray(int start, [int end = null]) native; |
10204 } | 10204 } |
10205 | 10205 |
(...skipping 14594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
24800 if (length < 0) throw new IllegalArgumentException('length'); | 24800 if (length < 0) throw new IllegalArgumentException('length'); |
24801 if (start < 0) throw new IndexOutOfRangeException(start); | 24801 if (start < 0) throw new IndexOutOfRangeException(start); |
24802 int end = start + length; | 24802 int end = start + length; |
24803 if (end > a.length) throw new IndexOutOfRangeException(end); | 24803 if (end > a.length) throw new IndexOutOfRangeException(end); |
24804 for (int i = start; i < end; i++) { | 24804 for (int i = start; i < end; i++) { |
24805 accumulator.add(a[i]); | 24805 accumulator.add(a[i]); |
24806 } | 24806 } |
24807 return accumulator; | 24807 return accumulator; |
24808 } | 24808 } |
24809 } | 24809 } |
OLD | NEW |