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

Side by Side Diff: lib/dom/frog/dom_frog.dart

Issue 9956126: Fix for Issue 2399. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: supressions Created 8 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 | « client/tests/client/html/TypedArrays4Test.dart ('k') | lib/dom/scripts/systemhtml.py » ('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('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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 599
600 // From List<int>: 600 // From List<int>:
601 601
602 void sort(int compare(int a, int b)) { 602 void sort(int compare(int a, int b)) {
603 throw new UnsupportedOperationException("Cannot sort immutable List."); 603 throw new UnsupportedOperationException("Cannot sort immutable List.");
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]) {
610 _Lists.lastIndexOf(this, element, start); 610 if (start === null) start = length - 1;
611 return _Lists.lastIndexOf(this, element, start);
612 }
611 613
612 int last() => this[length - 1]; 614 int last() => this[length - 1];
613 615
616 int removeLast() {
617 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
618 }
619
614 // FIXME: implement these. 620 // FIXME: implement these.
615 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 621 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
616 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 622 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
617 } 623 }
624
618 void removeRange(int start, int rangeLength) { 625 void removeRange(int start, int rangeLength) {
619 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 626 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
620 } 627 }
628
621 void insertRange(int start, int rangeLength, [int initialValue]) { 629 void insertRange(int start, int rangeLength, [int initialValue]) {
622 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 630 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
623 } 631 }
632
624 List<int> getRange(int start, int rangeLength) => 633 List<int> getRange(int start, int rangeLength) =>
625 _Lists.getRange(this, start, rangeLength, <int>[]); 634 _Lists.getRange(this, start, rangeLength, <int>[]);
626 635
627 // -- end List<int> mixins. 636 // -- end List<int> mixins.
628 } 637 }
629 638
630 class _CanvasRenderingContextJs extends _DOMTypeJs implements CanvasRenderingCon text native "*CanvasRenderingContext" { 639 class _CanvasRenderingContextJs extends _DOMTypeJs implements CanvasRenderingCon text native "*CanvasRenderingContext" {
631 640
632 final _HTMLCanvasElementJs canvas; 641 final _HTMLCanvasElementJs canvas;
633 } 642 }
(...skipping 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after
2369 2378
2370 // From List<num>: 2379 // From List<num>:
2371 2380
2372 void sort(int compare(num a, num b)) { 2381 void sort(int compare(num a, num b)) {
2373 throw new UnsupportedOperationException("Cannot sort immutable List."); 2382 throw new UnsupportedOperationException("Cannot sort immutable List.");
2374 } 2383 }
2375 2384
2376 int indexOf(num element, [int start = 0]) => 2385 int indexOf(num element, [int start = 0]) =>
2377 _Lists.indexOf(this, element, start, this.length); 2386 _Lists.indexOf(this, element, start, this.length);
2378 2387
2379 int lastIndexOf(num element, [int start = 0]) => 2388 int lastIndexOf(num element, [int start]) {
2380 _Lists.lastIndexOf(this, element, start); 2389 if (start === null) start = length - 1;
2390 return _Lists.lastIndexOf(this, element, start);
2391 }
2381 2392
2382 num last() => this[length - 1]; 2393 num last() => this[length - 1];
2383 2394
2395 num removeLast() {
2396 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
2397 }
2398
2384 // FIXME: implement these. 2399 // FIXME: implement these.
2385 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { 2400 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) {
2386 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 2401 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
2387 } 2402 }
2403
2388 void removeRange(int start, int rangeLength) { 2404 void removeRange(int start, int rangeLength) {
2389 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 2405 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
2390 } 2406 }
2407
2391 void insertRange(int start, int rangeLength, [num initialValue]) { 2408 void insertRange(int start, int rangeLength, [num initialValue]) {
2392 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 2409 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
2393 } 2410 }
2411
2394 List<num> getRange(int start, int rangeLength) => 2412 List<num> getRange(int start, int rangeLength) =>
2395 _Lists.getRange(this, start, rangeLength, <num>[]); 2413 _Lists.getRange(this, start, rangeLength, <num>[]);
2396 2414
2397 // -- end List<num> mixins. 2415 // -- end List<num> mixins.
2398 2416
2399 void setElements(Object array, [int offset = null]) native 'set'; 2417 void setElements(Object array, [int offset = null]) native 'set';
2400 2418
2401 _Float32ArrayJs subarray(int start, [int end = null]) native; 2419 _Float32ArrayJs subarray(int start, [int end = null]) native;
2402 } 2420 }
2403 2421
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2451 2469
2452 // From List<num>: 2470 // From List<num>:
2453 2471
2454 void sort(int compare(num a, num b)) { 2472 void sort(int compare(num a, num b)) {
2455 throw new UnsupportedOperationException("Cannot sort immutable List."); 2473 throw new UnsupportedOperationException("Cannot sort immutable List.");
2456 } 2474 }
2457 2475
2458 int indexOf(num element, [int start = 0]) => 2476 int indexOf(num element, [int start = 0]) =>
2459 _Lists.indexOf(this, element, start, this.length); 2477 _Lists.indexOf(this, element, start, this.length);
2460 2478
2461 int lastIndexOf(num element, [int start = 0]) => 2479 int lastIndexOf(num element, [int start]) {
2462 _Lists.lastIndexOf(this, element, start); 2480 if (start === null) start = length - 1;
2481 return _Lists.lastIndexOf(this, element, start);
2482 }
2463 2483
2464 num last() => this[length - 1]; 2484 num last() => this[length - 1];
2465 2485
2486 num removeLast() {
2487 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
2488 }
2489
2466 // FIXME: implement these. 2490 // FIXME: implement these.
2467 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { 2491 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) {
2468 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 2492 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
2469 } 2493 }
2494
2470 void removeRange(int start, int rangeLength) { 2495 void removeRange(int start, int rangeLength) {
2471 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 2496 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
2472 } 2497 }
2498
2473 void insertRange(int start, int rangeLength, [num initialValue]) { 2499 void insertRange(int start, int rangeLength, [num initialValue]) {
2474 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 2500 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
2475 } 2501 }
2502
2476 List<num> getRange(int start, int rangeLength) => 2503 List<num> getRange(int start, int rangeLength) =>
2477 _Lists.getRange(this, start, rangeLength, <num>[]); 2504 _Lists.getRange(this, start, rangeLength, <num>[]);
2478 2505
2479 // -- end List<num> mixins. 2506 // -- end List<num> mixins.
2480 2507
2481 void setElements(Object array, [int offset = null]) native 'set'; 2508 void setElements(Object array, [int offset = null]) native 'set';
2482 2509
2483 _Float64ArrayJs subarray(int start, [int end = null]) native; 2510 _Float64ArrayJs subarray(int start, [int end = null]) native;
2484 } 2511 }
2485 2512
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 2777
2751 // From List<Node>: 2778 // From List<Node>:
2752 2779
2753 void sort(int compare(Node a, Node b)) { 2780 void sort(int compare(Node a, Node b)) {
2754 throw new UnsupportedOperationException("Cannot sort immutable List."); 2781 throw new UnsupportedOperationException("Cannot sort immutable List.");
2755 } 2782 }
2756 2783
2757 int indexOf(Node element, [int start = 0]) => 2784 int indexOf(Node element, [int start = 0]) =>
2758 _Lists.indexOf(this, element, start, this.length); 2785 _Lists.indexOf(this, element, start, this.length);
2759 2786
2760 int lastIndexOf(Node element, [int start = 0]) => 2787 int lastIndexOf(Node element, [int start]) {
2761 _Lists.lastIndexOf(this, element, start); 2788 if (start === null) start = length - 1;
2789 return _Lists.lastIndexOf(this, element, start);
2790 }
2762 2791
2763 Node last() => this[length - 1]; 2792 Node last() => this[length - 1];
2764 2793
2794 Node removeLast() {
2795 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
2796 }
2797
2765 // FIXME: implement these. 2798 // FIXME: implement these.
2766 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { 2799 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
2767 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 2800 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
2768 } 2801 }
2802
2769 void removeRange(int start, int rangeLength) { 2803 void removeRange(int start, int rangeLength) {
2770 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 2804 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
2771 } 2805 }
2806
2772 void insertRange(int start, int rangeLength, [Node initialValue]) { 2807 void insertRange(int start, int rangeLength, [Node initialValue]) {
2773 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 2808 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
2774 } 2809 }
2810
2775 List<Node> getRange(int start, int rangeLength) => 2811 List<Node> getRange(int start, int rangeLength) =>
2776 _Lists.getRange(this, start, rangeLength, <Node>[]); 2812 _Lists.getRange(this, start, rangeLength, <Node>[]);
2777 2813
2778 // -- end List<Node> mixins. 2814 // -- end List<Node> mixins.
2779 2815
2780 _NodeJs item(int index) native; 2816 _NodeJs item(int index) native;
2781 2817
2782 _NodeJs namedItem(String name) native; 2818 _NodeJs namedItem(String name) native;
2783 } 2819 }
2784 2820
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
4397 4433
4398 // From List<int>: 4434 // From List<int>:
4399 4435
4400 void sort(int compare(int a, int b)) { 4436 void sort(int compare(int a, int b)) {
4401 throw new UnsupportedOperationException("Cannot sort immutable List."); 4437 throw new UnsupportedOperationException("Cannot sort immutable List.");
4402 } 4438 }
4403 4439
4404 int indexOf(int element, [int start = 0]) => 4440 int indexOf(int element, [int start = 0]) =>
4405 _Lists.indexOf(this, element, start, this.length); 4441 _Lists.indexOf(this, element, start, this.length);
4406 4442
4407 int lastIndexOf(int element, [int start = 0]) => 4443 int lastIndexOf(int element, [int start]) {
4408 _Lists.lastIndexOf(this, element, start); 4444 if (start === null) start = length - 1;
4445 return _Lists.lastIndexOf(this, element, start);
4446 }
4409 4447
4410 int last() => this[length - 1]; 4448 int last() => this[length - 1];
4411 4449
4450 int removeLast() {
4451 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
4452 }
4453
4412 // FIXME: implement these. 4454 // FIXME: implement these.
4413 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 4455 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
4414 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 4456 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
4415 } 4457 }
4458
4416 void removeRange(int start, int rangeLength) { 4459 void removeRange(int start, int rangeLength) {
4417 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 4460 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
4418 } 4461 }
4462
4419 void insertRange(int start, int rangeLength, [int initialValue]) { 4463 void insertRange(int start, int rangeLength, [int initialValue]) {
4420 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 4464 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
4421 } 4465 }
4466
4422 List<int> getRange(int start, int rangeLength) => 4467 List<int> getRange(int start, int rangeLength) =>
4423 _Lists.getRange(this, start, rangeLength, <int>[]); 4468 _Lists.getRange(this, start, rangeLength, <int>[]);
4424 4469
4425 // -- end List<int> mixins. 4470 // -- end List<int> mixins.
4426 4471
4427 void setElements(Object array, [int offset = null]) native 'set'; 4472 void setElements(Object array, [int offset = null]) native 'set';
4428 4473
4429 _Int16ArrayJs subarray(int start, [int end = null]) native; 4474 _Int16ArrayJs subarray(int start, [int end = null]) native;
4430 } 4475 }
4431 4476
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
4479 4524
4480 // From List<int>: 4525 // From List<int>:
4481 4526
4482 void sort(int compare(int a, int b)) { 4527 void sort(int compare(int a, int b)) {
4483 throw new UnsupportedOperationException("Cannot sort immutable List."); 4528 throw new UnsupportedOperationException("Cannot sort immutable List.");
4484 } 4529 }
4485 4530
4486 int indexOf(int element, [int start = 0]) => 4531 int indexOf(int element, [int start = 0]) =>
4487 _Lists.indexOf(this, element, start, this.length); 4532 _Lists.indexOf(this, element, start, this.length);
4488 4533
4489 int lastIndexOf(int element, [int start = 0]) => 4534 int lastIndexOf(int element, [int start]) {
4490 _Lists.lastIndexOf(this, element, start); 4535 if (start === null) start = length - 1;
4536 return _Lists.lastIndexOf(this, element, start);
4537 }
4491 4538
4492 int last() => this[length - 1]; 4539 int last() => this[length - 1];
4493 4540
4541 int removeLast() {
4542 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
4543 }
4544
4494 // FIXME: implement these. 4545 // FIXME: implement these.
4495 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 4546 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
4496 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 4547 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
4497 } 4548 }
4549
4498 void removeRange(int start, int rangeLength) { 4550 void removeRange(int start, int rangeLength) {
4499 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 4551 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
4500 } 4552 }
4553
4501 void insertRange(int start, int rangeLength, [int initialValue]) { 4554 void insertRange(int start, int rangeLength, [int initialValue]) {
4502 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 4555 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
4503 } 4556 }
4557
4504 List<int> getRange(int start, int rangeLength) => 4558 List<int> getRange(int start, int rangeLength) =>
4505 _Lists.getRange(this, start, rangeLength, <int>[]); 4559 _Lists.getRange(this, start, rangeLength, <int>[]);
4506 4560
4507 // -- end List<int> mixins. 4561 // -- end List<int> mixins.
4508 4562
4509 void setElements(Object array, [int offset = null]) native 'set'; 4563 void setElements(Object array, [int offset = null]) native 'set';
4510 4564
4511 _Int32ArrayJs subarray(int start, [int end = null]) native; 4565 _Int32ArrayJs subarray(int start, [int end = null]) native;
4512 } 4566 }
4513 4567
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
4561 4615
4562 // From List<int>: 4616 // From List<int>:
4563 4617
4564 void sort(int compare(int a, int b)) { 4618 void sort(int compare(int a, int b)) {
4565 throw new UnsupportedOperationException("Cannot sort immutable List."); 4619 throw new UnsupportedOperationException("Cannot sort immutable List.");
4566 } 4620 }
4567 4621
4568 int indexOf(int element, [int start = 0]) => 4622 int indexOf(int element, [int start = 0]) =>
4569 _Lists.indexOf(this, element, start, this.length); 4623 _Lists.indexOf(this, element, start, this.length);
4570 4624
4571 int lastIndexOf(int element, [int start = 0]) => 4625 int lastIndexOf(int element, [int start]) {
4572 _Lists.lastIndexOf(this, element, start); 4626 if (start === null) start = length - 1;
4627 return _Lists.lastIndexOf(this, element, start);
4628 }
4573 4629
4574 int last() => this[length - 1]; 4630 int last() => this[length - 1];
4575 4631
4632 int removeLast() {
4633 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
4634 }
4635
4576 // FIXME: implement these. 4636 // FIXME: implement these.
4577 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 4637 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
4578 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 4638 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
4579 } 4639 }
4640
4580 void removeRange(int start, int rangeLength) { 4641 void removeRange(int start, int rangeLength) {
4581 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 4642 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
4582 } 4643 }
4644
4583 void insertRange(int start, int rangeLength, [int initialValue]) { 4645 void insertRange(int start, int rangeLength, [int initialValue]) {
4584 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 4646 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
4585 } 4647 }
4648
4586 List<int> getRange(int start, int rangeLength) => 4649 List<int> getRange(int start, int rangeLength) =>
4587 _Lists.getRange(this, start, rangeLength, <int>[]); 4650 _Lists.getRange(this, start, rangeLength, <int>[]);
4588 4651
4589 // -- end List<int> mixins. 4652 // -- end List<int> mixins.
4590 4653
4591 void setElements(Object array, [int offset = null]) native 'set'; 4654 void setElements(Object array, [int offset = null]) native 'set';
4592 4655
4593 _Int8ArrayJs subarray(int start, [int end = null]) native; 4656 _Int8ArrayJs subarray(int start, [int end = null]) native;
4594 } 4657 }
4595 4658
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
4796 4859
4797 // From List<String>: 4860 // From List<String>:
4798 4861
4799 void sort(int compare(String a, String b)) { 4862 void sort(int compare(String a, String b)) {
4800 throw new UnsupportedOperationException("Cannot sort immutable List."); 4863 throw new UnsupportedOperationException("Cannot sort immutable List.");
4801 } 4864 }
4802 4865
4803 int indexOf(String element, [int start = 0]) => 4866 int indexOf(String element, [int start = 0]) =>
4804 _Lists.indexOf(this, element, start, this.length); 4867 _Lists.indexOf(this, element, start, this.length);
4805 4868
4806 int lastIndexOf(String element, [int start = 0]) => 4869 int lastIndexOf(String element, [int start]) {
4807 _Lists.lastIndexOf(this, element, start); 4870 if (start === null) start = length - 1;
4871 return _Lists.lastIndexOf(this, element, start);
4872 }
4808 4873
4809 String last() => this[length - 1]; 4874 String last() => this[length - 1];
4810 4875
4876 String removeLast() {
4877 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
4878 }
4879
4811 // FIXME: implement these. 4880 // FIXME: implement these.
4812 void setRange(int start, int rangeLength, List<String> from, [int startFrom]) { 4881 void setRange(int start, int rangeLength, List<String> from, [int startFrom]) {
4813 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 4882 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
4814 } 4883 }
4884
4815 void removeRange(int start, int rangeLength) { 4885 void removeRange(int start, int rangeLength) {
4816 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 4886 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
4817 } 4887 }
4888
4818 void insertRange(int start, int rangeLength, [String initialValue]) { 4889 void insertRange(int start, int rangeLength, [String initialValue]) {
4819 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 4890 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
4820 } 4891 }
4892
4821 List<String> getRange(int start, int rangeLength) => 4893 List<String> getRange(int start, int rangeLength) =>
4822 _Lists.getRange(this, start, rangeLength, <String>[]); 4894 _Lists.getRange(this, start, rangeLength, <String>[]);
4823 4895
4824 // -- end List<String> mixins. 4896 // -- end List<String> mixins.
4825 4897
4826 void appendMedium(String newMedium) native; 4898 void appendMedium(String newMedium) native;
4827 4899
4828 void deleteMedium(String oldMedium) native; 4900 void deleteMedium(String oldMedium) native;
4829 4901
4830 String item(int index) native; 4902 String item(int index) native;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
5064 5136
5065 // From List<Node>: 5137 // From List<Node>:
5066 5138
5067 void sort(int compare(Node a, Node b)) { 5139 void sort(int compare(Node a, Node b)) {
5068 throw new UnsupportedOperationException("Cannot sort immutable List."); 5140 throw new UnsupportedOperationException("Cannot sort immutable List.");
5069 } 5141 }
5070 5142
5071 int indexOf(Node element, [int start = 0]) => 5143 int indexOf(Node element, [int start = 0]) =>
5072 _Lists.indexOf(this, element, start, this.length); 5144 _Lists.indexOf(this, element, start, this.length);
5073 5145
5074 int lastIndexOf(Node element, [int start = 0]) => 5146 int lastIndexOf(Node element, [int start]) {
5075 _Lists.lastIndexOf(this, element, start); 5147 if (start === null) start = length - 1;
5148 return _Lists.lastIndexOf(this, element, start);
5149 }
5076 5150
5077 Node last() => this[length - 1]; 5151 Node last() => this[length - 1];
5078 5152
5153 Node removeLast() {
5154 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
5155 }
5156
5079 // FIXME: implement these. 5157 // FIXME: implement these.
5080 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { 5158 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
5081 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 5159 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
5082 } 5160 }
5161
5083 void removeRange(int start, int rangeLength) { 5162 void removeRange(int start, int rangeLength) {
5084 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 5163 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
5085 } 5164 }
5165
5086 void insertRange(int start, int rangeLength, [Node initialValue]) { 5166 void insertRange(int start, int rangeLength, [Node initialValue]) {
5087 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 5167 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
5088 } 5168 }
5169
5089 List<Node> getRange(int start, int rangeLength) => 5170 List<Node> getRange(int start, int rangeLength) =>
5090 _Lists.getRange(this, start, rangeLength, <Node>[]); 5171 _Lists.getRange(this, start, rangeLength, <Node>[]);
5091 5172
5092 // -- end List<Node> mixins. 5173 // -- end List<Node> mixins.
5093 5174
5094 _NodeJs getNamedItem(String name) native; 5175 _NodeJs getNamedItem(String name) native;
5095 5176
5096 _NodeJs getNamedItemNS(String namespaceURI, String localName) native; 5177 _NodeJs getNamedItemNS(String namespaceURI, String localName) native;
5097 5178
5098 _NodeJs item(int index) native; 5179 _NodeJs item(int index) native;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
5373 5454
5374 // From List<Node>: 5455 // From List<Node>:
5375 5456
5376 void sort(int compare(Node a, Node b)) { 5457 void sort(int compare(Node a, Node b)) {
5377 throw new UnsupportedOperationException("Cannot sort immutable List."); 5458 throw new UnsupportedOperationException("Cannot sort immutable List.");
5378 } 5459 }
5379 5460
5380 int indexOf(Node element, [int start = 0]) => 5461 int indexOf(Node element, [int start = 0]) =>
5381 _Lists.indexOf(this, element, start, this.length); 5462 _Lists.indexOf(this, element, start, this.length);
5382 5463
5383 int lastIndexOf(Node element, [int start = 0]) => 5464 int lastIndexOf(Node element, [int start]) {
5384 _Lists.lastIndexOf(this, element, start); 5465 if (start === null) start = length - 1;
5466 return _Lists.lastIndexOf(this, element, start);
5467 }
5385 5468
5386 Node last() => this[length - 1]; 5469 Node last() => this[length - 1];
5387 5470
5471 Node removeLast() {
5472 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
5473 }
5474
5388 // FIXME: implement these. 5475 // FIXME: implement these.
5389 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { 5476 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
5390 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 5477 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
5391 } 5478 }
5479
5392 void removeRange(int start, int rangeLength) { 5480 void removeRange(int start, int rangeLength) {
5393 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 5481 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
5394 } 5482 }
5483
5395 void insertRange(int start, int rangeLength, [Node initialValue]) { 5484 void insertRange(int start, int rangeLength, [Node initialValue]) {
5396 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 5485 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
5397 } 5486 }
5487
5398 List<Node> getRange(int start, int rangeLength) => 5488 List<Node> getRange(int start, int rangeLength) =>
5399 _Lists.getRange(this, start, rangeLength, <Node>[]); 5489 _Lists.getRange(this, start, rangeLength, <Node>[]);
5400 5490
5401 // -- end List<Node> mixins. 5491 // -- end List<Node> mixins.
5402 5492
5403 _NodeJs item(int index) native; 5493 _NodeJs item(int index) native;
5404 } 5494 }
5405 5495
5406 class _NodeSelectorJs extends _DOMTypeJs implements NodeSelector native "*NodeSe lector" { 5496 class _NodeSelectorJs extends _DOMTypeJs implements NodeSelector native "*NodeSe lector" {
5407 5497
(...skipping 4132 matching lines...) Expand 10 before | Expand all | Expand 10 after
9540 9630
9541 // From List<StyleSheet>: 9631 // From List<StyleSheet>:
9542 9632
9543 void sort(int compare(StyleSheet a, StyleSheet b)) { 9633 void sort(int compare(StyleSheet a, StyleSheet b)) {
9544 throw new UnsupportedOperationException("Cannot sort immutable List."); 9634 throw new UnsupportedOperationException("Cannot sort immutable List.");
9545 } 9635 }
9546 9636
9547 int indexOf(StyleSheet element, [int start = 0]) => 9637 int indexOf(StyleSheet element, [int start = 0]) =>
9548 _Lists.indexOf(this, element, start, this.length); 9638 _Lists.indexOf(this, element, start, this.length);
9549 9639
9550 int lastIndexOf(StyleSheet element, [int start = 0]) => 9640 int lastIndexOf(StyleSheet element, [int start]) {
9551 _Lists.lastIndexOf(this, element, start); 9641 if (start === null) start = length - 1;
9642 return _Lists.lastIndexOf(this, element, start);
9643 }
9552 9644
9553 StyleSheet last() => this[length - 1]; 9645 StyleSheet last() => this[length - 1];
9554 9646
9647 StyleSheet removeLast() {
9648 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
9649 }
9650
9555 // FIXME: implement these. 9651 // FIXME: implement these.
9556 void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFro m]) { 9652 void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFro m]) {
9557 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 9653 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
9558 } 9654 }
9655
9559 void removeRange(int start, int rangeLength) { 9656 void removeRange(int start, int rangeLength) {
9560 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 9657 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
9561 } 9658 }
9659
9562 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { 9660 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) {
9563 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 9661 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
9564 } 9662 }
9663
9565 List<StyleSheet> getRange(int start, int rangeLength) => 9664 List<StyleSheet> getRange(int start, int rangeLength) =>
9566 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]); 9665 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]);
9567 9666
9568 // -- end List<StyleSheet> mixins. 9667 // -- end List<StyleSheet> mixins.
9569 9668
9570 _StyleSheetJs item(int index) native; 9669 _StyleSheetJs item(int index) native;
9571 } 9670 }
9572 9671
9573 class _TextJs extends _CharacterDataJs implements Text native "*Text" { 9672 class _TextJs extends _CharacterDataJs implements Text native "*Text" {
9574 9673
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
9792 9891
9793 // From List<Touch>: 9892 // From List<Touch>:
9794 9893
9795 void sort(int compare(Touch a, Touch b)) { 9894 void sort(int compare(Touch a, Touch b)) {
9796 throw new UnsupportedOperationException("Cannot sort immutable List."); 9895 throw new UnsupportedOperationException("Cannot sort immutable List.");
9797 } 9896 }
9798 9897
9799 int indexOf(Touch element, [int start = 0]) => 9898 int indexOf(Touch element, [int start = 0]) =>
9800 _Lists.indexOf(this, element, start, this.length); 9899 _Lists.indexOf(this, element, start, this.length);
9801 9900
9802 int lastIndexOf(Touch element, [int start = 0]) => 9901 int lastIndexOf(Touch element, [int start]) {
9803 _Lists.lastIndexOf(this, element, start); 9902 if (start === null) start = length - 1;
9903 return _Lists.lastIndexOf(this, element, start);
9904 }
9804 9905
9805 Touch last() => this[length - 1]; 9906 Touch last() => this[length - 1];
9806 9907
9908 Touch removeLast() {
9909 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
9910 }
9911
9807 // FIXME: implement these. 9912 // FIXME: implement these.
9808 void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) { 9913 void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) {
9809 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 9914 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
9810 } 9915 }
9916
9811 void removeRange(int start, int rangeLength) { 9917 void removeRange(int start, int rangeLength) {
9812 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 9918 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
9813 } 9919 }
9920
9814 void insertRange(int start, int rangeLength, [Touch initialValue]) { 9921 void insertRange(int start, int rangeLength, [Touch initialValue]) {
9815 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 9922 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
9816 } 9923 }
9924
9817 List<Touch> getRange(int start, int rangeLength) => 9925 List<Touch> getRange(int start, int rangeLength) =>
9818 _Lists.getRange(this, start, rangeLength, <Touch>[]); 9926 _Lists.getRange(this, start, rangeLength, <Touch>[]);
9819 9927
9820 // -- end List<Touch> mixins. 9928 // -- end List<Touch> mixins.
9821 9929
9822 _TouchJs item(int index) native; 9930 _TouchJs item(int index) native;
9823 } 9931 }
9824 9932
9825 class _TrackEventJs extends _EventJs implements TrackEvent native "*TrackEvent" { 9933 class _TrackEventJs extends _EventJs implements TrackEvent native "*TrackEvent" {
9826 9934
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
9927 10035
9928 // From List<int>: 10036 // From List<int>:
9929 10037
9930 void sort(int compare(int a, int b)) { 10038 void sort(int compare(int a, int b)) {
9931 throw new UnsupportedOperationException("Cannot sort immutable List."); 10039 throw new UnsupportedOperationException("Cannot sort immutable List.");
9932 } 10040 }
9933 10041
9934 int indexOf(int element, [int start = 0]) => 10042 int indexOf(int element, [int start = 0]) =>
9935 _Lists.indexOf(this, element, start, this.length); 10043 _Lists.indexOf(this, element, start, this.length);
9936 10044
9937 int lastIndexOf(int element, [int start = 0]) => 10045 int lastIndexOf(int element, [int start]) {
9938 _Lists.lastIndexOf(this, element, start); 10046 if (start === null) start = length - 1;
10047 return _Lists.lastIndexOf(this, element, start);
10048 }
9939 10049
9940 int last() => this[length - 1]; 10050 int last() => this[length - 1];
9941 10051
10052 int removeLast() {
10053 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
10054 }
10055
9942 // FIXME: implement these. 10056 // FIXME: implement these.
9943 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 10057 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
9944 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 10058 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
9945 } 10059 }
10060
9946 void removeRange(int start, int rangeLength) { 10061 void removeRange(int start, int rangeLength) {
9947 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 10062 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
9948 } 10063 }
10064
9949 void insertRange(int start, int rangeLength, [int initialValue]) { 10065 void insertRange(int start, int rangeLength, [int initialValue]) {
9950 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 10066 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
9951 } 10067 }
10068
9952 List<int> getRange(int start, int rangeLength) => 10069 List<int> getRange(int start, int rangeLength) =>
9953 _Lists.getRange(this, start, rangeLength, <int>[]); 10070 _Lists.getRange(this, start, rangeLength, <int>[]);
9954 10071
9955 // -- end List<int> mixins. 10072 // -- end List<int> mixins.
9956 10073
9957 void setElements(Object array, [int offset = null]) native 'set'; 10074 void setElements(Object array, [int offset = null]) native 'set';
9958 10075
9959 _Uint16ArrayJs subarray(int start, [int end = null]) native; 10076 _Uint16ArrayJs subarray(int start, [int end = null]) native;
9960 } 10077 }
9961 10078
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
10009 10126
10010 // From List<int>: 10127 // From List<int>:
10011 10128
10012 void sort(int compare(int a, int b)) { 10129 void sort(int compare(int a, int b)) {
10013 throw new UnsupportedOperationException("Cannot sort immutable List."); 10130 throw new UnsupportedOperationException("Cannot sort immutable List.");
10014 } 10131 }
10015 10132
10016 int indexOf(int element, [int start = 0]) => 10133 int indexOf(int element, [int start = 0]) =>
10017 _Lists.indexOf(this, element, start, this.length); 10134 _Lists.indexOf(this, element, start, this.length);
10018 10135
10019 int lastIndexOf(int element, [int start = 0]) => 10136 int lastIndexOf(int element, [int start]) {
10020 _Lists.lastIndexOf(this, element, start); 10137 if (start === null) start = length - 1;
10138 return _Lists.lastIndexOf(this, element, start);
10139 }
10021 10140
10022 int last() => this[length - 1]; 10141 int last() => this[length - 1];
10023 10142
10143 int removeLast() {
10144 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
10145 }
10146
10024 // FIXME: implement these. 10147 // FIXME: implement these.
10025 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 10148 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
10026 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 10149 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
10027 } 10150 }
10151
10028 void removeRange(int start, int rangeLength) { 10152 void removeRange(int start, int rangeLength) {
10029 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 10153 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
10030 } 10154 }
10155
10031 void insertRange(int start, int rangeLength, [int initialValue]) { 10156 void insertRange(int start, int rangeLength, [int initialValue]) {
10032 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 10157 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
10033 } 10158 }
10159
10034 List<int> getRange(int start, int rangeLength) => 10160 List<int> getRange(int start, int rangeLength) =>
10035 _Lists.getRange(this, start, rangeLength, <int>[]); 10161 _Lists.getRange(this, start, rangeLength, <int>[]);
10036 10162
10037 // -- end List<int> mixins. 10163 // -- end List<int> mixins.
10038 10164
10039 void setElements(Object array, [int offset = null]) native 'set'; 10165 void setElements(Object array, [int offset = null]) native 'set';
10040 10166
10041 _Uint32ArrayJs subarray(int start, [int end = null]) native; 10167 _Uint32ArrayJs subarray(int start, [int end = null]) native;
10042 } 10168 }
10043 10169
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
10091 10217
10092 // From List<int>: 10218 // From List<int>:
10093 10219
10094 void sort(int compare(int a, int b)) { 10220 void sort(int compare(int a, int b)) {
10095 throw new UnsupportedOperationException("Cannot sort immutable List."); 10221 throw new UnsupportedOperationException("Cannot sort immutable List.");
10096 } 10222 }
10097 10223
10098 int indexOf(int element, [int start = 0]) => 10224 int indexOf(int element, [int start = 0]) =>
10099 _Lists.indexOf(this, element, start, this.length); 10225 _Lists.indexOf(this, element, start, this.length);
10100 10226
10101 int lastIndexOf(int element, [int start = 0]) => 10227 int lastIndexOf(int element, [int start]) {
10102 _Lists.lastIndexOf(this, element, start); 10228 if (start === null) start = length - 1;
10229 return _Lists.lastIndexOf(this, element, start);
10230 }
10103 10231
10104 int last() => this[length - 1]; 10232 int last() => this[length - 1];
10105 10233
10234 int removeLast() {
10235 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
10236 }
10237
10106 // FIXME: implement these. 10238 // FIXME: implement these.
10107 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 10239 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
10108 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 10240 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
10109 } 10241 }
10242
10110 void removeRange(int start, int rangeLength) { 10243 void removeRange(int start, int rangeLength) {
10111 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 10244 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
10112 } 10245 }
10246
10113 void insertRange(int start, int rangeLength, [int initialValue]) { 10247 void insertRange(int start, int rangeLength, [int initialValue]) {
10114 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 10248 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
10115 } 10249 }
10250
10116 List<int> getRange(int start, int rangeLength) => 10251 List<int> getRange(int start, int rangeLength) =>
10117 _Lists.getRange(this, start, rangeLength, <int>[]); 10252 _Lists.getRange(this, start, rangeLength, <int>[]);
10118 10253
10119 // -- end List<int> mixins. 10254 // -- end List<int> mixins.
10120 10255
10121 void setElements(Object array, [int offset = null]) native 'set'; 10256 void setElements(Object array, [int offset = null]) native 'set';
10122 10257
10123 _Uint8ArrayJs subarray(int start, [int end = null]) native; 10258 _Uint8ArrayJs subarray(int start, [int end = null]) native;
10124 } 10259 }
10125 10260
(...skipping 14646 matching lines...) Expand 10 before | Expand all | Expand 10 after
24772 if (length < 0) throw new IllegalArgumentException('length'); 24907 if (length < 0) throw new IllegalArgumentException('length');
24773 if (start < 0) throw new IndexOutOfRangeException(start); 24908 if (start < 0) throw new IndexOutOfRangeException(start);
24774 int end = start + length; 24909 int end = start + length;
24775 if (end > a.length) throw new IndexOutOfRangeException(end); 24910 if (end > a.length) throw new IndexOutOfRangeException(end);
24776 for (int i = start; i < end; i++) { 24911 for (int i = start; i < end; i++) {
24777 accumulator.add(a[i]); 24912 accumulator.add(a[i]);
24778 } 24913 }
24779 return accumulator; 24914 return accumulator;
24780 } 24915 }
24781 } 24916 }
OLDNEW
« no previous file with comments | « client/tests/client/html/TypedArrays4Test.dart ('k') | lib/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698