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

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

Issue 27227002: Untyping List types (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 /** 1 /**
2 * Scalable Vector Graphics: 2 * Scalable Vector Graphics:
3 * Two-dimensional vector graphics with support for events and animation. 3 * Two-dimensional vector graphics with support for events and animation.
4 * 4 *
5 * For details about the features and syntax of SVG, a W3C standard, 5 * For details about the features and syntax of SVG, a W3C standard,
6 * refer to the 6 * refer to the
7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/). 7 * [Scalable Vector Graphics Specification](http://www.w3.org/TR/SVG/).
8 */ 8 */
9 library dart.dom.svg; 9 library dart.dom.svg;
10 10
(...skipping 2989 matching lines...) Expand 10 before | Expand all | Expand 10 after
3000 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native; 3000 void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) native;
3001 } 3001 }
3002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3003 // for details. All rights reserved. Use of this source code is governed by a 3003 // for details. All rights reserved. Use of this source code is governed by a
3004 // BSD-style license that can be found in the LICENSE file. 3004 // BSD-style license that can be found in the LICENSE file.
3005 3005
3006 3006
3007 @DocsEditable() 3007 @DocsEditable()
3008 @DomName('SVGLengthList') 3008 @DomName('SVGLengthList')
3009 @Unstable() 3009 @Unstable()
3010 class LengthList extends Interceptor with ListMixin<Length>, ImmutableListMixin< Length> implements List<Length> native "SVGLengthList" { 3010 class LengthList extends Interceptor with ListMixin<Length>, ImmutableListMixin< Length> implements List native "SVGLengthList" {
3011 3011
3012 @DomName('SVGLengthList.numberOfItems') 3012 @DomName('SVGLengthList.numberOfItems')
3013 @DocsEditable() 3013 @DocsEditable()
3014 final int numberOfItems; 3014 final int numberOfItems;
3015 3015
3016 Length operator[](int index) { 3016 Length operator[](int index) {
3017 if (JS("bool", "# >>> 0 !== # || # >= #", index, 3017 if (JS("bool", "# >>> 0 !== # || # >= #", index,
3018 index, index, length)) 3018 index, index, length))
3019 throw new RangeError.range(index, 0, length); 3019 throw new RangeError.range(index, 0, length);
3020 return this.getItem(index); 3020 return this.getItem(index);
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
3448 num value; 3448 num value;
3449 } 3449 }
3450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3451 // for details. All rights reserved. Use of this source code is governed by a 3451 // for details. All rights reserved. Use of this source code is governed by a
3452 // BSD-style license that can be found in the LICENSE file. 3452 // BSD-style license that can be found in the LICENSE file.
3453 3453
3454 3454
3455 @DocsEditable() 3455 @DocsEditable()
3456 @DomName('SVGNumberList') 3456 @DomName('SVGNumberList')
3457 @Unstable() 3457 @Unstable()
3458 class NumberList extends Interceptor with ListMixin<Number>, ImmutableListMixin< Number> implements List<Number> native "SVGNumberList" { 3458 class NumberList extends Interceptor with ListMixin<Number>, ImmutableListMixin< Number> implements List native "SVGNumberList" {
3459 3459
3460 @DomName('SVGNumberList.numberOfItems') 3460 @DomName('SVGNumberList.numberOfItems')
3461 @DocsEditable() 3461 @DocsEditable()
3462 final int numberOfItems; 3462 final int numberOfItems;
3463 3463
3464 Number operator[](int index) { 3464 Number operator[](int index) {
3465 if (JS("bool", "# >>> 0 !== # || # >= #", index, 3465 if (JS("bool", "# >>> 0 !== # || # >= #", index,
3466 index, index, length)) 3466 index, index, length))
3467 throw new RangeError.range(index, 0, length); 3467 throw new RangeError.range(index, 0, length);
3468 return this.getItem(index); 3468 return this.getItem(index);
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
4209 num y; 4209 num y;
4210 } 4210 }
4211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4212 // for details. All rights reserved. Use of this source code is governed by a 4212 // for details. All rights reserved. Use of this source code is governed by a
4213 // BSD-style license that can be found in the LICENSE file. 4213 // BSD-style license that can be found in the LICENSE file.
4214 4214
4215 4215
4216 @DocsEditable() 4216 @DocsEditable()
4217 @DomName('SVGPathSegList') 4217 @DomName('SVGPathSegList')
4218 @Unstable() 4218 @Unstable()
4219 class PathSegList extends Interceptor with ListMixin<PathSeg>, ImmutableListMixi n<PathSeg> implements List<PathSeg> native "SVGPathSegList" { 4219 class PathSegList extends Interceptor with ListMixin<PathSeg>, ImmutableListMixi n<PathSeg> implements List native "SVGPathSegList" {
4220 4220
4221 @DomName('SVGPathSegList.numberOfItems') 4221 @DomName('SVGPathSegList.numberOfItems')
4222 @DocsEditable() 4222 @DocsEditable()
4223 final int numberOfItems; 4223 final int numberOfItems;
4224 4224
4225 PathSeg operator[](int index) { 4225 PathSeg operator[](int index) {
4226 if (JS("bool", "# >>> 0 !== # || # >= #", index, 4226 if (JS("bool", "# >>> 0 !== # || # >= #", index,
4227 index, index, length)) 4227 index, index, length))
4228 throw new RangeError.range(index, 0, length); 4228 throw new RangeError.range(index, 0, length);
4229 return this.getItem(index); 4229 return this.getItem(index);
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
4888 final AnimatedNumber gradientOffset; 4888 final AnimatedNumber gradientOffset;
4889 } 4889 }
4890 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 4890 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4891 // for details. All rights reserved. Use of this source code is governed by a 4891 // for details. All rights reserved. Use of this source code is governed by a
4892 // BSD-style license that can be found in the LICENSE file. 4892 // BSD-style license that can be found in the LICENSE file.
4893 4893
4894 4894
4895 @DocsEditable() 4895 @DocsEditable()
4896 @DomName('SVGStringList') 4896 @DomName('SVGStringList')
4897 @Unstable() 4897 @Unstable()
4898 class StringList extends Interceptor with ListMixin<String>, ImmutableListMixin< String> implements List<String> native "SVGStringList" { 4898 class StringList extends Interceptor with ListMixin<String>, ImmutableListMixin< String> implements List native "SVGStringList" {
4899 4899
4900 @DomName('SVGStringList.numberOfItems') 4900 @DomName('SVGStringList.numberOfItems')
4901 @DocsEditable() 4901 @DocsEditable()
4902 final int numberOfItems; 4902 final int numberOfItems;
4903 4903
4904 String operator[](int index) { 4904 String operator[](int index) {
4905 if (JS("bool", "# >>> 0 !== # || # >= #", index, 4905 if (JS("bool", "# >>> 0 !== # || # >= #", index,
4906 index, index, length)) 4906 index, index, length))
4907 throw new RangeError.range(index, 0, length); 4907 throw new RangeError.range(index, 0, length);
4908 return this.getItem(index); 4908 return this.getItem(index);
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
5837 void setTranslate(num tx, num ty) native; 5837 void setTranslate(num tx, num ty) native;
5838 } 5838 }
5839 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5839 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5840 // for details. All rights reserved. Use of this source code is governed by a 5840 // for details. All rights reserved. Use of this source code is governed by a
5841 // BSD-style license that can be found in the LICENSE file. 5841 // BSD-style license that can be found in the LICENSE file.
5842 5842
5843 5843
5844 @DocsEditable() 5844 @DocsEditable()
5845 @DomName('SVGTransformList') 5845 @DomName('SVGTransformList')
5846 @Unstable() 5846 @Unstable()
5847 class TransformList extends Interceptor with ListMixin<Transform>, ImmutableList Mixin<Transform> implements List<Transform> native "SVGTransformList" { 5847 class TransformList extends Interceptor with ListMixin<Transform>, ImmutableList Mixin<Transform> implements List native "SVGTransformList" {
5848 5848
5849 @DomName('SVGTransformList.numberOfItems') 5849 @DomName('SVGTransformList.numberOfItems')
5850 @DocsEditable() 5850 @DocsEditable()
5851 final int numberOfItems; 5851 final int numberOfItems;
5852 5852
5853 Transform operator[](int index) { 5853 Transform operator[](int index) {
5854 if (JS("bool", "# >>> 0 !== # || # >= #", index, 5854 if (JS("bool", "# >>> 0 !== # || # >= #", index,
5855 index, index, length)) 5855 index, index, length))
5856 throw new RangeError.range(index, 0, length); 5856 throw new RangeError.range(index, 0, length);
5857 return this.getItem(index); 5857 return this.getItem(index);
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
6199 final Rect zoomRectScreen; 6199 final Rect zoomRectScreen;
6200 } 6200 }
6201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6202 // for details. All rights reserved. Use of this source code is governed by a 6202 // for details. All rights reserved. Use of this source code is governed by a
6203 // BSD-style license that can be found in the LICENSE file. 6203 // BSD-style license that can be found in the LICENSE file.
6204 6204
6205 6205
6206 @DocsEditable() 6206 @DocsEditable()
6207 @DomName('SVGElementInstanceList') 6207 @DomName('SVGElementInstanceList')
6208 @Unstable() 6208 @Unstable()
6209 class _ElementInstanceList extends Interceptor with ListMixin<ElementInstance>, ImmutableListMixin<ElementInstance> implements List<ElementInstance> native "SVG ElementInstanceList" { 6209 class _ElementInstanceList extends Interceptor with ListMixin<ElementInstance>, ImmutableListMixin<ElementInstance> implements List native "SVGElementInstanceLi st" {
6210 6210
6211 @DomName('SVGElementInstanceList.length') 6211 @DomName('SVGElementInstanceList.length')
6212 @DocsEditable() 6212 @DocsEditable()
6213 int get length => JS("int", "#.length", this); 6213 int get length => JS("int", "#.length", this);
6214 6214
6215 ElementInstance operator[](int index) { 6215 ElementInstance operator[](int index) {
6216 if (JS("bool", "# >>> 0 !== # || # >= #", index, 6216 if (JS("bool", "# >>> 0 !== # || # >= #", index,
6217 index, index, length)) 6217 index, index, length))
6218 throw new RangeError.range(index, 0, length); 6218 throw new RangeError.range(index, 0, length);
6219 return this.item(index); 6219 return this.item(index);
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
6720 @DomName('SVGVKernElement.SVGVKernElement') 6720 @DomName('SVGVKernElement.SVGVKernElement')
6721 @DocsEditable() 6721 @DocsEditable()
6722 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 6722 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
6723 /** 6723 /**
6724 * Constructor instantiated by the DOM when a custom element has been created. 6724 * Constructor instantiated by the DOM when a custom element has been created.
6725 * 6725 *
6726 * This can only be called by subclasses from their created constructor. 6726 * This can only be called by subclasses from their created constructor.
6727 */ 6727 */
6728 _SVGVKernElement.created() : super.created(); 6728 _SVGVKernElement.created() : super.created();
6729 } 6729 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698