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

Unified Diff: sdk/lib/svg/dartium/svg_dartium.dart

Issue 11293292: Add constructors for SVG elements and remove static factory providers for html elements. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tests/html/svgelement_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/svg/dartium/svg_dartium.dart
===================================================================
--- sdk/lib/svg/dartium/svg_dartium.dart (revision 14920)
+++ sdk/lib/svg/dartium/svg_dartium.dart (working copy)
@@ -58,6 +58,8 @@
/// @domName SVGAElement
class SVGAElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable {
+
+ factory SVGAElement() => _SvgElementFactoryProvider.createSVGElement_tag("a");
SVGAElement.internal(): super.internal();
@@ -268,6 +270,8 @@
/// @domName SVGAnimateColorElement
class SVGAnimateColorElement extends SVGAnimationElement {
+
+ factory SVGAnimateColorElement() => _SvgElementFactoryProvider.createSVGElement_tag("animateColor");
SVGAnimateColorElement.internal(): super.internal();
}
@@ -280,6 +284,8 @@
/// @domName SVGAnimateElement
class SVGAnimateElement extends SVGAnimationElement {
+
+ factory SVGAnimateElement() => _SvgElementFactoryProvider.createSVGElement_tag("animate");
SVGAnimateElement.internal(): super.internal();
}
@@ -292,6 +298,8 @@
/// @domName SVGAnimateMotionElement
class SVGAnimateMotionElement extends SVGAnimationElement {
+
+ factory SVGAnimateMotionElement() => _SvgElementFactoryProvider.createSVGElement_tag("animateMotion");
SVGAnimateMotionElement.internal(): super.internal();
}
@@ -304,6 +312,8 @@
/// @domName SVGAnimateTransformElement
class SVGAnimateTransformElement extends SVGAnimationElement {
+
+ factory SVGAnimateTransformElement() => _SvgElementFactoryProvider.createSVGElement_tag("animateTransform");
SVGAnimateTransformElement.internal(): super.internal();
}
@@ -825,6 +835,8 @@
/// @domName SVGAnimationElement
class SVGAnimationElement extends SVGElement implements ElementTimeControl, SVGTests, SVGExternalResourcesRequired {
+
+ factory SVGAnimationElement() => _SvgElementFactoryProvider.createSVGElement_tag("animation");
SVGAnimationElement.internal(): super.internal();
@@ -889,6 +901,8 @@
/// @domName SVGCircleElement
class SVGCircleElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGCircleElement() => _SvgElementFactoryProvider.createSVGElement_tag("circle");
SVGCircleElement.internal(): super.internal();
@@ -989,6 +1003,8 @@
/// @domName SVGClipPathElement
class SVGClipPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGClipPathElement() => _SvgElementFactoryProvider.createSVGElement_tag("clipPath");
SVGClipPathElement.internal(): super.internal();
@@ -1173,6 +1189,8 @@
/// @domName SVGCursorElement
class SVGCursorElement extends SVGElement implements SVGURIReference, SVGTests, SVGExternalResourcesRequired {
+
+ factory SVGCursorElement() => _SvgElementFactoryProvider.createSVGElement_tag("cursor");
SVGCursorElement.internal(): super.internal();
@@ -1217,6 +1235,8 @@
/// @domName SVGDefsElement
class SVGDefsElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGDefsElement() => _SvgElementFactoryProvider.createSVGElement_tag("defs");
SVGDefsElement.internal(): super.internal();
@@ -1305,6 +1325,8 @@
/// @domName SVGDescElement
class SVGDescElement extends SVGElement implements SVGLangSpace, SVGStylable {
+
+ factory SVGDescElement() => _SvgElementFactoryProvider.createSVGElement_tag("desc");
SVGDescElement.internal(): super.internal();
@@ -1597,6 +1619,8 @@
/// @domName SVGEllipseElement
class SVGEllipseElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGEllipseElement() => _SvgElementFactoryProvider.createSVGElement_tag("ellipse");
SVGEllipseElement.internal(): super.internal();
@@ -3011,6 +3035,8 @@
/// @domName SVGFilterElement
class SVGFilterElement extends SVGElement implements SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable {
+
+ factory SVGFilterElement() => _SvgElementFactoryProvider.createSVGElement_tag("filter");
SVGFilterElement.internal(): super.internal();
@@ -3159,6 +3185,8 @@
/// @domName SVGFontElement
class SVGFontElement extends SVGElement {
+
+ factory SVGFontElement() => _SvgElementFactoryProvider.createSVGElement_tag("font");
SVGFontElement.internal(): super.internal();
}
@@ -3171,6 +3199,8 @@
/// @domName SVGFontFaceElement
class SVGFontFaceElement extends SVGElement {
+
+ factory SVGFontFaceElement() => _SvgElementFactoryProvider.createSVGElement_tag("font-face");
SVGFontFaceElement.internal(): super.internal();
}
@@ -3183,6 +3213,8 @@
/// @domName SVGFontFaceFormatElement
class SVGFontFaceFormatElement extends SVGElement {
+
+ factory SVGFontFaceFormatElement() => _SvgElementFactoryProvider.createSVGElement_tag("font-face-format");
SVGFontFaceFormatElement.internal(): super.internal();
}
@@ -3195,6 +3227,8 @@
/// @domName SVGFontFaceNameElement
class SVGFontFaceNameElement extends SVGElement {
+
+ factory SVGFontFaceNameElement() => _SvgElementFactoryProvider.createSVGElement_tag("font-face-name");
SVGFontFaceNameElement.internal(): super.internal();
}
@@ -3207,6 +3241,8 @@
/// @domName SVGFontFaceSrcElement
class SVGFontFaceSrcElement extends SVGElement {
+
+ factory SVGFontFaceSrcElement() => _SvgElementFactoryProvider.createSVGElement_tag("font-face-src");
SVGFontFaceSrcElement.internal(): super.internal();
}
@@ -3219,6 +3255,8 @@
/// @domName SVGFontFaceUriElement
class SVGFontFaceUriElement extends SVGElement {
+
+ factory SVGFontFaceUriElement() => _SvgElementFactoryProvider.createSVGElement_tag("font-face-uri");
SVGFontFaceUriElement.internal(): super.internal();
}
@@ -3231,6 +3269,8 @@
/// @domName SVGForeignObjectElement
class SVGForeignObjectElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGForeignObjectElement() => _SvgElementFactoryProvider.createSVGElement_tag("foreignObject");
SVGForeignObjectElement.internal(): super.internal();
@@ -3335,6 +3375,8 @@
/// @domName SVGGElement
class SVGGElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGGElement() => _SvgElementFactoryProvider.createSVGElement_tag("g");
SVGGElement.internal(): super.internal();
@@ -3423,6 +3465,8 @@
/// @domName SVGGlyphElement
class SVGGlyphElement extends SVGElement {
+
+ factory SVGGlyphElement() => _SvgElementFactoryProvider.createSVGElement_tag("glyph");
SVGGlyphElement.internal(): super.internal();
}
@@ -3563,6 +3607,8 @@
/// @domName SVGHKernElement
class SVGHKernElement extends SVGElement {
+
+ factory SVGHKernElement() => _SvgElementFactoryProvider.createSVGElement_tag("hkern");
SVGHKernElement.internal(): super.internal();
}
@@ -3575,6 +3621,8 @@
/// @domName SVGImageElement
class SVGImageElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable {
+
+ factory SVGImageElement() => _SvgElementFactoryProvider.createSVGElement_tag("image");
SVGImageElement.internal(): super.internal();
@@ -3912,6 +3960,8 @@
/// @domName SVGLineElement
class SVGLineElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGLineElement() => _SvgElementFactoryProvider.createSVGElement_tag("line");
SVGLineElement.internal(): super.internal();
@@ -4016,6 +4066,8 @@
/// @domName SVGLinearGradientElement
class SVGLinearGradientElement extends SVGGradientElement {
+
+ factory SVGLinearGradientElement() => _SvgElementFactoryProvider.createSVGElement_tag("linearGradient");
SVGLinearGradientElement.internal(): super.internal();
@@ -4080,6 +4132,8 @@
/// @domName SVGMPathElement
class SVGMPathElement extends SVGElement implements SVGURIReference, SVGExternalResourcesRequired {
+
+ factory SVGMPathElement() => _SvgElementFactoryProvider.createSVGElement_tag("mpath");
SVGMPathElement.internal(): super.internal();
@@ -4100,6 +4154,8 @@
/// @domName SVGMarkerElement
class SVGMarkerElement extends SVGElement implements SVGLangSpace, SVGFitToViewBox, SVGExternalResourcesRequired, SVGStylable {
+
+ factory SVGMarkerElement() => _SvgElementFactoryProvider.createSVGElement_tag("marker");
SVGMarkerElement.internal(): super.internal();
static const int SVG_MARKERUNITS_STROKEWIDTH = 2;
@@ -4200,6 +4256,8 @@
/// @domName SVGMaskElement
class SVGMaskElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGExternalResourcesRequired {
+
+ factory SVGMaskElement() => _SvgElementFactoryProvider.createSVGElement_tag("mask");
SVGMaskElement.internal(): super.internal();
@@ -4607,6 +4665,8 @@
/// @domName SVGPathElement
class SVGPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGPathElement() => _SvgElementFactoryProvider.createSVGElement_tag("path");
SVGPathElement.internal(): super.internal();
@@ -5682,6 +5742,8 @@
/// @domName SVGPatternElement
class SVGPatternElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGFitToViewBox, SVGExternalResourcesRequired {
+
+ factory SVGPatternElement() => _SvgElementFactoryProvider.createSVGElement_tag("pattern");
SVGPatternElement.internal(): super.internal();
@@ -5858,6 +5920,8 @@
/// @domName SVGPolygonElement
class SVGPolygonElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGPolygonElement() => _SvgElementFactoryProvider.createSVGElement_tag("polygon");
SVGPolygonElement.internal(): super.internal();
@@ -5954,6 +6018,8 @@
/// @domName SVGPolylineElement
class SVGPolylineElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGPolylineElement() => _SvgElementFactoryProvider.createSVGElement_tag("polyline");
SVGPolylineElement.internal(): super.internal();
@@ -6106,6 +6172,8 @@
/// @domName SVGRadialGradientElement
class SVGRadialGradientElement extends SVGGradientElement {
+
+ factory SVGRadialGradientElement() => _SvgElementFactoryProvider.createSVGElement_tag("radialGradient");
SVGRadialGradientElement.internal(): super.internal();
@@ -6186,6 +6254,8 @@
/// @domName SVGRectElement
class SVGRectElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGRectElement() => _SvgElementFactoryProvider.createSVGElement_tag("rect");
SVGRectElement.internal(): super.internal();
@@ -6585,6 +6655,8 @@
/// @domName SVGScriptElement
class SVGScriptElement extends SVGElement implements SVGURIReference, SVGExternalResourcesRequired {
+
+ factory SVGScriptElement() => _SvgElementFactoryProvider.createSVGElement_tag("script");
SVGScriptElement.internal(): super.internal();
@@ -6613,6 +6685,8 @@
/// @domName SVGSetElement
class SVGSetElement extends SVGAnimationElement {
+
+ factory SVGSetElement() => _SvgElementFactoryProvider.createSVGElement_tag("set");
SVGSetElement.internal(): super.internal();
}
@@ -6625,6 +6699,8 @@
/// @domName SVGStopElement
class SVGStopElement extends SVGElement implements SVGStylable {
+
+ factory SVGStopElement() => _SvgElementFactoryProvider.createSVGElement_tag("stop");
SVGStopElement.internal(): super.internal();
@@ -6804,6 +6880,8 @@
/// @domName SVGStyleElement
class SVGStyleElement extends SVGElement implements SVGLangSpace {
+
+ factory SVGStyleElement() => _SvgElementFactoryProvider.createSVGElement_tag("style");
SVGStyleElement.internal(): super.internal();
@@ -6864,6 +6942,8 @@
/// @domName SVGSwitchElement
class SVGSwitchElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGSwitchElement() => _SvgElementFactoryProvider.createSVGElement_tag("switch");
SVGSwitchElement.internal(): super.internal();
@@ -6952,6 +7032,8 @@
/// @domName SVGSymbolElement
class SVGSymbolElement extends SVGElement implements SVGLangSpace, SVGFitToViewBox, SVGExternalResourcesRequired, SVGStylable {
+
+ factory SVGSymbolElement() => _SvgElementFactoryProvider.createSVGElement_tag("symbol");
SVGSymbolElement.internal(): super.internal();
@@ -7004,6 +7086,8 @@
/// @domName SVGTRefElement
class SVGTRefElement extends SVGTextPositioningElement implements SVGURIReference {
+
+ factory SVGTRefElement() => _SvgElementFactoryProvider.createSVGElement_tag("tref");
SVGTRefElement.internal(): super.internal();
@@ -7020,6 +7104,8 @@
/// @domName SVGTSpanElement
class SVGTSpanElement extends SVGTextPositioningElement {
+
+ factory SVGTSpanElement() => _SvgElementFactoryProvider.createSVGElement_tag("tspan");
SVGTSpanElement.internal(): super.internal();
}
@@ -7170,6 +7256,8 @@
/// @domName SVGTextElement
class SVGTextElement extends SVGTextPositioningElement implements SVGTransformable {
+
+ factory SVGTextElement() => _SvgElementFactoryProvider.createSVGElement_tag("text");
SVGTextElement.internal(): super.internal();
@@ -7282,6 +7370,8 @@
/// @domName SVGTitleElement
class SVGTitleElement extends SVGElement implements SVGLangSpace, SVGStylable {
+
+ factory SVGTitleElement() => _SvgElementFactoryProvider.createSVGElement_tag("title");
SVGTitleElement.internal(): super.internal();
@@ -7593,6 +7683,8 @@
/// @domName SVGUseElement
class SVGUseElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable {
+
+ factory SVGUseElement() => _SvgElementFactoryProvider.createSVGElement_tag("use");
SVGUseElement.internal(): super.internal();
@@ -7709,6 +7801,8 @@
/// @domName SVGVKernElement
class SVGVKernElement extends SVGElement {
+
+ factory SVGVKernElement() => _SvgElementFactoryProvider.createSVGElement_tag("vkern");
SVGVKernElement.internal(): super.internal();
}
@@ -7721,6 +7815,8 @@
/// @domName SVGViewElement
class SVGViewElement extends SVGElement implements SVGFitToViewBox, SVGZoomAndPan, SVGExternalResourcesRequired {
+
+ factory SVGViewElement() => _SvgElementFactoryProvider.createSVGElement_tag("view");
SVGViewElement.internal(): super.internal();
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tests/html/svgelement_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698