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

Side by Side Diff: client/dom/generated/src/wrapping/_TouchListWrappingImplementation.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 _TouchListWrappingImplementation extends DOMWrapperBase implements TouchLi st { 7 class _TouchListWrappingImplementation extends DOMWrapperBase implements TouchLi st {
8 _TouchListWrappingImplementation() : super() {} 8 _TouchListWrappingImplementation() : super() {}
9 9
10 static create__TouchListWrappingImplementation() native { 10 static create__TouchListWrappingImplementation() native {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 Touch last() { 61 Touch last() {
62 return this[length - 1]; 62 return this[length - 1];
63 } 63 }
64 64
65 void forEach(void f(Touch element)) { 65 void forEach(void f(Touch element)) {
66 _Collections.forEach(this, f); 66 _Collections.forEach(this, f);
67 } 67 }
68 68
69 Collection map(f(Touch element)) {
70 return _Collections.map(this, [], f);
71 }
72
69 Collection<Touch> filter(bool f(Touch element)) { 73 Collection<Touch> filter(bool f(Touch element)) {
70 return _Collections.filter(this, new List<Touch>(), f); 74 return _Collections.filter(this, new List<Touch>(), f);
71 } 75 }
72 76
73 bool every(bool f(Touch element)) { 77 bool every(bool f(Touch element)) {
74 return _Collections.every(this, f); 78 return _Collections.every(this, f);
75 } 79 }
76 80
77 bool some(bool f(Touch element)) { 81 bool some(bool f(Touch element)) {
78 return _Collections.some(this, f); 82 return _Collections.some(this, f);
(...skipping 23 matching lines...) Expand all
102 return new _FixedSizeListIterator<Touch>(this); 106 return new _FixedSizeListIterator<Touch>(this);
103 } 107 }
104 108
105 Touch item(int index) { 109 Touch item(int index) {
106 return _item(this, index); 110 return _item(this, index);
107 } 111 }
108 static Touch _item(receiver, index) native; 112 static Touch _item(receiver, index) native;
109 113
110 String get typeName() { return "TouchList"; } 114 String get typeName() { return "TouchList"; }
111 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698