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

Side by Side Diff: client/html/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.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
« no previous file with comments | « no previous file | client/html/generated/src/wrapping/_MediaListWrappingImplementation.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CanvasPixelArrayWrappingImplementation extends DOMWrapperBase implements C anvasPixelArray { 7 class CanvasPixelArrayWrappingImplementation extends DOMWrapperBase implements C anvasPixelArray {
8 CanvasPixelArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 8 CanvasPixelArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9 9
10 int get length() { return _ptr.length; } 10 int get length() { return _ptr.length; }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 int last() { 57 int last() {
58 return this[length - 1]; 58 return this[length - 1];
59 } 59 }
60 60
61 void forEach(void f(int element)) { 61 void forEach(void f(int element)) {
62 _Collections.forEach(this, f); 62 _Collections.forEach(this, f);
63 } 63 }
64 64
65 Collection map(f(int element)) {
66 return _Collections.map(this, [], f);
67 }
68
65 Collection<int> filter(bool f(int element)) { 69 Collection<int> filter(bool f(int element)) {
66 return _Collections.filter(this, new List<int>(), f); 70 return _Collections.filter(this, new List<int>(), f);
67 } 71 }
68 72
69 bool every(bool f(int element)) { 73 bool every(bool f(int element)) {
70 return _Collections.every(this, f); 74 return _Collections.every(this, f);
71 } 75 }
72 76
73 bool some(bool f(int element)) { 77 bool some(bool f(int element)) {
74 return _Collections.some(this, f); 78 return _Collections.some(this, f);
(...skipping 16 matching lines...) Expand all
91 } 95 }
92 96
93 bool isEmpty() { 97 bool isEmpty() {
94 return length == 0; 98 return length == 0;
95 } 99 }
96 100
97 Iterator<int> iterator() { 101 Iterator<int> iterator() {
98 return new _FixedSizeListIterator<int>(this); 102 return new _FixedSizeListIterator<int>(this);
99 } 103 }
100 } 104 }
OLDNEW
« no previous file with comments | « no previous file | client/html/generated/src/wrapping/_MediaListWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698