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

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

Issue 325923003: Add back invalid natives that couldn't be removed due to analyzer warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.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 /** 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 6923 matching lines...) Expand 10 before | Expand all | Expand 10 after
6934 // BSD-style license that can be found in the LICENSE file. 6934 // BSD-style license that can be found in the LICENSE file.
6935 6935
6936 6936
6937 @DocsEditable() 6937 @DocsEditable()
6938 @DomName('SVGElementInstanceList') 6938 @DomName('SVGElementInstanceList')
6939 @Unstable() 6939 @Unstable()
6940 class _ElementInstanceList extends Interceptor with ListMixin<ElementInstance>, ImmutableListMixin<ElementInstance> implements List<ElementInstance> native "SVG ElementInstanceList" { 6940 class _ElementInstanceList extends Interceptor with ListMixin<ElementInstance>, ImmutableListMixin<ElementInstance> implements List<ElementInstance> native "SVG ElementInstanceList" {
6941 // To suppress missing implicit constructor warnings. 6941 // To suppress missing implicit constructor warnings.
6942 factory _ElementInstanceList._() { throw new UnsupportedError("Not supported") ; } 6942 factory _ElementInstanceList._() { throw new UnsupportedError("Not supported") ; }
6943 6943
6944 @DomName('SVGElementInstanceList.length')
6945 @DocsEditable()
6946 int get length => JS("int", "#.length", this);
6947
6944 ElementInstance operator[](int index) { 6948 ElementInstance operator[](int index) {
6945 if (JS("bool", "# >>> 0 !== # || # >= #", index, 6949 if (JS("bool", "# >>> 0 !== # || # >= #", index,
6946 index, index, length)) 6950 index, index, length))
6947 throw new RangeError.range(index, 0, length); 6951 throw new RangeError.range(index, 0, length);
6948 return this.item(index); 6952 return this.item(index);
6949 } 6953 }
6950 void operator[]=(int index, ElementInstance value) { 6954 void operator[]=(int index, ElementInstance value) {
6951 throw new UnsupportedError("Cannot assign element of immutable List."); 6955 throw new UnsupportedError("Cannot assign element of immutable List.");
6952 } 6956 }
6953 // -- start List<ElementInstance> mixins. 6957 // -- start List<ElementInstance> mixins.
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
7372 @DomName('SVGVKernElement.SVGVKernElement') 7376 @DomName('SVGVKernElement.SVGVKernElement')
7373 @DocsEditable() 7377 @DocsEditable()
7374 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 7378 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
7375 /** 7379 /**
7376 * Constructor instantiated by the DOM when a custom element has been created. 7380 * Constructor instantiated by the DOM when a custom element has been created.
7377 * 7381 *
7378 * This can only be called by subclasses from their created constructor. 7382 * This can only be called by subclasses from their created constructor.
7379 */ 7383 */
7380 _SVGVKernElement.created() : super.created(); 7384 _SVGVKernElement.created() : super.created();
7381 } 7385 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698