| 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 MediaListWrappingImplementation extends DOMWrapperBase implements MediaLis
t { | 7 class MediaListWrappingImplementation extends DOMWrapperBase implements MediaLis
t { |
| 8 MediaListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 8 MediaListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 9 |
| 10 int get length() { return _ptr.length; } | 10 int get length() { return _ptr.length; } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 String last() { | 61 String last() { |
| 62 return this[length - 1]; | 62 return this[length - 1]; |
| 63 } | 63 } |
| 64 | 64 |
| 65 void forEach(void f(String element)) { | 65 void forEach(void f(String element)) { |
| 66 _Collections.forEach(this, f); | 66 _Collections.forEach(this, f); |
| 67 } | 67 } |
| 68 | 68 |
| 69 Collection map(f(String element)) { |
| 70 return _Collections.map(this, [], f); |
| 71 } |
| 72 |
| 69 Collection<String> filter(bool f(String element)) { | 73 Collection<String> filter(bool f(String element)) { |
| 70 return _Collections.filter(this, new List<String>(), f); | 74 return _Collections.filter(this, new List<String>(), f); |
| 71 } | 75 } |
| 72 | 76 |
| 73 bool every(bool f(String element)) { | 77 bool every(bool f(String element)) { |
| 74 return _Collections.every(this, f); | 78 return _Collections.every(this, f); |
| 75 } | 79 } |
| 76 | 80 |
| 77 bool some(bool f(String element)) { | 81 bool some(bool f(String element)) { |
| 78 return _Collections.some(this, f); | 82 return _Collections.some(this, f); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 109 | 113 |
| 110 void deleteMedium(String oldMedium) { | 114 void deleteMedium(String oldMedium) { |
| 111 _ptr.deleteMedium(oldMedium); | 115 _ptr.deleteMedium(oldMedium); |
| 112 return; | 116 return; |
| 113 } | 117 } |
| 114 | 118 |
| 115 String item(int index) { | 119 String item(int index) { |
| 116 return _ptr.item(index); | 120 return _ptr.item(index); |
| 117 } | 121 } |
| 118 } | 122 } |
| OLD | NEW |