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

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

Issue 11299047: Add constructors for SVG elements and remove static factory providers for html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: capitalization fix 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
diff --git a/sdk/lib/svg/dartium/svg_dartium.dart b/sdk/lib/svg/dartium/svg_dartium.dart
index 9dc79b5b678b338eba5daedfc08a4585240d0305..421f75287bca01be8a0bd5981ef529e6de2b9ab0 100644
--- a/sdk/lib/svg/dartium/svg_dartium.dart
+++ b/sdk/lib/svg/dartium/svg_dartium.dart
@@ -58,6 +58,8 @@ class _SVGSVGElementFactoryProvider {
/// @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 @@ class SVGAngle extends NativeFieldWrapperClass1 {
/// @domName SVGAnimateColorElement
class SVGAnimateColorElement extends SVGAnimationElement {
+
+ factory SVGAnimateColorElement() => _SVGElementFactoryProvider.createSVGElement_tag("animateColor");
SVGAnimateColorElement.internal(): super.internal();
}
@@ -280,6 +284,8 @@ class SVGAnimateColorElement extends SVGAnimationElement {
/// @domName SVGAnimateElement
class SVGAnimateElement extends SVGAnimationElement {
+
+ factory SVGAnimateElement() => _SVGElementFactoryProvider.createSVGElement_tag("animate");
SVGAnimateElement.internal(): super.internal();
}
@@ -292,6 +298,8 @@ class SVGAnimateElement extends SVGAnimationElement {
/// @domName SVGAnimateMotionElement
class SVGAnimateMotionElement extends SVGAnimationElement {
+
+ factory SVGAnimateMotionElement() => _SVGElementFactoryProvider.createSVGElement_tag("animateMotion");
SVGAnimateMotionElement.internal(): super.internal();
}
@@ -304,6 +312,8 @@ class SVGAnimateMotionElement extends SVGAnimationElement {
/// @domName SVGAnimateTransformElement
class SVGAnimateTransformElement extends SVGAnimationElement {
+
+ factory SVGAnimateTransformElement() => _SVGElementFactoryProvider.createSVGElement_tag("animateTransform");
SVGAnimateTransformElement.internal(): super.internal();
}
@@ -831,6 +841,8 @@ class SVGAnimatedTransformList extends NativeFieldWrapperClass1 implements List<
/// @domName SVGAnimationElement
class SVGAnimationElement extends SVGElement implements ElementTimeControl, SVGTests, SVGExternalResourcesRequired {
+
+ factory SVGAnimationElement() => _SVGElementFactoryProvider.createSVGElement_tag("animation");
SVGAnimationElement.internal(): super.internal();
@@ -895,6 +907,8 @@ class SVGAnimationElement extends SVGElement implements ElementTimeControl, SVGT
/// @domName SVGCircleElement
class SVGCircleElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGCircleElement() => _SVGElementFactoryProvider.createSVGElement_tag("circle");
SVGCircleElement.internal(): super.internal();
@@ -995,6 +1009,8 @@ class SVGCircleElement extends SVGElement implements SVGLangSpace, SVGStylable,
/// @domName SVGClipPathElement
class SVGClipPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGClipPathElement() => _SVGElementFactoryProvider.createSVGElement_tag("clipPath");
SVGClipPathElement.internal(): super.internal();
@@ -1179,6 +1195,8 @@ class SVGComponentTransferFunctionElement extends SVGElement {
/// @domName SVGCursorElement
class SVGCursorElement extends SVGElement implements SVGURIReference, SVGTests, SVGExternalResourcesRequired {
+
+ factory SVGCursorElement() => _SVGElementFactoryProvider.createSVGElement_tag("cursor");
SVGCursorElement.internal(): super.internal();
@@ -1223,6 +1241,8 @@ class SVGCursorElement extends SVGElement implements SVGURIReference, SVGTests,
/// @domName SVGDefsElement
class SVGDefsElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGDefsElement() => _SVGElementFactoryProvider.createSVGElement_tag("defs");
SVGDefsElement.internal(): super.internal();
@@ -1311,6 +1331,8 @@ class SVGDefsElement extends SVGElement implements SVGLangSpace, SVGStylable, SV
/// @domName SVGDescElement
class SVGDescElement extends SVGElement implements SVGLangSpace, SVGStylable {
+
+ factory SVGDescElement() => _SVGElementFactoryProvider.createSVGElement_tag("desc");
SVGDescElement.internal(): super.internal();
@@ -1608,6 +1630,8 @@ class SVGElementInstanceEvents extends Events {
/// @domName SVGEllipseElement
class SVGEllipseElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGEllipseElement() => _SVGElementFactoryProvider.createSVGElement_tag("ellipse");
SVGEllipseElement.internal(): super.internal();
@@ -3022,6 +3046,8 @@ class SVGFETurbulenceElement extends SVGElement implements SVGFilterPrimitiveSta
/// @domName SVGFilterElement
class SVGFilterElement extends SVGElement implements SVGURIReference, SVGLangSpace, SVGExternalResourcesRequired, SVGStylable {
+
+ factory SVGFilterElement() => _SVGElementFactoryProvider.createSVGElement_tag("filter");
SVGFilterElement.internal(): super.internal();
@@ -3170,6 +3196,8 @@ class SVGFitToViewBox extends NativeFieldWrapperClass1 {
/// @domName SVGFontElement
class SVGFontElement extends SVGElement {
+
+ factory SVGFontElement() => _SVGElementFactoryProvider.createSVGElement_tag("font");
SVGFontElement.internal(): super.internal();
}
@@ -3182,6 +3210,8 @@ class SVGFontElement extends SVGElement {
/// @domName SVGFontFaceElement
class SVGFontFaceElement extends SVGElement {
+
+ factory SVGFontFaceElement() => _SVGElementFactoryProvider.createSVGElement_tag("font-face");
SVGFontFaceElement.internal(): super.internal();
}
@@ -3194,6 +3224,8 @@ class SVGFontFaceElement extends SVGElement {
/// @domName SVGFontFaceFormatElement
class SVGFontFaceFormatElement extends SVGElement {
+
+ factory SVGFontFaceFormatElement() => _SVGElementFactoryProvider.createSVGElement_tag("font-face-format");
SVGFontFaceFormatElement.internal(): super.internal();
}
@@ -3206,6 +3238,8 @@ class SVGFontFaceFormatElement extends SVGElement {
/// @domName SVGFontFaceNameElement
class SVGFontFaceNameElement extends SVGElement {
+
+ factory SVGFontFaceNameElement() => _SVGElementFactoryProvider.createSVGElement_tag("font-face-name");
SVGFontFaceNameElement.internal(): super.internal();
}
@@ -3218,6 +3252,8 @@ class SVGFontFaceNameElement extends SVGElement {
/// @domName SVGFontFaceSrcElement
class SVGFontFaceSrcElement extends SVGElement {
+
+ factory SVGFontFaceSrcElement() => _SVGElementFactoryProvider.createSVGElement_tag("font-face-src");
SVGFontFaceSrcElement.internal(): super.internal();
}
@@ -3230,6 +3266,8 @@ class SVGFontFaceSrcElement extends SVGElement {
/// @domName SVGFontFaceUriElement
class SVGFontFaceUriElement extends SVGElement {
+
+ factory SVGFontFaceUriElement() => _SVGElementFactoryProvider.createSVGElement_tag("font-face-uri");
SVGFontFaceUriElement.internal(): super.internal();
}
@@ -3242,6 +3280,8 @@ class SVGFontFaceUriElement extends SVGElement {
/// @domName SVGForeignObjectElement
class SVGForeignObjectElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGForeignObjectElement() => _SVGElementFactoryProvider.createSVGElement_tag("foreignObject");
SVGForeignObjectElement.internal(): super.internal();
@@ -3346,6 +3386,8 @@ class SVGForeignObjectElement extends SVGElement implements SVGLangSpace, SVGSty
/// @domName SVGGElement
class SVGGElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGGElement() => _SVGElementFactoryProvider.createSVGElement_tag("g");
SVGGElement.internal(): super.internal();
@@ -3434,6 +3476,8 @@ class SVGGElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTe
/// @domName SVGGlyphElement
class SVGGlyphElement extends SVGElement {
+
+ factory SVGGlyphElement() => _SVGElementFactoryProvider.createSVGElement_tag("glyph");
SVGGlyphElement.internal(): super.internal();
}
@@ -3574,6 +3618,8 @@ class SVGGradientElement extends SVGElement implements SVGURIReference, SVGExter
/// @domName SVGHKernElement
class SVGHKernElement extends SVGElement {
+
+ factory SVGHKernElement() => _SVGElementFactoryProvider.createSVGElement_tag("hkern");
SVGHKernElement.internal(): super.internal();
}
@@ -3586,6 +3632,8 @@ class SVGHKernElement extends SVGElement {
/// @domName SVGImageElement
class SVGImageElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable {
+
+ factory SVGImageElement() => _SVGElementFactoryProvider.createSVGElement_tag("image");
SVGImageElement.internal(): super.internal();
@@ -3925,6 +3973,8 @@ class SVGLengthList extends NativeFieldWrapperClass1 implements List<SVGLength>
/// @domName SVGLineElement
class SVGLineElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGLineElement() => _SVGElementFactoryProvider.createSVGElement_tag("line");
SVGLineElement.internal(): super.internal();
@@ -4029,6 +4079,8 @@ class SVGLineElement extends SVGElement implements SVGLangSpace, SVGStylable, SV
/// @domName SVGLinearGradientElement
class SVGLinearGradientElement extends SVGGradientElement {
+
+ factory SVGLinearGradientElement() => _SVGElementFactoryProvider.createSVGElement_tag("linearGradient");
SVGLinearGradientElement.internal(): super.internal();
@@ -4093,6 +4145,8 @@ class SVGLocatable extends NativeFieldWrapperClass1 {
/// @domName SVGMPathElement
class SVGMPathElement extends SVGElement implements SVGURIReference, SVGExternalResourcesRequired {
+
+ factory SVGMPathElement() => _SVGElementFactoryProvider.createSVGElement_tag("mpath");
SVGMPathElement.internal(): super.internal();
@@ -4113,6 +4167,8 @@ class SVGMPathElement extends SVGElement implements SVGURIReference, SVGExternal
/// @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;
@@ -4213,6 +4269,8 @@ class SVGMarkerElement extends SVGElement implements SVGLangSpace, SVGFitToViewB
/// @domName SVGMaskElement
class SVGMaskElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGExternalResourcesRequired {
+
+ factory SVGMaskElement() => _SVGElementFactoryProvider.createSVGElement_tag("mask");
SVGMaskElement.internal(): super.internal();
@@ -4622,6 +4680,8 @@ class SVGPaint extends SVGColor {
/// @domName SVGPathElement
class SVGPathElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGPathElement() => _SVGElementFactoryProvider.createSVGElement_tag("path");
SVGPathElement.internal(): super.internal();
@@ -5699,6 +5759,8 @@ class SVGPathSegMovetoRel extends SVGPathSeg {
/// @domName SVGPatternElement
class SVGPatternElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGFitToViewBox, SVGExternalResourcesRequired {
+
+ factory SVGPatternElement() => _SVGElementFactoryProvider.createSVGElement_tag("pattern");
SVGPatternElement.internal(): super.internal();
@@ -5875,6 +5937,8 @@ class SVGPointList extends NativeFieldWrapperClass1 {
/// @domName SVGPolygonElement
class SVGPolygonElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGPolygonElement() => _SVGElementFactoryProvider.createSVGElement_tag("polygon");
SVGPolygonElement.internal(): super.internal();
@@ -5971,6 +6035,8 @@ class SVGPolygonElement extends SVGElement implements SVGLangSpace, SVGStylable,
/// @domName SVGPolylineElement
class SVGPolylineElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGPolylineElement() => _SVGElementFactoryProvider.createSVGElement_tag("polyline");
SVGPolylineElement.internal(): super.internal();
@@ -6123,6 +6189,8 @@ class SVGPreserveAspectRatio extends NativeFieldWrapperClass1 {
/// @domName SVGRadialGradientElement
class SVGRadialGradientElement extends SVGGradientElement {
+
+ factory SVGRadialGradientElement() => _SVGElementFactoryProvider.createSVGElement_tag("radialGradient");
SVGRadialGradientElement.internal(): super.internal();
@@ -6203,6 +6271,8 @@ class SVGRect extends NativeFieldWrapperClass1 {
/// @domName SVGRectElement
class SVGRectElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGRectElement() => _SVGElementFactoryProvider.createSVGElement_tag("rect");
SVGRectElement.internal(): super.internal();
@@ -6602,6 +6672,8 @@ class SVGSVGElement extends SVGElement implements SVGZoomAndPan, SVGLocatable, S
/// @domName SVGScriptElement
class SVGScriptElement extends SVGElement implements SVGURIReference, SVGExternalResourcesRequired {
+
+ factory SVGScriptElement() => _SVGElementFactoryProvider.createSVGElement_tag("script");
SVGScriptElement.internal(): super.internal();
@@ -6630,6 +6702,8 @@ class SVGScriptElement extends SVGElement implements SVGURIReference, SVGExterna
/// @domName SVGSetElement
class SVGSetElement extends SVGAnimationElement {
+
+ factory SVGSetElement() => _SVGElementFactoryProvider.createSVGElement_tag("set");
SVGSetElement.internal(): super.internal();
}
@@ -6642,6 +6716,8 @@ class SVGSetElement extends SVGAnimationElement {
/// @domName SVGStopElement
class SVGStopElement extends SVGElement implements SVGStylable {
+
+ factory SVGStopElement() => _SVGElementFactoryProvider.createSVGElement_tag("stop");
SVGStopElement.internal(): super.internal();
@@ -6823,6 +6899,8 @@ class SVGStylable extends NativeFieldWrapperClass1 {
/// @domName SVGStyleElement
class SVGStyleElement extends SVGElement implements SVGLangSpace {
+
+ factory SVGStyleElement() => _SVGElementFactoryProvider.createSVGElement_tag("style");
SVGStyleElement.internal(): super.internal();
@@ -6883,6 +6961,8 @@ class SVGStyleElement extends SVGElement implements SVGLangSpace {
/// @domName SVGSwitchElement
class SVGSwitchElement extends SVGElement implements SVGLangSpace, SVGStylable, SVGTests, SVGTransformable, SVGExternalResourcesRequired {
+
+ factory SVGSwitchElement() => _SVGElementFactoryProvider.createSVGElement_tag("switch");
SVGSwitchElement.internal(): super.internal();
@@ -6971,6 +7051,8 @@ class SVGSwitchElement extends SVGElement implements SVGLangSpace, SVGStylable,
/// @domName SVGSymbolElement
class SVGSymbolElement extends SVGElement implements SVGLangSpace, SVGFitToViewBox, SVGExternalResourcesRequired, SVGStylable {
+
+ factory SVGSymbolElement() => _SVGElementFactoryProvider.createSVGElement_tag("symbol");
SVGSymbolElement.internal(): super.internal();
@@ -7023,6 +7105,8 @@ class SVGSymbolElement extends SVGElement implements SVGLangSpace, SVGFitToViewB
/// @domName SVGTRefElement
class SVGTRefElement extends SVGTextPositioningElement implements SVGURIReference {
+
+ factory SVGTRefElement() => _SVGElementFactoryProvider.createSVGElement_tag("tref");
SVGTRefElement.internal(): super.internal();
@@ -7039,6 +7123,8 @@ class SVGTRefElement extends SVGTextPositioningElement implements SVGURIReferenc
/// @domName SVGTSpanElement
class SVGTSpanElement extends SVGTextPositioningElement {
+
+ factory SVGTSpanElement() => _SVGElementFactoryProvider.createSVGElement_tag("tspan");
SVGTSpanElement.internal(): super.internal();
}
@@ -7189,6 +7275,8 @@ class SVGTextContentElement extends SVGElement implements SVGLangSpace, SVGStyla
/// @domName SVGTextElement
class SVGTextElement extends SVGTextPositioningElement implements SVGTransformable {
+
+ factory SVGTextElement() => _SVGElementFactoryProvider.createSVGElement_tag("text");
SVGTextElement.internal(): super.internal();
@@ -7301,6 +7389,8 @@ class SVGTextPositioningElement extends SVGTextContentElement {
/// @domName SVGTitleElement
class SVGTitleElement extends SVGElement implements SVGLangSpace, SVGStylable {
+
+ factory SVGTitleElement() => _SVGElementFactoryProvider.createSVGElement_tag("title");
SVGTitleElement.internal(): super.internal();
@@ -7614,6 +7704,8 @@ class SVGUnitTypes extends NativeFieldWrapperClass1 {
/// @domName SVGUseElement
class SVGUseElement extends SVGElement implements SVGLangSpace, SVGTests, SVGStylable, SVGURIReference, SVGExternalResourcesRequired, SVGTransformable {
+
+ factory SVGUseElement() => _SVGElementFactoryProvider.createSVGElement_tag("use");
SVGUseElement.internal(): super.internal();
@@ -7730,6 +7822,8 @@ class SVGUseElement extends SVGElement implements SVGLangSpace, SVGTests, SVGSty
/// @domName SVGVKernElement
class SVGVKernElement extends SVGElement {
+
+ factory SVGVKernElement() => _SVGElementFactoryProvider.createSVGElement_tag("vkern");
SVGVKernElement.internal(): super.internal();
}
@@ -7742,6 +7836,8 @@ class SVGVKernElement extends SVGElement {
/// @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