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

Side by Side Diff: client/html/generated/src/wrapping/_TouchListWrappingImplementation.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 TouchListWrappingImplementation extends DOMWrapperBase implements TouchLis t { 7 class TouchListWrappingImplementation extends DOMWrapperBase implements TouchLis t {
8 TouchListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 8 TouchListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9 9
10 int get length() { return _ptr.length; } 10 int get length() { return _ptr.length; }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 throw new UnsupportedOperationException("Cannot removeLast on immutable List ."); 54 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
55 } 55 }
56 56
57 Touch last() { 57 Touch last() {
58 return this[length - 1]; 58 return this[length - 1];
59 } 59 }
60 60
61 void forEach(void f(Touch element)) { 61 void forEach(void f(Touch element)) {
62 _Collections.forEach(this, f); 62 _Collections.forEach(this, f);
63 } 63 }
64
65 Collection map(f(Touch element)) {
66 return _Collections.map(this, [], f);
67 }
64 68
65 Collection<Touch> filter(bool f(Touch element)) { 69 Collection<Touch> filter(bool f(Touch element)) {
66 return _Collections.filter(this, new List<Touch>(), f); 70 return _Collections.filter(this, new List<Touch>(), f);
67 } 71 }
68 72
69 bool every(bool f(Touch element)) { 73 bool every(bool f(Touch element)) {
70 return _Collections.every(this, f); 74 return _Collections.every(this, f);
71 } 75 }
72 76
73 bool some(bool f(Touch element)) { 77 bool some(bool f(Touch element)) {
(...skipping 21 matching lines...) Expand all
95 } 99 }
96 100
97 Iterator<Touch> iterator() { 101 Iterator<Touch> iterator() {
98 return new _FixedSizeListIterator<Touch>(this); 102 return new _FixedSizeListIterator<Touch>(this);
99 } 103 }
100 104
101 Touch item(int index) { 105 Touch item(int index) {
102 return LevelDom.wrapTouch(_ptr.item(index)); 106 return LevelDom.wrapTouch(_ptr.item(index));
103 } 107 }
104 } 108 }
OLDNEW
« no previous file with comments | « client/html/generated/src/wrapping/_StyleSheetListWrappingImplementation.dart ('k') | client/html/release/htmlimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698