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

Side by Side Diff: sdk/lib/svg/dartium/svg_dartium.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:nativewrappers'; 7 import 'dart:nativewrappers';
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated dart:svg library. 9 // Auto-generated dart:svg library.
10 10
(...skipping 3168 matching lines...) Expand 10 before | Expand all | Expand 10 after
3179 } 3179 }
3180 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3180 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3181 // for details. All rights reserved. Use of this source code is governed by a 3181 // for details. All rights reserved. Use of this source code is governed by a
3182 // BSD-style license that can be found in the LICENSE file. 3182 // BSD-style license that can be found in the LICENSE file.
3183 3183
3184 // WARNING: Do not edit - generated code. 3184 // WARNING: Do not edit - generated code.
3185 3185
3186 3186
3187 @DocsEditable 3187 @DocsEditable
3188 @DomName('SVGFilterPrimitiveStandardAttributes') 3188 @DomName('SVGFilterPrimitiveStandardAttributes')
3189 class FilterPrimitiveStandardAttributes extends NativeFieldWrapperClass1 impleme nts Stylable { 3189 class FilterPrimitiveStandardAttributes extends Stylable {
3190 FilterPrimitiveStandardAttributes.internal(); 3190 FilterPrimitiveStandardAttributes.internal() : super.internal();
3191 3191
3192 @DomName('SVGFilterPrimitiveStandardAttributes.height') 3192 @DomName('SVGFilterPrimitiveStandardAttributes.height')
3193 @DocsEditable 3193 @DocsEditable
3194 AnimatedLength get height native "SVGFilterPrimitiveStandardAttributes_height_ Getter"; 3194 AnimatedLength get height native "SVGFilterPrimitiveStandardAttributes_height_ Getter";
3195 3195
3196 @DomName('SVGFilterPrimitiveStandardAttributes.result') 3196 @DomName('SVGFilterPrimitiveStandardAttributes.result')
3197 @DocsEditable 3197 @DocsEditable
3198 AnimatedString get result native "SVGFilterPrimitiveStandardAttributes_result_ Getter"; 3198 AnimatedString get result native "SVGFilterPrimitiveStandardAttributes_result_ Getter";
3199 3199
3200 @DomName('SVGFilterPrimitiveStandardAttributes.width') 3200 @DomName('SVGFilterPrimitiveStandardAttributes.width')
3201 @DocsEditable 3201 @DocsEditable
3202 AnimatedLength get width native "SVGFilterPrimitiveStandardAttributes_width_Ge tter"; 3202 AnimatedLength get width native "SVGFilterPrimitiveStandardAttributes_width_Ge tter";
3203 3203
3204 @DomName('SVGFilterPrimitiveStandardAttributes.x') 3204 @DomName('SVGFilterPrimitiveStandardAttributes.x')
3205 @DocsEditable 3205 @DocsEditable
3206 AnimatedLength get x native "SVGFilterPrimitiveStandardAttributes_x_Getter"; 3206 AnimatedLength get x native "SVGFilterPrimitiveStandardAttributes_x_Getter";
3207 3207
3208 @DomName('SVGFilterPrimitiveStandardAttributes.y') 3208 @DomName('SVGFilterPrimitiveStandardAttributes.y')
3209 @DocsEditable 3209 @DocsEditable
3210 AnimatedLength get y native "SVGFilterPrimitiveStandardAttributes_y_Getter"; 3210 AnimatedLength get y native "SVGFilterPrimitiveStandardAttributes_y_Getter";
3211 3211
3212 @DomName('SVGFilterPrimitiveStandardAttributes.className')
3213 @DocsEditable
3214 AnimatedString get $dom_svgClassName native "SVGFilterPrimitiveStandardAttribu tes_className_Getter";
3215
3216 @DomName('SVGFilterPrimitiveStandardAttributes.style')
3217 @DocsEditable
3218 CssStyleDeclaration get style native "SVGFilterPrimitiveStandardAttributes_sty le_Getter";
3219
3220 @DomName('SVGFilterPrimitiveStandardAttributes.getPresentationAttribute')
3221 @DocsEditable
3222 CssValue getPresentationAttribute(String name) native "SVGFilterPrimitiveStand ardAttributes_getPresentationAttribute_Callback";
3223
3224 } 3212 }
3225 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3213 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3226 // for details. All rights reserved. Use of this source code is governed by a 3214 // for details. All rights reserved. Use of this source code is governed by a
3227 // BSD-style license that can be found in the LICENSE file. 3215 // BSD-style license that can be found in the LICENSE file.
3228 3216
3229 // WARNING: Do not edit - generated code. 3217 // WARNING: Do not edit - generated code.
3230 3218
3231 3219
3232 @DocsEditable 3220 @DocsEditable
3233 @DomName('SVGFitToViewBox') 3221 @DomName('SVGFitToViewBox')
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
3957 } 3945 }
3958 3946
3959 bool contains(Length element) => IterableMixinWorkaround.contains(this, elemen t); 3947 bool contains(Length element) => IterableMixinWorkaround.contains(this, elemen t);
3960 3948
3961 void forEach(void f(Length element)) => IterableMixinWorkaround.forEach(this, f); 3949 void forEach(void f(Length element)) => IterableMixinWorkaround.forEach(this, f);
3962 3950
3963 String join([String separator]) => 3951 String join([String separator]) =>
3964 IterableMixinWorkaround.joinList(this, separator); 3952 IterableMixinWorkaround.joinList(this, separator);
3965 3953
3966 Iterable map(f(Length element)) => 3954 Iterable map(f(Length element)) =>
3967 IterableMixinWorkaround.map(this, f); 3955 IterableMixinWorkaround.mapList(this, f);
3968 3956
3969 List mappedBy(f(Length element)) => 3957 List mappedBy(f(Length element)) =>
3970 IterableMixinWorkaround.mappedByList(this, f); 3958 IterableMixinWorkaround.mappedByList(this, f);
3971 3959
3972 Iterable<Length> where(bool f(Length element)) => 3960 Iterable<Length> where(bool f(Length element)) =>
3973 IterableMixinWorkaround.where(this, f); 3961 IterableMixinWorkaround.where(this, f);
3974 3962
3975 bool every(bool f(Length element)) => IterableMixinWorkaround.every(this, f); 3963 bool every(bool f(Length element)) => IterableMixinWorkaround.every(this, f);
3976 3964
3977 bool any(bool f(Length element)) => IterableMixinWorkaround.any(this, f); 3965 bool any(bool f(Length element)) => IterableMixinWorkaround.any(this, f);
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
4727 } 4715 }
4728 4716
4729 bool contains(Number element) => IterableMixinWorkaround.contains(this, elemen t); 4717 bool contains(Number element) => IterableMixinWorkaround.contains(this, elemen t);
4730 4718
4731 void forEach(void f(Number element)) => IterableMixinWorkaround.forEach(this, f); 4719 void forEach(void f(Number element)) => IterableMixinWorkaround.forEach(this, f);
4732 4720
4733 String join([String separator]) => 4721 String join([String separator]) =>
4734 IterableMixinWorkaround.joinList(this, separator); 4722 IterableMixinWorkaround.joinList(this, separator);
4735 4723
4736 Iterable map(f(Number element)) => 4724 Iterable map(f(Number element)) =>
4737 IterableMixinWorkaround.map(this, f); 4725 IterableMixinWorkaround.mapList(this, f);
4738 4726
4739 List mappedBy(f(Number element)) => 4727 List mappedBy(f(Number element)) =>
4740 IterableMixinWorkaround.mappedByList(this, f); 4728 IterableMixinWorkaround.mappedByList(this, f);
4741 4729
4742 Iterable<Number> where(bool f(Number element)) => 4730 Iterable<Number> where(bool f(Number element)) =>
4743 IterableMixinWorkaround.where(this, f); 4731 IterableMixinWorkaround.where(this, f);
4744 4732
4745 bool every(bool f(Number element)) => IterableMixinWorkaround.every(this, f); 4733 bool every(bool f(Number element)) => IterableMixinWorkaround.every(this, f);
4746 4734
4747 bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f); 4735 bool any(bool f(Number element)) => IterableMixinWorkaround.any(this, f);
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
5915 } 5903 }
5916 5904
5917 bool contains(PathSeg element) => IterableMixinWorkaround.contains(this, eleme nt); 5905 bool contains(PathSeg element) => IterableMixinWorkaround.contains(this, eleme nt);
5918 5906
5919 void forEach(void f(PathSeg element)) => IterableMixinWorkaround.forEach(this, f); 5907 void forEach(void f(PathSeg element)) => IterableMixinWorkaround.forEach(this, f);
5920 5908
5921 String join([String separator]) => 5909 String join([String separator]) =>
5922 IterableMixinWorkaround.joinList(this, separator); 5910 IterableMixinWorkaround.joinList(this, separator);
5923 5911
5924 Iterable map(f(PathSeg element)) => 5912 Iterable map(f(PathSeg element)) =>
5925 IterableMixinWorkaround.map(this, f); 5913 IterableMixinWorkaround.mapList(this, f);
5926 5914
5927 List mappedBy(f(PathSeg element)) => 5915 List mappedBy(f(PathSeg element)) =>
5928 IterableMixinWorkaround.mappedByList(this, f); 5916 IterableMixinWorkaround.mappedByList(this, f);
5929 5917
5930 Iterable<PathSeg> where(bool f(PathSeg element)) => 5918 Iterable<PathSeg> where(bool f(PathSeg element)) =>
5931 IterableMixinWorkaround.where(this, f); 5919 IterableMixinWorkaround.where(this, f);
5932 5920
5933 bool every(bool f(PathSeg element)) => IterableMixinWorkaround.every(this, f); 5921 bool every(bool f(PathSeg element)) => IterableMixinWorkaround.every(this, f);
5934 5922
5935 bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f); 5923 bool any(bool f(PathSeg element)) => IterableMixinWorkaround.any(this, f);
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
6943 } 6931 }
6944 6932
6945 bool contains(String element) => IterableMixinWorkaround.contains(this, elemen t); 6933 bool contains(String element) => IterableMixinWorkaround.contains(this, elemen t);
6946 6934
6947 void forEach(void f(String element)) => IterableMixinWorkaround.forEach(this, f); 6935 void forEach(void f(String element)) => IterableMixinWorkaround.forEach(this, f);
6948 6936
6949 String join([String separator]) => 6937 String join([String separator]) =>
6950 IterableMixinWorkaround.joinList(this, separator); 6938 IterableMixinWorkaround.joinList(this, separator);
6951 6939
6952 Iterable map(f(String element)) => 6940 Iterable map(f(String element)) =>
6953 IterableMixinWorkaround.map(this, f); 6941 IterableMixinWorkaround.mapList(this, f);
6954 6942
6955 List mappedBy(f(String element)) => 6943 List mappedBy(f(String element)) =>
6956 IterableMixinWorkaround.mappedByList(this, f); 6944 IterableMixinWorkaround.mappedByList(this, f);
6957 6945
6958 Iterable<String> where(bool f(String element)) => 6946 Iterable<String> where(bool f(String element)) =>
6959 IterableMixinWorkaround.where(this, f); 6947 IterableMixinWorkaround.where(this, f);
6960 6948
6961 bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f); 6949 bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f);
6962 6950
6963 bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f); 6951 bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
7135 // WARNING: Do not edit - generated code. 7123 // WARNING: Do not edit - generated code.
7136 7124
7137 7125
7138 @DocsEditable 7126 @DocsEditable
7139 @DomName('SVGStylable') 7127 @DomName('SVGStylable')
7140 class Stylable extends NativeFieldWrapperClass1 { 7128 class Stylable extends NativeFieldWrapperClass1 {
7141 Stylable.internal(); 7129 Stylable.internal();
7142 7130
7143 @DomName('SVGStylable.className') 7131 @DomName('SVGStylable.className')
7144 @DocsEditable 7132 @DocsEditable
7145 AnimatedString get $dom_svgClassName native "SVGStylable_className_Getter"; 7133 AnimatedString get className native "SVGStylable_className_Getter";
7146 7134
7147 @DomName('SVGStylable.style') 7135 @DomName('SVGStylable.style')
7148 @DocsEditable 7136 @DocsEditable
7149 CssStyleDeclaration get style native "SVGStylable_style_Getter"; 7137 CssStyleDeclaration get style native "SVGStylable_style_Getter";
7150 7138
7151 @DomName('SVGStylable.getPresentationAttribute') 7139 @DomName('SVGStylable.getPresentationAttribute')
7152 @DocsEditable 7140 @DocsEditable
7153 CssValue getPresentationAttribute(String name) native "SVGStylable_getPresenta tionAttribute_Callback"; 7141 CssValue getPresentationAttribute(String name) native "SVGStylable_getPresenta tionAttribute_Callback";
7154 7142
7155 } 7143 }
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
8266 } 8254 }
8267 8255
8268 bool contains(Transform element) => IterableMixinWorkaround.contains(this, ele ment); 8256 bool contains(Transform element) => IterableMixinWorkaround.contains(this, ele ment);
8269 8257
8270 void forEach(void f(Transform element)) => IterableMixinWorkaround.forEach(thi s, f); 8258 void forEach(void f(Transform element)) => IterableMixinWorkaround.forEach(thi s, f);
8271 8259
8272 String join([String separator]) => 8260 String join([String separator]) =>
8273 IterableMixinWorkaround.joinList(this, separator); 8261 IterableMixinWorkaround.joinList(this, separator);
8274 8262
8275 Iterable map(f(Transform element)) => 8263 Iterable map(f(Transform element)) =>
8276 IterableMixinWorkaround.map(this, f); 8264 IterableMixinWorkaround.mapList(this, f);
8277 8265
8278 List mappedBy(f(Transform element)) => 8266 List mappedBy(f(Transform element)) =>
8279 IterableMixinWorkaround.mappedByList(this, f); 8267 IterableMixinWorkaround.mappedByList(this, f);
8280 8268
8281 Iterable<Transform> where(bool f(Transform element)) => 8269 Iterable<Transform> where(bool f(Transform element)) =>
8282 IterableMixinWorkaround.where(this, f); 8270 IterableMixinWorkaround.where(this, f);
8283 8271
8284 bool every(bool f(Transform element)) => IterableMixinWorkaround.every(this, f ); 8272 bool every(bool f(Transform element)) => IterableMixinWorkaround.every(this, f );
8285 8273
8286 bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f); 8274 bool any(bool f(Transform element)) => IterableMixinWorkaround.any(this, f);
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
8863 } 8851 }
8864 8852
8865 bool contains(ElementInstance element) => IterableMixinWorkaround.contains(thi s, element); 8853 bool contains(ElementInstance element) => IterableMixinWorkaround.contains(thi s, element);
8866 8854
8867 void forEach(void f(ElementInstance element)) => IterableMixinWorkaround.forEa ch(this, f); 8855 void forEach(void f(ElementInstance element)) => IterableMixinWorkaround.forEa ch(this, f);
8868 8856
8869 String join([String separator]) => 8857 String join([String separator]) =>
8870 IterableMixinWorkaround.joinList(this, separator); 8858 IterableMixinWorkaround.joinList(this, separator);
8871 8859
8872 Iterable map(f(ElementInstance element)) => 8860 Iterable map(f(ElementInstance element)) =>
8873 IterableMixinWorkaround.map(this, f); 8861 IterableMixinWorkaround.mapList(this, f);
8874 8862
8875 List mappedBy(f(ElementInstance element)) => 8863 List mappedBy(f(ElementInstance element)) =>
8876 IterableMixinWorkaround.mappedByList(this, f); 8864 IterableMixinWorkaround.mappedByList(this, f);
8877 8865
8878 Iterable<ElementInstance> where(bool f(ElementInstance element)) => 8866 Iterable<ElementInstance> where(bool f(ElementInstance element)) =>
8879 IterableMixinWorkaround.where(this, f); 8867 IterableMixinWorkaround.where(this, f);
8880 8868
8881 bool every(bool f(ElementInstance element)) => IterableMixinWorkaround.every(t his, f); 8869 bool every(bool f(ElementInstance element)) => IterableMixinWorkaround.every(t his, f);
8882 8870
8883 bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f); 8871 bool any(bool f(ElementInstance element)) => IterableMixinWorkaround.any(this, f);
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
9019 List<ElementInstance> getRange(int start, int rangeLength) => 9007 List<ElementInstance> getRange(int start, int rangeLength) =>
9020 Lists.getRange(this, start, rangeLength, <ElementInstance>[]); 9008 Lists.getRange(this, start, rangeLength, <ElementInstance>[]);
9021 9009
9022 // -- end List<ElementInstance> mixins. 9010 // -- end List<ElementInstance> mixins.
9023 9011
9024 @DomName('SVGElementInstanceList.item') 9012 @DomName('SVGElementInstanceList.item')
9025 @DocsEditable 9013 @DocsEditable
9026 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback"; 9014 ElementInstance item(int index) native "SVGElementInstanceList_item_Callback";
9027 9015
9028 } 9016 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698