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

Unified Diff: client/dom/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.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, 12 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 side-by-side diff with in-line comments
Download patch
Index: client/dom/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.dart
diff --git a/client/dom/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.dart b/client/dom/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.dart
index 6dc4ec3a48975ded137d4d20dccbbd07ca78d80b..baedc034d02936ddcfc5c21c378e9e38261758e7 100644
--- a/client/dom/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.dart
+++ b/client/dom/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.dart
@@ -67,6 +67,10 @@ class _CanvasPixelArrayWrappingImplementation extends DOMWrapperBase implements
_Collections.forEach(this, f);
}
+ Collection map(f(int element)) {
+ return _Collections.map(this, [], f);
+ }
+
Collection<int> filter(bool f(int element)) {
return _Collections.filter(this, new List<int>(), f);
}
« no previous file with comments | « client/dom/frog/dom_frog.dart ('k') | client/dom/generated/src/wrapping/_Float32ArrayWrappingImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698