| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class CanvasPixelArrayWrappingImplementation extends DOMWrapperBase implements C
anvasPixelArray { | 7 class CanvasPixelArrayWrappingImplementation extends DOMWrapperBase implements C
anvasPixelArray { |
| 8 CanvasPixelArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 8 CanvasPixelArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 9 |
| 10 int get length() { return _ptr.length; } | 10 int get length() { return _ptr.length; } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 int last() { | 57 int last() { |
| 58 return this[length - 1]; | 58 return this[length - 1]; |
| 59 } | 59 } |
| 60 | 60 |
| 61 void forEach(void f(int element)) { | 61 void forEach(void f(int element)) { |
| 62 _Collections.forEach(this, f); | 62 _Collections.forEach(this, f); |
| 63 } | 63 } |
| 64 | 64 |
| 65 Collection map(f(int element)) { |
| 66 return _Collections.map(this, [], f); |
| 67 } |
| 68 |
| 65 Collection<int> filter(bool f(int element)) { | 69 Collection<int> filter(bool f(int element)) { |
| 66 return _Collections.filter(this, new List<int>(), f); | 70 return _Collections.filter(this, new List<int>(), f); |
| 67 } | 71 } |
| 68 | 72 |
| 69 bool every(bool f(int element)) { | 73 bool every(bool f(int element)) { |
| 70 return _Collections.every(this, f); | 74 return _Collections.every(this, f); |
| 71 } | 75 } |
| 72 | 76 |
| 73 bool some(bool f(int element)) { | 77 bool some(bool f(int element)) { |
| 74 return _Collections.some(this, f); | 78 return _Collections.some(this, f); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 91 } | 95 } |
| 92 | 96 |
| 93 bool isEmpty() { | 97 bool isEmpty() { |
| 94 return length == 0; | 98 return length == 0; |
| 95 } | 99 } |
| 96 | 100 |
| 97 Iterator<int> iterator() { | 101 Iterator<int> iterator() { |
| 98 return new _FixedSizeListIterator<int>(this); | 102 return new _FixedSizeListIterator<int>(this); |
| 99 } | 103 } |
| 100 } | 104 } |
| OLD | NEW |