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

Unified Diff: sdk/lib/svg/dart2js/svg_dart2js.dart

Issue 2871193002: New sdk/lib generated from Chrome 50 IDLs (Closed)
Patch Set: Created 3 years, 7 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: sdk/lib/svg/dart2js/svg_dart2js.dart
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart
index ed5b122f0edc01831884108de47d3e7b7561ea89..0022b46a6e2964d8676c9e06d09f3126469e687f 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -556,10 +556,6 @@ class AnimationElement extends SvgElement implements Tests {
@DomName('SVGAnimationElement.systemLanguage')
@DocsEditable()
final StringList systemLanguage;
-
- @DomName('SVGAnimationElement.hasExtension')
- @DocsEditable()
- bool hasExtension(String extension) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -2609,11 +2605,6 @@ class GraphicsElement extends SvgElement implements Tests {
@Experimental() // untriaged
Matrix getScreenCtm() native;
- @DomName('SVGGraphicsElement.getTransformToElement')
- @DocsEditable()
- @Experimental() // untriaged
- Matrix getTransformToElement(SvgElement element) native;
-
// From SVGTests
@DomName('SVGGraphicsElement.requiredExtensions')
@@ -2630,11 +2621,6 @@ class GraphicsElement extends SvgElement implements Tests {
@DocsEditable()
@Experimental() // untriaged
final StringList systemLanguage;
-
- @DomName('SVGGraphicsElement.hasExtension')
- @DocsEditable()
- @Experimental() // untriaged
- bool hasExtension(String extension) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -3109,10 +3095,6 @@ class MaskElement extends SvgElement implements Tests {
@DomName('SVGMaskElement.systemLanguage')
@DocsEditable()
final StringList systemLanguage;
-
- @DomName('SVGMaskElement.hasExtension')
- @DocsEditable()
- bool hasExtension(String extension) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -3360,131 +3342,10 @@ class PathElement extends GeometryElement {
*/
PathElement.created() : super.created();
- @DomName('SVGPathElement.animatedNormalizedPathSegList')
- @DocsEditable()
- final PathSegList animatedNormalizedPathSegList;
-
- @DomName('SVGPathElement.animatedPathSegList')
- @DocsEditable()
- final PathSegList animatedPathSegList;
-
- @DomName('SVGPathElement.normalizedPathSegList')
- @DocsEditable()
- final PathSegList normalizedPathSegList;
-
@DomName('SVGPathElement.pathLength')
@DocsEditable()
final AnimatedNumber pathLength;
- @DomName('SVGPathElement.pathSegList')
- @DocsEditable()
- final PathSegList pathSegList;
-
- @JSName('createSVGPathSegArcAbs')
- @DomName('SVGPathElement.createSVGPathSegArcAbs')
- @DocsEditable()
- PathSegArcAbs createSvgPathSegArcAbs(num x, num y, num r1, num r2, num angle,
- bool largeArcFlag, bool sweepFlag) native;
-
- @JSName('createSVGPathSegArcRel')
- @DomName('SVGPathElement.createSVGPathSegArcRel')
- @DocsEditable()
- PathSegArcRel createSvgPathSegArcRel(num x, num y, num r1, num r2, num angle,
- bool largeArcFlag, bool sweepFlag) native;
-
- @JSName('createSVGPathSegClosePath')
- @DomName('SVGPathElement.createSVGPathSegClosePath')
- @DocsEditable()
- PathSegClosePath createSvgPathSegClosePath() native;
-
- @JSName('createSVGPathSegCurvetoCubicAbs')
- @DomName('SVGPathElement.createSVGPathSegCurvetoCubicAbs')
- @DocsEditable()
- PathSegCurvetoCubicAbs createSvgPathSegCurvetoCubicAbs(
- num x, num y, num x1, num y1, num x2, num y2) native;
-
- @JSName('createSVGPathSegCurvetoCubicRel')
- @DomName('SVGPathElement.createSVGPathSegCurvetoCubicRel')
- @DocsEditable()
- PathSegCurvetoCubicRel createSvgPathSegCurvetoCubicRel(
- num x, num y, num x1, num y1, num x2, num y2) native;
-
- @JSName('createSVGPathSegCurvetoCubicSmoothAbs')
- @DomName('SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs')
- @DocsEditable()
- PathSegCurvetoCubicSmoothAbs createSvgPathSegCurvetoCubicSmoothAbs(
- num x, num y, num x2, num y2) native;
-
- @JSName('createSVGPathSegCurvetoCubicSmoothRel')
- @DomName('SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel')
- @DocsEditable()
- PathSegCurvetoCubicSmoothRel createSvgPathSegCurvetoCubicSmoothRel(
- num x, num y, num x2, num y2) native;
-
- @JSName('createSVGPathSegCurvetoQuadraticAbs')
- @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticAbs')
- @DocsEditable()
- PathSegCurvetoQuadraticAbs createSvgPathSegCurvetoQuadraticAbs(
- num x, num y, num x1, num y1) native;
-
- @JSName('createSVGPathSegCurvetoQuadraticRel')
- @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticRel')
- @DocsEditable()
- PathSegCurvetoQuadraticRel createSvgPathSegCurvetoQuadraticRel(
- num x, num y, num x1, num y1) native;
-
- @JSName('createSVGPathSegCurvetoQuadraticSmoothAbs')
- @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs')
- @DocsEditable()
- PathSegCurvetoQuadraticSmoothAbs createSvgPathSegCurvetoQuadraticSmoothAbs(
- num x, num y) native;
-
- @JSName('createSVGPathSegCurvetoQuadraticSmoothRel')
- @DomName('SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel')
- @DocsEditable()
- PathSegCurvetoQuadraticSmoothRel createSvgPathSegCurvetoQuadraticSmoothRel(
- num x, num y) native;
-
- @JSName('createSVGPathSegLinetoAbs')
- @DomName('SVGPathElement.createSVGPathSegLinetoAbs')
- @DocsEditable()
- PathSegLinetoAbs createSvgPathSegLinetoAbs(num x, num y) native;
-
- @JSName('createSVGPathSegLinetoHorizontalAbs')
- @DomName('SVGPathElement.createSVGPathSegLinetoHorizontalAbs')
- @DocsEditable()
- PathSegLinetoHorizontalAbs createSvgPathSegLinetoHorizontalAbs(num x) native;
-
- @JSName('createSVGPathSegLinetoHorizontalRel')
- @DomName('SVGPathElement.createSVGPathSegLinetoHorizontalRel')
- @DocsEditable()
- PathSegLinetoHorizontalRel createSvgPathSegLinetoHorizontalRel(num x) native;
-
- @JSName('createSVGPathSegLinetoRel')
- @DomName('SVGPathElement.createSVGPathSegLinetoRel')
- @DocsEditable()
- PathSegLinetoRel createSvgPathSegLinetoRel(num x, num y) native;
-
- @JSName('createSVGPathSegLinetoVerticalAbs')
- @DomName('SVGPathElement.createSVGPathSegLinetoVerticalAbs')
- @DocsEditable()
- PathSegLinetoVerticalAbs createSvgPathSegLinetoVerticalAbs(num y) native;
-
- @JSName('createSVGPathSegLinetoVerticalRel')
- @DomName('SVGPathElement.createSVGPathSegLinetoVerticalRel')
- @DocsEditable()
- PathSegLinetoVerticalRel createSvgPathSegLinetoVerticalRel(num y) native;
-
- @JSName('createSVGPathSegMovetoAbs')
- @DomName('SVGPathElement.createSVGPathSegMovetoAbs')
- @DocsEditable()
- PathSegMovetoAbs createSvgPathSegMovetoAbs(num x, num y) native;
-
- @JSName('createSVGPathSegMovetoRel')
- @DomName('SVGPathElement.createSVGPathSegMovetoRel')
- @DocsEditable()
- PathSegMovetoRel createSvgPathSegMovetoRel(num x, num y) native;
-
@DomName('SVGPathElement.getPathSegAtLength')
@DocsEditable()
int getPathSegAtLength(num distance) native;
@@ -3502,979 +3363,274 @@ class PathElement extends GeometryElement {
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('SVGPathSeg')
+@DomName('SVGPatternElement')
@Unstable()
-@Native("SVGPathSeg")
-class PathSeg extends Interceptor {
+@Native("SVGPatternElement")
+class PatternElement extends SvgElement
+ implements FitToViewBox, UriReference, Tests {
// To suppress missing implicit constructor warnings.
- factory PathSeg._() {
+ factory PatternElement._() {
throw new UnsupportedError("Not supported");
}
- @DomName('SVGPathSeg.PATHSEG_ARC_ABS')
- @DocsEditable()
- static const int PATHSEG_ARC_ABS = 10;
-
- @DomName('SVGPathSeg.PATHSEG_ARC_REL')
- @DocsEditable()
- static const int PATHSEG_ARC_REL = 11;
-
- @DomName('SVGPathSeg.PATHSEG_CLOSEPATH')
- @DocsEditable()
- static const int PATHSEG_CLOSEPATH = 1;
-
- @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS')
- @DocsEditable()
- static const int PATHSEG_CURVETO_CUBIC_ABS = 6;
-
- @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL')
- @DocsEditable()
- static const int PATHSEG_CURVETO_CUBIC_REL = 7;
-
- @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS')
+ @DomName('SVGPatternElement.SVGPatternElement')
@DocsEditable()
- static const int PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16;
+ factory PatternElement() =>
+ _SvgElementFactoryProvider.createSvgElement_tag("pattern");
+ /**
+ * Constructor instantiated by the DOM when a custom element has been created.
+ *
+ * This can only be called by subclasses from their created constructor.
+ */
+ PatternElement.created() : super.created();
- @DomName('SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL')
+ @DomName('SVGPatternElement.height')
@DocsEditable()
- static const int PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17;
+ final AnimatedLength height;
- @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS')
+ @DomName('SVGPatternElement.patternContentUnits')
@DocsEditable()
- static const int PATHSEG_CURVETO_QUADRATIC_ABS = 8;
+ final AnimatedEnumeration patternContentUnits;
- @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL')
+ @DomName('SVGPatternElement.patternTransform')
@DocsEditable()
- static const int PATHSEG_CURVETO_QUADRATIC_REL = 9;
+ final AnimatedTransformList patternTransform;
- @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS')
+ @DomName('SVGPatternElement.patternUnits')
@DocsEditable()
- static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18;
+ final AnimatedEnumeration patternUnits;
- @DomName('SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL')
+ @DomName('SVGPatternElement.width')
@DocsEditable()
- static const int PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19;
+ final AnimatedLength width;
- @DomName('SVGPathSeg.PATHSEG_LINETO_ABS')
+ @DomName('SVGPatternElement.x')
@DocsEditable()
- static const int PATHSEG_LINETO_ABS = 4;
+ final AnimatedLength x;
- @DomName('SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS')
+ @DomName('SVGPatternElement.y')
@DocsEditable()
- static const int PATHSEG_LINETO_HORIZONTAL_ABS = 12;
+ final AnimatedLength y;
- @DomName('SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL')
- @DocsEditable()
- static const int PATHSEG_LINETO_HORIZONTAL_REL = 13;
+ // From SVGFitToViewBox
- @DomName('SVGPathSeg.PATHSEG_LINETO_REL')
+ @DomName('SVGPatternElement.preserveAspectRatio')
@DocsEditable()
- static const int PATHSEG_LINETO_REL = 5;
+ final AnimatedPreserveAspectRatio preserveAspectRatio;
- @DomName('SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS')
+ @DomName('SVGPatternElement.viewBox')
@DocsEditable()
- static const int PATHSEG_LINETO_VERTICAL_ABS = 14;
+ final AnimatedRect viewBox;
- @DomName('SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL')
- @DocsEditable()
- static const int PATHSEG_LINETO_VERTICAL_REL = 15;
+ // From SVGTests
- @DomName('SVGPathSeg.PATHSEG_MOVETO_ABS')
+ @DomName('SVGPatternElement.requiredExtensions')
@DocsEditable()
- static const int PATHSEG_MOVETO_ABS = 2;
+ final StringList requiredExtensions;
- @DomName('SVGPathSeg.PATHSEG_MOVETO_REL')
+ @DomName('SVGPatternElement.requiredFeatures')
@DocsEditable()
- static const int PATHSEG_MOVETO_REL = 3;
+ final StringList requiredFeatures;
- @DomName('SVGPathSeg.PATHSEG_UNKNOWN')
+ @DomName('SVGPatternElement.systemLanguage')
@DocsEditable()
- static const int PATHSEG_UNKNOWN = 0;
+ final StringList systemLanguage;
- @DomName('SVGPathSeg.pathSegType')
- @DocsEditable()
- final int pathSegType;
+ // From SVGURIReference
- @DomName('SVGPathSeg.pathSegTypeAsLetter')
+ @DomName('SVGPatternElement.href')
@DocsEditable()
- final String pathSegTypeAsLetter;
+ final AnimatedString href;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('SVGPathSegArcAbs')
+@DomName('SVGPoint')
@Unstable()
-@Native("SVGPathSegArcAbs")
-class PathSegArcAbs extends PathSeg {
+@Native("SVGPoint")
+class Point extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory PathSegArcAbs._() {
+ factory Point._() {
throw new UnsupportedError("Not supported");
}
- @DomName('SVGPathSegArcAbs.angle')
- @DocsEditable()
- num angle;
-
- @DomName('SVGPathSegArcAbs.largeArcFlag')
- @DocsEditable()
- bool largeArcFlag;
-
- @DomName('SVGPathSegArcAbs.r1')
- @DocsEditable()
- num r1;
-
- @DomName('SVGPathSegArcAbs.r2')
- @DocsEditable()
- num r2;
-
- @DomName('SVGPathSegArcAbs.sweepFlag')
- @DocsEditable()
- bool sweepFlag;
-
- @DomName('SVGPathSegArcAbs.x')
+ @DomName('SVGPoint.x')
@DocsEditable()
num x;
- @DomName('SVGPathSegArcAbs.y')
+ @DomName('SVGPoint.y')
@DocsEditable()
num y;
+
+ @DomName('SVGPoint.matrixTransform')
+ @DocsEditable()
+ Point matrixTransform(Matrix matrix) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('SVGPathSegArcRel')
+@DomName('SVGPointList')
@Unstable()
-@Native("SVGPathSegArcRel")
-class PathSegArcRel extends PathSeg {
+@Native("SVGPointList")
+class PointList extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory PathSegArcRel._() {
+ factory PointList._() {
throw new UnsupportedError("Not supported");
}
- @DomName('SVGPathSegArcRel.angle')
+ @DomName('SVGPointList.length')
@DocsEditable()
- num angle;
+ @Experimental() // untriaged
+ final int length;
- @DomName('SVGPathSegArcRel.largeArcFlag')
+ @DomName('SVGPointList.numberOfItems')
@DocsEditable()
- bool largeArcFlag;
+ final int numberOfItems;
- @DomName('SVGPathSegArcRel.r1')
+ @DomName('SVGPointList.__setter__')
@DocsEditable()
- num r1;
+ @Experimental() // untriaged
+ void __setter__(int index, Point newItem) native;
- @DomName('SVGPathSegArcRel.r2')
+ @DomName('SVGPointList.appendItem')
@DocsEditable()
- num r2;
+ Point appendItem(Point newItem) native;
- @DomName('SVGPathSegArcRel.sweepFlag')
+ @DomName('SVGPointList.clear')
@DocsEditable()
- bool sweepFlag;
+ void clear() native;
- @DomName('SVGPathSegArcRel.x')
+ @DomName('SVGPointList.getItem')
@DocsEditable()
- num x;
+ Point getItem(int index) native;
- @DomName('SVGPathSegArcRel.y')
+ @DomName('SVGPointList.initialize')
@DocsEditable()
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
+ Point initialize(Point newItem) native;
-@DocsEditable()
-@DomName('SVGPathSegClosePath')
-@Unstable()
-@Native("SVGPathSegClosePath")
-class PathSegClosePath extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegClosePath._() {
- throw new UnsupportedError("Not supported");
- }
+ @DomName('SVGPointList.insertItemBefore')
+ @DocsEditable()
+ Point insertItemBefore(Point newItem, int index) native;
+
+ @DomName('SVGPointList.removeItem')
+ @DocsEditable()
+ Point removeItem(int index) native;
+
+ @DomName('SVGPointList.replaceItem')
+ @DocsEditable()
+ Point replaceItem(Point newItem, int index) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('SVGPathSegCurvetoCubicAbs')
+@DomName('SVGPolygonElement')
@Unstable()
-@Native("SVGPathSegCurvetoCubicAbs")
-class PathSegCurvetoCubicAbs extends PathSeg {
+@Native("SVGPolygonElement")
+class PolygonElement extends GeometryElement {
// To suppress missing implicit constructor warnings.
- factory PathSegCurvetoCubicAbs._() {
+ factory PolygonElement._() {
throw new UnsupportedError("Not supported");
}
- @DomName('SVGPathSegCurvetoCubicAbs.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPathSegCurvetoCubicAbs.x1')
- @DocsEditable()
- num x1;
-
- @DomName('SVGPathSegCurvetoCubicAbs.x2')
- @DocsEditable()
- num x2;
-
- @DomName('SVGPathSegCurvetoCubicAbs.y')
+ @DomName('SVGPolygonElement.SVGPolygonElement')
@DocsEditable()
- num y;
+ factory PolygonElement() =>
+ _SvgElementFactoryProvider.createSvgElement_tag("polygon");
+ /**
+ * Constructor instantiated by the DOM when a custom element has been created.
+ *
+ * This can only be called by subclasses from their created constructor.
+ */
+ PolygonElement.created() : super.created();
- @DomName('SVGPathSegCurvetoCubicAbs.y1')
+ @DomName('SVGPolygonElement.animatedPoints')
@DocsEditable()
- num y1;
+ final PointList animatedPoints;
- @DomName('SVGPathSegCurvetoCubicAbs.y2')
+ @DomName('SVGPolygonElement.points')
@DocsEditable()
- num y2;
+ final PointList points;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('SVGPathSegCurvetoCubicRel')
+@DomName('SVGPolylineElement')
@Unstable()
-@Native("SVGPathSegCurvetoCubicRel")
-class PathSegCurvetoCubicRel extends PathSeg {
+@Native("SVGPolylineElement")
+class PolylineElement extends GeometryElement {
// To suppress missing implicit constructor warnings.
- factory PathSegCurvetoCubicRel._() {
+ factory PolylineElement._() {
throw new UnsupportedError("Not supported");
}
- @DomName('SVGPathSegCurvetoCubicRel.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPathSegCurvetoCubicRel.x1')
- @DocsEditable()
- num x1;
-
- @DomName('SVGPathSegCurvetoCubicRel.x2')
- @DocsEditable()
- num x2;
-
- @DomName('SVGPathSegCurvetoCubicRel.y')
+ @DomName('SVGPolylineElement.SVGPolylineElement')
@DocsEditable()
- num y;
+ factory PolylineElement() =>
+ _SvgElementFactoryProvider.createSvgElement_tag("polyline");
+ /**
+ * Constructor instantiated by the DOM when a custom element has been created.
+ *
+ * This can only be called by subclasses from their created constructor.
+ */
+ PolylineElement.created() : super.created();
- @DomName('SVGPathSegCurvetoCubicRel.y1')
+ @DomName('SVGPolylineElement.animatedPoints')
@DocsEditable()
- num y1;
+ final PointList animatedPoints;
- @DomName('SVGPathSegCurvetoCubicRel.y2')
+ @DomName('SVGPolylineElement.points')
@DocsEditable()
- num y2;
+ final PointList points;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@DocsEditable()
-@DomName('SVGPathSegCurvetoCubicSmoothAbs')
+@DomName('SVGPreserveAspectRatio')
@Unstable()
-@Native("SVGPathSegCurvetoCubicSmoothAbs")
-class PathSegCurvetoCubicSmoothAbs extends PathSeg {
+@Native("SVGPreserveAspectRatio")
+class PreserveAspectRatio extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory PathSegCurvetoCubicSmoothAbs._() {
+ factory PreserveAspectRatio._() {
throw new UnsupportedError("Not supported");
}
- @DomName('SVGPathSegCurvetoCubicSmoothAbs.x')
+ @DomName('SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET')
@DocsEditable()
- num x;
+ static const int SVG_MEETORSLICE_MEET = 1;
- @DomName('SVGPathSegCurvetoCubicSmoothAbs.x2')
+ @DomName('SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE')
@DocsEditable()
- num x2;
+ static const int SVG_MEETORSLICE_SLICE = 2;
- @DomName('SVGPathSegCurvetoCubicSmoothAbs.y')
+ @DomName('SVGPreserveAspectRatio.SVG_MEETORSLICE_UNKNOWN')
@DocsEditable()
- num y;
+ static const int SVG_MEETORSLICE_UNKNOWN = 0;
- @DomName('SVGPathSegCurvetoCubicSmoothAbs.y2')
+ @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_NONE')
@DocsEditable()
- num y2;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegCurvetoCubicSmoothRel')
-@Unstable()
-@Native("SVGPathSegCurvetoCubicSmoothRel")
-class PathSegCurvetoCubicSmoothRel extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegCurvetoCubicSmoothRel._() {
- throw new UnsupportedError("Not supported");
- }
+ static const int SVG_PRESERVEASPECTRATIO_NONE = 1;
- @DomName('SVGPathSegCurvetoCubicSmoothRel.x')
+ @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_UNKNOWN')
@DocsEditable()
- num x;
+ static const int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;
- @DomName('SVGPathSegCurvetoCubicSmoothRel.x2')
+ @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMAX')
@DocsEditable()
- num x2;
+ static const int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;
- @DomName('SVGPathSegCurvetoCubicSmoothRel.y')
+ @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMID')
@DocsEditable()
- num y;
-
- @DomName('SVGPathSegCurvetoCubicSmoothRel.y2')
- @DocsEditable()
- num y2;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegCurvetoQuadraticAbs')
-@Unstable()
-@Native("SVGPathSegCurvetoQuadraticAbs")
-class PathSegCurvetoQuadraticAbs extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegCurvetoQuadraticAbs._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegCurvetoQuadraticAbs.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPathSegCurvetoQuadraticAbs.x1')
- @DocsEditable()
- num x1;
-
- @DomName('SVGPathSegCurvetoQuadraticAbs.y')
- @DocsEditable()
- num y;
-
- @DomName('SVGPathSegCurvetoQuadraticAbs.y1')
- @DocsEditable()
- num y1;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegCurvetoQuadraticRel')
-@Unstable()
-@Native("SVGPathSegCurvetoQuadraticRel")
-class PathSegCurvetoQuadraticRel extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegCurvetoQuadraticRel._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegCurvetoQuadraticRel.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPathSegCurvetoQuadraticRel.x1')
- @DocsEditable()
- num x1;
-
- @DomName('SVGPathSegCurvetoQuadraticRel.y')
- @DocsEditable()
- num y;
-
- @DomName('SVGPathSegCurvetoQuadraticRel.y1')
- @DocsEditable()
- num y1;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegCurvetoQuadraticSmoothAbs')
-@Unstable()
-@Native("SVGPathSegCurvetoQuadraticSmoothAbs")
-class PathSegCurvetoQuadraticSmoothAbs extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegCurvetoQuadraticSmoothAbs._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegCurvetoQuadraticSmoothAbs.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPathSegCurvetoQuadraticSmoothAbs.y')
- @DocsEditable()
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegCurvetoQuadraticSmoothRel')
-@Unstable()
-@Native("SVGPathSegCurvetoQuadraticSmoothRel")
-class PathSegCurvetoQuadraticSmoothRel extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegCurvetoQuadraticSmoothRel._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegCurvetoQuadraticSmoothRel.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPathSegCurvetoQuadraticSmoothRel.y')
- @DocsEditable()
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegLinetoAbs')
-@Unstable()
-@Native("SVGPathSegLinetoAbs")
-class PathSegLinetoAbs extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegLinetoAbs._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegLinetoAbs.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPathSegLinetoAbs.y')
- @DocsEditable()
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegLinetoHorizontalAbs')
-@Unstable()
-@Native("SVGPathSegLinetoHorizontalAbs")
-class PathSegLinetoHorizontalAbs extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegLinetoHorizontalAbs._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegLinetoHorizontalAbs.x')
- @DocsEditable()
- num x;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegLinetoHorizontalRel')
-@Unstable()
-@Native("SVGPathSegLinetoHorizontalRel")
-class PathSegLinetoHorizontalRel extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegLinetoHorizontalRel._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegLinetoHorizontalRel.x')
- @DocsEditable()
- num x;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegLinetoRel')
-@Unstable()
-@Native("SVGPathSegLinetoRel")
-class PathSegLinetoRel extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegLinetoRel._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegLinetoRel.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPathSegLinetoRel.y')
- @DocsEditable()
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegLinetoVerticalAbs')
-@Unstable()
-@Native("SVGPathSegLinetoVerticalAbs")
-class PathSegLinetoVerticalAbs extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegLinetoVerticalAbs._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegLinetoVerticalAbs.y')
- @DocsEditable()
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegLinetoVerticalRel')
-@Unstable()
-@Native("SVGPathSegLinetoVerticalRel")
-class PathSegLinetoVerticalRel extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegLinetoVerticalRel._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegLinetoVerticalRel.y')
- @DocsEditable()
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegList')
-@Unstable()
-@Native("SVGPathSegList")
-class PathSegList extends Interceptor
- with ListMixin<PathSeg>, ImmutableListMixin<PathSeg>
- implements List<PathSeg> {
- // To suppress missing implicit constructor warnings.
- factory PathSegList._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegList.length')
- @DocsEditable()
- @Experimental() // untriaged
- int get length => JS("int", "#.length", this);
-
- @DomName('SVGPathSegList.numberOfItems')
- @DocsEditable()
- final int numberOfItems;
-
- PathSeg operator [](int index) {
- if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length))
- throw new RangeError.index(index, this);
- return this.getItem(index);
- }
-
- void operator []=(int index, PathSeg value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<PathSeg> mixins.
- // PathSeg is the element type.
-
- set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- PathSeg get first {
- if (this.length > 0) {
- return JS('PathSeg', '#[0]', this);
- }
- throw new StateError("No elements");
- }
-
- PathSeg get last {
- int len = this.length;
- if (len > 0) {
- return JS('PathSeg', '#[#]', this, len - 1);
- }
- throw new StateError("No elements");
- }
-
- PathSeg get single {
- int len = this.length;
- if (len == 1) {
- return JS('PathSeg', '#[0]', this);
- }
- if (len == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- PathSeg elementAt(int index) => this[index];
- // -- end List<PathSeg> mixins.
-
- @DomName('SVGPathSegList.__setter__')
- @DocsEditable()
- @Experimental() // untriaged
- void __setter__(int index, PathSeg newItem) native;
-
- @DomName('SVGPathSegList.appendItem')
- @DocsEditable()
- PathSeg appendItem(PathSeg newItem) native;
-
- @DomName('SVGPathSegList.clear')
- @DocsEditable()
- void clear() native;
-
- @DomName('SVGPathSegList.getItem')
- @DocsEditable()
- PathSeg getItem(int index) native;
-
- @DomName('SVGPathSegList.initialize')
- @DocsEditable()
- PathSeg initialize(PathSeg newItem) native;
-
- @DomName('SVGPathSegList.insertItemBefore')
- @DocsEditable()
- PathSeg insertItemBefore(PathSeg newItem, int index) native;
-
- @DomName('SVGPathSegList.removeItem')
- @DocsEditable()
- PathSeg removeItem(int index) native;
-
- @DomName('SVGPathSegList.replaceItem')
- @DocsEditable()
- PathSeg replaceItem(PathSeg newItem, int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegMovetoAbs')
-@Unstable()
-@Native("SVGPathSegMovetoAbs")
-class PathSegMovetoAbs extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegMovetoAbs._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegMovetoAbs.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPathSegMovetoAbs.y')
- @DocsEditable()
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPathSegMovetoRel')
-@Unstable()
-@Native("SVGPathSegMovetoRel")
-class PathSegMovetoRel extends PathSeg {
- // To suppress missing implicit constructor warnings.
- factory PathSegMovetoRel._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPathSegMovetoRel.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPathSegMovetoRel.y')
- @DocsEditable()
- num y;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPatternElement')
-@Unstable()
-@Native("SVGPatternElement")
-class PatternElement extends SvgElement
- implements FitToViewBox, UriReference, Tests {
- // To suppress missing implicit constructor warnings.
- factory PatternElement._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPatternElement.SVGPatternElement')
- @DocsEditable()
- factory PatternElement() =>
- _SvgElementFactoryProvider.createSvgElement_tag("pattern");
- /**
- * Constructor instantiated by the DOM when a custom element has been created.
- *
- * This can only be called by subclasses from their created constructor.
- */
- PatternElement.created() : super.created();
-
- @DomName('SVGPatternElement.height')
- @DocsEditable()
- final AnimatedLength height;
-
- @DomName('SVGPatternElement.patternContentUnits')
- @DocsEditable()
- final AnimatedEnumeration patternContentUnits;
-
- @DomName('SVGPatternElement.patternTransform')
- @DocsEditable()
- final AnimatedTransformList patternTransform;
-
- @DomName('SVGPatternElement.patternUnits')
- @DocsEditable()
- final AnimatedEnumeration patternUnits;
-
- @DomName('SVGPatternElement.width')
- @DocsEditable()
- final AnimatedLength width;
-
- @DomName('SVGPatternElement.x')
- @DocsEditable()
- final AnimatedLength x;
-
- @DomName('SVGPatternElement.y')
- @DocsEditable()
- final AnimatedLength y;
-
- // From SVGFitToViewBox
-
- @DomName('SVGPatternElement.preserveAspectRatio')
- @DocsEditable()
- final AnimatedPreserveAspectRatio preserveAspectRatio;
-
- @DomName('SVGPatternElement.viewBox')
- @DocsEditable()
- final AnimatedRect viewBox;
-
- // From SVGTests
-
- @DomName('SVGPatternElement.requiredExtensions')
- @DocsEditable()
- final StringList requiredExtensions;
-
- @DomName('SVGPatternElement.requiredFeatures')
- @DocsEditable()
- final StringList requiredFeatures;
-
- @DomName('SVGPatternElement.systemLanguage')
- @DocsEditable()
- final StringList systemLanguage;
-
- @DomName('SVGPatternElement.hasExtension')
- @DocsEditable()
- bool hasExtension(String extension) native;
-
- // From SVGURIReference
-
- @DomName('SVGPatternElement.href')
- @DocsEditable()
- final AnimatedString href;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPoint')
-@Unstable()
-@Native("SVGPoint")
-class Point extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory Point._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPoint.x')
- @DocsEditable()
- num x;
-
- @DomName('SVGPoint.y')
- @DocsEditable()
- num y;
-
- @DomName('SVGPoint.matrixTransform')
- @DocsEditable()
- Point matrixTransform(Matrix matrix) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPointList')
-@Unstable()
-@Native("SVGPointList")
-class PointList extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory PointList._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPointList.length')
- @DocsEditable()
- @Experimental() // untriaged
- final int length;
-
- @DomName('SVGPointList.numberOfItems')
- @DocsEditable()
- final int numberOfItems;
-
- @DomName('SVGPointList.__setter__')
- @DocsEditable()
- @Experimental() // untriaged
- void __setter__(int index, Point newItem) native;
-
- @DomName('SVGPointList.appendItem')
- @DocsEditable()
- Point appendItem(Point newItem) native;
-
- @DomName('SVGPointList.clear')
- @DocsEditable()
- void clear() native;
-
- @DomName('SVGPointList.getItem')
- @DocsEditable()
- Point getItem(int index) native;
-
- @DomName('SVGPointList.initialize')
- @DocsEditable()
- Point initialize(Point newItem) native;
-
- @DomName('SVGPointList.insertItemBefore')
- @DocsEditable()
- Point insertItemBefore(Point newItem, int index) native;
-
- @DomName('SVGPointList.removeItem')
- @DocsEditable()
- Point removeItem(int index) native;
-
- @DomName('SVGPointList.replaceItem')
- @DocsEditable()
- Point replaceItem(Point newItem, int index) native;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPolygonElement')
-@Unstable()
-@Native("SVGPolygonElement")
-class PolygonElement extends GeometryElement {
- // To suppress missing implicit constructor warnings.
- factory PolygonElement._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPolygonElement.SVGPolygonElement')
- @DocsEditable()
- factory PolygonElement() =>
- _SvgElementFactoryProvider.createSvgElement_tag("polygon");
- /**
- * Constructor instantiated by the DOM when a custom element has been created.
- *
- * This can only be called by subclasses from their created constructor.
- */
- PolygonElement.created() : super.created();
-
- @DomName('SVGPolygonElement.animatedPoints')
- @DocsEditable()
- final PointList animatedPoints;
-
- @DomName('SVGPolygonElement.points')
- @DocsEditable()
- final PointList points;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPolylineElement')
-@Unstable()
-@Native("SVGPolylineElement")
-class PolylineElement extends GeometryElement {
- // To suppress missing implicit constructor warnings.
- factory PolylineElement._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPolylineElement.SVGPolylineElement')
- @DocsEditable()
- factory PolylineElement() =>
- _SvgElementFactoryProvider.createSvgElement_tag("polyline");
- /**
- * Constructor instantiated by the DOM when a custom element has been created.
- *
- * This can only be called by subclasses from their created constructor.
- */
- PolylineElement.created() : super.created();
-
- @DomName('SVGPolylineElement.animatedPoints')
- @DocsEditable()
- final PointList animatedPoints;
-
- @DomName('SVGPolylineElement.points')
- @DocsEditable()
- final PointList points;
-}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-@DocsEditable()
-@DomName('SVGPreserveAspectRatio')
-@Unstable()
-@Native("SVGPreserveAspectRatio")
-class PreserveAspectRatio extends Interceptor {
- // To suppress missing implicit constructor warnings.
- factory PreserveAspectRatio._() {
- throw new UnsupportedError("Not supported");
- }
-
- @DomName('SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET')
- @DocsEditable()
- static const int SVG_MEETORSLICE_MEET = 1;
-
- @DomName('SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE')
- @DocsEditable()
- static const int SVG_MEETORSLICE_SLICE = 2;
-
- @DomName('SVGPreserveAspectRatio.SVG_MEETORSLICE_UNKNOWN')
- @DocsEditable()
- static const int SVG_MEETORSLICE_UNKNOWN = 0;
-
- @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_NONE')
- @DocsEditable()
- static const int SVG_PRESERVEASPECTRATIO_NONE = 1;
-
- @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_UNKNOWN')
- @DocsEditable()
- static const int SVG_PRESERVEASPECTRATIO_UNKNOWN = 0;
-
- @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMAX')
- @DocsEditable()
- static const int SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10;
-
- @DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMID')
- @DocsEditable()
- static const int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;
+ static const int SVG_PRESERVEASPECTRATIO_XMAXYMID = 7;
@DomName('SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMIN')
@DocsEditable()
@@ -4889,13 +4045,16 @@ class StyleElement extends SvgElement {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-class _AttributeClassSet extends CssClassSetImpl {
+class AttributeClassSet extends CssClassSetImpl {
final Element _element;
- _AttributeClassSet(this._element);
+ AttributeClassSet(this._element);
Set<String> readClasses() {
var classname = _element.attributes['class'];
+ if (classname is AnimatedString) {
+ classname = classname.baseVal;
+ }
Set<String> s = new LinkedHashSet<String>();
if (classname == null) {
@@ -4911,7 +4070,7 @@ class _AttributeClassSet extends CssClassSetImpl {
}
void writeClasses(Set s) {
- _element.attributes['class'] = s.join(' ');
+ _element.setAttribute('class', s.join(' '));
}
}
@@ -4941,7 +4100,7 @@ class SvgElement extends Element implements GlobalEventHandlers {
return fragment.nodes.where((e) => e is SvgElement).single;
}
- CssClassSet get classes => new _AttributeClassSet(this);
+ CssClassSet get classes => new AttributeClassSet(this);
List<Element> get children => new FilteredElementList(this);
@@ -5334,6 +4493,30 @@ class SvgElement extends Element implements GlobalEventHandlers {
static const EventStreamProvider<Event> timeUpdateEvent =
const EventStreamProvider<Event>('timeupdate');
+ @DomName('SVGElement.touchcancelEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<TouchEvent> touchCancelEvent =
+ const EventStreamProvider<TouchEvent>('touchcancel');
+
+ @DomName('SVGElement.touchendEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<TouchEvent> touchEndEvent =
+ const EventStreamProvider<TouchEvent>('touchend');
+
+ @DomName('SVGElement.touchmoveEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<TouchEvent> touchMoveEvent =
+ const EventStreamProvider<TouchEvent>('touchmove');
+
+ @DomName('SVGElement.touchstartEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<TouchEvent> touchStartEvent =
+ const EventStreamProvider<TouchEvent>('touchstart');
+
@DomName('SVGElement.volumechangeEvent')
@DocsEditable()
@Experimental() // untriaged
@@ -5637,6 +4820,28 @@ class SvgElement extends Element implements GlobalEventHandlers {
@Experimental() // untriaged
ElementStream<Event> get onTimeUpdate => timeUpdateEvent.forElement(this);
+ @DomName('SVGElement.ontouchcancel')
+ @DocsEditable()
+ @Experimental() // untriaged
+ ElementStream<TouchEvent> get onTouchCancel =>
+ touchCancelEvent.forElement(this);
+
+ @DomName('SVGElement.ontouchend')
+ @DocsEditable()
+ @Experimental() // untriaged
+ ElementStream<TouchEvent> get onTouchEnd => touchEndEvent.forElement(this);
+
+ @DomName('SVGElement.ontouchmove')
+ @DocsEditable()
+ @Experimental() // untriaged
+ ElementStream<TouchEvent> get onTouchMove => touchMoveEvent.forElement(this);
+
+ @DomName('SVGElement.ontouchstart')
+ @DocsEditable()
+ @Experimental() // untriaged
+ ElementStream<TouchEvent> get onTouchStart =>
+ touchStartEvent.forElement(this);
+
@DomName('SVGElement.onvolumechange')
@DocsEditable()
@Experimental() // untriaged
@@ -5690,22 +4895,6 @@ class SvgSvgElement extends GraphicsElement
@DocsEditable()
final AnimatedLength height;
- @DomName('SVGSVGElement.pixelUnitToMillimeterX')
- @DocsEditable()
- final double pixelUnitToMillimeterX;
-
- @DomName('SVGSVGElement.pixelUnitToMillimeterY')
- @DocsEditable()
- final double pixelUnitToMillimeterY;
-
- @DomName('SVGSVGElement.screenPixelToMillimeterX')
- @DocsEditable()
- final double screenPixelToMillimeterX;
-
- @DomName('SVGSVGElement.screenPixelToMillimeterY')
- @DocsEditable()
- final double screenPixelToMillimeterY;
-
@DomName('SVGSVGElement.useCurrentView')
@DocsEditable()
final bool useCurrentView;
@@ -5949,8 +5138,6 @@ abstract class Tests extends Interceptor {
final StringList requiredFeatures;
final StringList systemLanguage;
-
- bool hasExtension(String extension);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
« no previous file with comments | « sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart ('k') | sdk/lib/web_audio/dart2js/web_audio_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698