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

Side by Side Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 12094103: Added MappedListIterable/Iterator to implement map() on Lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 library svg; 1 library svg;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:html_common'; 6 import 'dart:html_common';
7 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa me; 7 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa me;
8 import 'dart:_foreign_helper' show JS; 8 import 'dart:_foreign_helper' show JS;
9 // DO NOT EDIT 9 // DO NOT EDIT
10 // Auto-generated dart:svg library. 10 // Auto-generated dart:svg library.
(...skipping 2943 matching lines...) Expand 10 before | Expand all | Expand 10 after
2954 @DomName('SVGFilterElement.href') 2954 @DomName('SVGFilterElement.href')
2955 @DocsEditable 2955 @DocsEditable
2956 final AnimatedString href; 2956 final AnimatedString href;
2957 } 2957 }
2958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2959 // for details. All rights reserved. Use of this source code is governed by a 2959 // for details. All rights reserved. Use of this source code is governed by a
2960 // BSD-style license that can be found in the LICENSE file. 2960 // BSD-style license that can be found in the LICENSE file.
2961 2961
2962 2962
2963 @DomName('SVGFilterPrimitiveStandardAttributes') 2963 @DomName('SVGFilterPrimitiveStandardAttributes')
2964 abstract class FilterPrimitiveStandardAttributes implements Stylable { 2964 abstract class FilterPrimitiveStandardAttributes extends Stylable {
2965 2965
2966 AnimatedLength height; 2966 AnimatedLength height;
2967 2967
2968 AnimatedString result; 2968 AnimatedString result;
2969 2969
2970 AnimatedLength width; 2970 AnimatedLength width;
2971 2971
2972 AnimatedLength x; 2972 AnimatedLength x;
2973 2973
2974 AnimatedLength y; 2974 AnimatedLength y;
2975
2976 // From SVGStylable
2977
2978 AnimatedString $dom_svgClassName;
2979
2980 CssStyleDeclaration style;
2981
2982 CssValue getPresentationAttribute(String name);
2983 } 2975 }
2984 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2976 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2985 // for details. All rights reserved. Use of this source code is governed by a 2977 // for details. All rights reserved. Use of this source code is governed by a
2986 // BSD-style license that can be found in the LICENSE file. 2978 // BSD-style license that can be found in the LICENSE file.
2987 2979
2988 2980
2989 @DomName('SVGFitToViewBox') 2981 @DomName('SVGFitToViewBox')
2990 abstract class FitToViewBox { 2982 abstract class FitToViewBox {
2991 2983
2992 AnimatedPreserveAspectRatio preserveAspectRatio; 2984 AnimatedPreserveAspectRatio preserveAspectRatio;
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
3615 } 3607 }
3616 3608
3617 bool contains(Length element) => IterableMixinWorkaround.contains(this, elemen t); 3609 bool contains(Length element) => IterableMixinWorkaround.contains(this, elemen t);
3618 3610
3619 void forEach(void f(Length element)) => IterableMixinWorkaround.forEach(this, f); 3611 void forEach(void f(Length element)) => IterableMixinWorkaround.forEach(this, f);
3620 3612
3621 String join([String separator]) => 3613 String join([String separator]) =>
3622 IterableMixinWorkaround.joinList(this, separator); 3614 IterableMixinWorkaround.joinList(this, separator);
3623 3615
3624 Iterable map(f(Length element)) => 3616 Iterable map(f(Length element)) =>
3625 IterableMixinWorkaround.map(this, f); 3617 IterableMixinWorkaround.mapList(this, f);
3626 3618
3627 List mappedBy(f(Length element)) => 3619 List mappedBy(f(Length element)) =>
3628 IterableMixinWorkaround.mappedByList(this, f); 3620 IterableMixinWorkaround.mappedByList(this, f);
3629 3621
3630 Iterable<Length> where(bool f(Length element)) => 3622 Iterable<Length> where(bool f(Length element)) =>
3631 IterableMixinWorkaround.where(this, f); 3623 IterableMixinWorkaround.where(this, f);
3632 3624
3633 bool every(bool f(Length element)) => IterableMixinWorkaround.every(this, f); 3625 bool every(bool f(Length element)) => IterableMixinWorkaround.every(this, f);
3634 3626
3635 bool any(bool f(Length element)) => IterableMixinWorkaround.any(this, f); 3627 bool any(bool f(Length element)) => IterableMixinWorkaround.any(this, f);
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
4304 } 4296 }
4305 4297
4306 bool contains(Number element) => IterableMixinWorkaround.contains(this, elemen t); 4298 bool contains(Number element) => IterableMixinWorkaround.contains(this, elemen t);
4307 4299
4308 void forEach(void f(Number element)) => IterableMixinWorkaround.forEach(this, f); 4300 void forEach(void f(Number element)) => IterableMixinWorkaround.forEach(this, f);
4309 4301
4310 String join([String separator]) => 4302 String join([String separator]) =>
4311 IterableMixinWorkaround.joinList(this, separator); 4303 IterableMixinWorkaround.joinList(this, separator);
4312 4304
4313 Iterable map(f(Number element)) => 4305 Iterable map(f(Number element)) =>
4314 IterableMixinWorkaround.map(this, f); 4306 IterableMixinWorkaround.mapList(this, f);
4315 4307
4316 List mappedBy(f(Number element)) => 4308 List mappedBy(f(Number element)) =>
4317 IterableMixinWorkaround.mappedByList(this, f); 4309 IterableMixinWorkaround.mappedByList(this, f);
4318 4310
4319 Iterable<Number> where(bool f(Number element)) => 4311 Iterable<Number> where(bool f(Number element)) =>
4320 IterableMixinWorkaround.where(this, f); 4312 IterableMixinWorkaround.where(this, f);
4321 4313
4322 bool every(bool f(Number element)) => IterableMixinWorkaround.every(this, f); 4314 bool every(bool f(Number element)) => IterableMixinWorkaround.every(this, f);
4323 4315
4324 bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f); 4316 bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f);
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
5215 } 5207 }
5216 5208
5217 bool contains(PathSeg element) => IterableMixinWorkaround.contains(this, eleme nt); 5209 bool contains(PathSeg element) => IterableMixinWorkaround.contains(this, eleme nt);
5218 5210
5219 void forEach(void f(PathSeg element)) => IterableMixinWorkaround.forEach(this, f); 5211 void forEach(void f(PathSeg element)) => IterableMixinWorkaround.forEach(this, f);
5220 5212
5221 String join([String separator]) => 5213 String join([String separator]) =>
5222 IterableMixinWorkaround.joinList(this, separator); 5214 IterableMixinWorkaround.joinList(this, separator);
5223 5215
5224 Iterable map(f(PathSeg element)) => 5216 Iterable map(f(PathSeg element)) =>
5225 IterableMixinWorkaround.map(this, f); 5217 IterableMixinWorkaround.mapList(this, f);
5226 5218
5227 List mappedBy(f(PathSeg element)) => 5219 List mappedBy(f(PathSeg element)) =>
5228 IterableMixinWorkaround.mappedByList(this, f); 5220 IterableMixinWorkaround.mappedByList(this, f);
5229 5221
5230 Iterable<PathSeg> where(bool f(PathSeg element)) => 5222 Iterable<PathSeg> where(bool f(PathSeg element)) =>
5231 IterableMixinWorkaround.where(this, f); 5223 IterableMixinWorkaround.where(this, f);
5232 5224
5233 bool every(bool f(PathSeg element)) => IterableMixinWorkaround.every(this, f); 5225 bool every(bool f(PathSeg element)) => IterableMixinWorkaround.every(this, f);
5234 5226
5235 bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f); 5227 bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f);
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
6145 } 6137 }
6146 6138
6147 bool contains(String element) => IterableMixinWorkaround.contains(this, elemen t); 6139 bool contains(String element) => IterableMixinWorkaround.contains(this, elemen t);
6148 6140
6149 void forEach(void f(String element)) => IterableMixinWorkaround.forEach(this, f); 6141 void forEach(void f(String element)) => IterableMixinWorkaround.forEach(this, f);
6150 6142
6151 String join([String separator]) => 6143 String join([String separator]) =>
6152 IterableMixinWorkaround.joinList(this, separator); 6144 IterableMixinWorkaround.joinList(this, separator);
6153 6145
6154 Iterable map(f(String element)) => 6146 Iterable map(f(String element)) =>
6155 IterableMixinWorkaround.map(this, f); 6147 IterableMixinWorkaround.mapList(this, f);
6156 6148
6157 List mappedBy(f(String element)) => 6149 List mappedBy(f(String element)) =>
6158 IterableMixinWorkaround.mappedByList(this, f); 6150 IterableMixinWorkaround.mappedByList(this, f);
6159 6151
6160 Iterable<String> where(bool f(String element)) => 6152 Iterable<String> where(bool f(String element)) =>
6161 IterableMixinWorkaround.where(this, f); 6153 IterableMixinWorkaround.where(this, f);
6162 6154
6163 bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f); 6155 bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f);
6164 6156
6165 bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f); 6157 bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
6327 6319
6328 @DomName('SVGStringList.replaceItem') 6320 @DomName('SVGStringList.replaceItem')
6329 @DocsEditable 6321 @DocsEditable
6330 String replaceItem(String item, int index) native; 6322 String replaceItem(String item, int index) native;
6331 } 6323 }
6332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6324 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6333 // for details. All rights reserved. Use of this source code is governed by a 6325 // for details. All rights reserved. Use of this source code is governed by a
6334 // BSD-style license that can be found in the LICENSE file. 6326 // BSD-style license that can be found in the LICENSE file.
6335 6327
6336 6328
6329 @DocsEditable
6337 @DomName('SVGStylable') 6330 @DomName('SVGStylable')
6338 abstract class Stylable { 6331 class Stylable native "*SVGStylable" {
6339 6332
6340 AnimatedString $dom_svgClassName; 6333 @DomName('SVGStylable.className')
6334 @DocsEditable
6335 final AnimatedString className;
6341 6336
6342 CssStyleDeclaration style; 6337 @DomName('SVGStylable.style')
6338 @DocsEditable
6339 final CssStyleDeclaration style;
6343 6340
6344 CssValue getPresentationAttribute(String name); 6341 @DomName('SVGStylable.getPresentationAttribute')
6342 @DocsEditable
6343 CssValue getPresentationAttribute(String name) native;
6345 } 6344 }
6346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6347 // for details. All rights reserved. Use of this source code is governed by a 6346 // for details. All rights reserved. Use of this source code is governed by a
6348 // BSD-style license that can be found in the LICENSE file. 6347 // BSD-style license that can be found in the LICENSE file.
6349 6348
6350 6349
6351 @DocsEditable 6350 @DocsEditable
6352 @DomName('SVGStyleElement') 6351 @DomName('SVGStyleElement')
6353 class StyleElement extends SvgElement implements LangSpace native "*SVGStyleElem ent" { 6352 class StyleElement extends SvgElement implements LangSpace native "*SVGStyleElem ent" {
6354 6353
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
7370 } 7369 }
7371 7370
7372 bool contains(Transform element) => IterableMixinWorkaround.contains(this, ele ment); 7371 bool contains(Transform element) => IterableMixinWorkaround.contains(this, ele ment);
7373 7372
7374 void forEach(void f(Transform element)) => IterableMixinWorkaround.forEach(thi s, f); 7373 void forEach(void f(Transform element)) => IterableMixinWorkaround.forEach(thi s, f);
7375 7374
7376 String join([String separator]) => 7375 String join([String separator]) =>
7377 IterableMixinWorkaround.joinList(this, separator); 7376 IterableMixinWorkaround.joinList(this, separator);
7378 7377
7379 Iterable map(f(Transform element)) => 7378 Iterable map(f(Transform element)) =>
7380 IterableMixinWorkaround.map(this, f); 7379 IterableMixinWorkaround.mapList(this, f);
7381 7380
7382 List mappedBy(f(Transform element)) => 7381 List mappedBy(f(Transform element)) =>
7383 IterableMixinWorkaround.mappedByList(this, f); 7382 IterableMixinWorkaround.mappedByList(this, f);
7384 7383
7385 Iterable<Transform> where(bool f(Transform element)) => 7384 Iterable<Transform> where(bool f(Transform element)) =>
7386 IterableMixinWorkaround.where(this, f); 7385 IterableMixinWorkaround.where(this, f);
7387 7386
7388 bool every(bool f(Transform element)) => IterableMixinWorkaround.every(this, f ); 7387 bool every(bool f(Transform element)) => IterableMixinWorkaround.every(this, f );
7389 7388
7390 bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f); 7389 bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f);
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
7909 } 7908 }
7910 7909
7911 bool contains(ElementInstance element) => IterableMixinWorkaround.contains(thi s, element); 7910 bool contains(ElementInstance element) => IterableMixinWorkaround.contains(thi s, element);
7912 7911
7913 void forEach(void f(ElementInstance element)) => IterableMixinWorkaround.forEa ch(this, f); 7912 void forEach(void f(ElementInstance element)) => IterableMixinWorkaround.forEa ch(this, f);
7914 7913
7915 String join([String separator]) => 7914 String join([String separator]) =>
7916 IterableMixinWorkaround.joinList(this, separator); 7915 IterableMixinWorkaround.joinList(this, separator);
7917 7916
7918 Iterable map(f(ElementInstance element)) => 7917 Iterable map(f(ElementInstance element)) =>
7919 IterableMixinWorkaround.map(this, f); 7918 IterableMixinWorkaround.mapList(this, f);
7920 7919
7921 List mappedBy(f(ElementInstance element)) => 7920 List mappedBy(f(ElementInstance element)) =>
7922 IterableMixinWorkaround.mappedByList(this, f); 7921 IterableMixinWorkaround.mappedByList(this, f);
7923 7922
7924 Iterable<ElementInstance> where(bool f(ElementInstance element)) => 7923 Iterable<ElementInstance> where(bool f(ElementInstance element)) =>
7925 IterableMixinWorkaround.where(this, f); 7924 IterableMixinWorkaround.where(this, f);
7926 7925
7927 bool every(bool f(ElementInstance element)) => IterableMixinWorkaround.every(t his, f); 7926 bool every(bool f(ElementInstance element)) => IterableMixinWorkaround.every(t his, f);
7928 7927
7929 bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f); 7928 bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
8064 8063
8065 List<ElementInstance> getRange(int start, int rangeLength) => 8064 List<ElementInstance> getRange(int start, int rangeLength) =>
8066 Lists.getRange(this, start, rangeLength, <ElementInstance>[]); 8065 Lists.getRange(this, start, rangeLength, <ElementInstance>[]);
8067 8066
8068 // -- end List<ElementInstance> mixins. 8067 // -- end List<ElementInstance> mixins.
8069 8068
8070 @DomName('SVGElementInstanceList.item') 8069 @DomName('SVGElementInstanceList.item')
8071 @DocsEditable 8070 @DocsEditable
8072 ElementInstance item(int index) native; 8071 ElementInstance item(int index) native;
8073 } 8072 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698