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

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

Issue 9167006: Support map in generated dart:html files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698