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

Side by Side Diff: client/dom/generated/src/wrapping/_MediaListWrappingImplementation.dart

Issue 9114026: Add map to dart:dom collections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: x Created 8 years, 11 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
OLDNEW
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 MediaLi st { 7 class _MediaListWrappingImplementation extends DOMWrapperBase implements MediaLi st {
8 _MediaListWrappingImplementation() : super() {} 8 _MediaListWrappingImplementation() : super() {}
9 9
10 static create__MediaListWrappingImplementation() native { 10 static create__MediaListWrappingImplementation() native {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 String last() { 67 String last() {
68 return this[length - 1]; 68 return this[length - 1];
69 } 69 }
70 70
71 void forEach(void f(String element)) { 71 void forEach(void f(String element)) {
72 _Collections.forEach(this, f); 72 _Collections.forEach(this, f);
73 } 73 }
74 74
75 Collection map(f(String element)) {
76 return _Collections.map(this, [], f);
77 }
78
75 Collection<String> filter(bool f(String element)) { 79 Collection<String> filter(bool f(String element)) {
76 return _Collections.filter(this, new List<String>(), f); 80 return _Collections.filter(this, new List<String>(), f);
77 } 81 }
78 82
79 bool every(bool f(String element)) { 83 bool every(bool f(String element)) {
80 return _Collections.every(this, f); 84 return _Collections.every(this, f);
81 } 85 }
82 86
83 bool some(bool f(String element)) { 87 bool some(bool f(String element)) {
84 return _Collections.some(this, f); 88 return _Collections.some(this, f);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 124 }
121 static void _deleteMedium(receiver, oldMedium) native; 125 static void _deleteMedium(receiver, oldMedium) native;
122 126
123 String item(int index) { 127 String item(int index) {
124 return _item(this, index); 128 return _item(this, index);
125 } 129 }
126 static String _item(receiver, index) native; 130 static String _item(receiver, index) native;
127 131
128 String get typeName() { return "MediaList"; } 132 String get typeName() { return "MediaList"; }
129 } 133 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698