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

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

Issue 1235903003: Turn on JS interop usage for DOM Dart libraries (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Merged Created 5 years, 5 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/dartium/svg_dartium.dart
diff --git a/sdk/lib/svg/dartium/svg_dartium.dart b/sdk/lib/svg/dartium/svg_dartium.dart
index c08a14e5f9852e82721481499b1caf8e0aea7f0b..0ccd320a978376dc2cea1de19b28a26884a125dd 100644
--- a/sdk/lib/svg/dartium/svg_dartium.dart
+++ b/sdk/lib/svg/dartium/svg_dartium.dart
@@ -169,6 +169,152 @@ final svgBlinkMap = {
};
+// FIXME: Can we make this private?
+final svgBlinkFunctionMap = {
+ 'SVGAElement': () => AElement.internalCreateAElement,
+ 'SVGAltGlyphDefElement': () => _SVGAltGlyphDefElement.internalCreate_SVGAltGlyphDefElement,
+ 'SVGAltGlyphElement': () => AltGlyphElement.internalCreateAltGlyphElement,
+ 'SVGAltGlyphItemElement': () => _SVGAltGlyphItemElement.internalCreate_SVGAltGlyphItemElement,
+ 'SVGAngle': () => Angle.internalCreateAngle,
+ 'SVGAnimateElement': () => AnimateElement.internalCreateAnimateElement,
+ 'SVGAnimateMotionElement': () => AnimateMotionElement.internalCreateAnimateMotionElement,
+ 'SVGAnimateTransformElement': () => AnimateTransformElement.internalCreateAnimateTransformElement,
+ 'SVGAnimatedAngle': () => AnimatedAngle.internalCreateAnimatedAngle,
+ 'SVGAnimatedBoolean': () => AnimatedBoolean.internalCreateAnimatedBoolean,
+ 'SVGAnimatedEnumeration': () => AnimatedEnumeration.internalCreateAnimatedEnumeration,
+ 'SVGAnimatedInteger': () => AnimatedInteger.internalCreateAnimatedInteger,
+ 'SVGAnimatedLength': () => AnimatedLength.internalCreateAnimatedLength,
+ 'SVGAnimatedLengthList': () => AnimatedLengthList.internalCreateAnimatedLengthList,
+ 'SVGAnimatedNumber': () => AnimatedNumber.internalCreateAnimatedNumber,
+ 'SVGAnimatedNumberList': () => AnimatedNumberList.internalCreateAnimatedNumberList,
+ 'SVGAnimatedPreserveAspectRatio': () => AnimatedPreserveAspectRatio.internalCreateAnimatedPreserveAspectRatio,
+ 'SVGAnimatedRect': () => AnimatedRect.internalCreateAnimatedRect,
+ 'SVGAnimatedString': () => AnimatedString.internalCreateAnimatedString,
+ 'SVGAnimatedTransformList': () => AnimatedTransformList.internalCreateAnimatedTransformList,
+ 'SVGAnimationElement': () => AnimationElement.internalCreateAnimationElement,
+ 'SVGCircleElement': () => CircleElement.internalCreateCircleElement,
+ 'SVGClipPathElement': () => ClipPathElement.internalCreateClipPathElement,
+ 'SVGComponentTransferFunctionElement': () => _SVGComponentTransferFunctionElement.internalCreate_SVGComponentTransferFunctionElement,
+ 'SVGCursorElement': () => _SVGCursorElement.internalCreate_SVGCursorElement,
+ 'SVGDefsElement': () => DefsElement.internalCreateDefsElement,
+ 'SVGDescElement': () => DescElement.internalCreateDescElement,
+ 'SVGDiscardElement': () => DiscardElement.internalCreateDiscardElement,
+ 'SVGElement': () => SvgElement.internalCreateSvgElement,
+ 'SVGEllipseElement': () => EllipseElement.internalCreateEllipseElement,
+ 'SVGFEBlendElement': () => FEBlendElement.internalCreateFEBlendElement,
+ 'SVGFEColorMatrixElement': () => FEColorMatrixElement.internalCreateFEColorMatrixElement,
+ 'SVGFEComponentTransferElement': () => FEComponentTransferElement.internalCreateFEComponentTransferElement,
+ 'SVGFECompositeElement': () => FECompositeElement.internalCreateFECompositeElement,
+ 'SVGFEConvolveMatrixElement': () => FEConvolveMatrixElement.internalCreateFEConvolveMatrixElement,
+ 'SVGFEDiffuseLightingElement': () => FEDiffuseLightingElement.internalCreateFEDiffuseLightingElement,
+ 'SVGFEDisplacementMapElement': () => FEDisplacementMapElement.internalCreateFEDisplacementMapElement,
+ 'SVGFEDistantLightElement': () => FEDistantLightElement.internalCreateFEDistantLightElement,
+ 'SVGFEDropShadowElement': () => _SVGFEDropShadowElement.internalCreate_SVGFEDropShadowElement,
+ 'SVGFEFloodElement': () => FEFloodElement.internalCreateFEFloodElement,
+ 'SVGFEFuncAElement': () => FEFuncAElement.internalCreateFEFuncAElement,
+ 'SVGFEFuncBElement': () => FEFuncBElement.internalCreateFEFuncBElement,
+ 'SVGFEFuncGElement': () => FEFuncGElement.internalCreateFEFuncGElement,
+ 'SVGFEFuncRElement': () => FEFuncRElement.internalCreateFEFuncRElement,
+ 'SVGFEGaussianBlurElement': () => FEGaussianBlurElement.internalCreateFEGaussianBlurElement,
+ 'SVGFEImageElement': () => FEImageElement.internalCreateFEImageElement,
+ 'SVGFEMergeElement': () => FEMergeElement.internalCreateFEMergeElement,
+ 'SVGFEMergeNodeElement': () => FEMergeNodeElement.internalCreateFEMergeNodeElement,
+ 'SVGFEMorphologyElement': () => FEMorphologyElement.internalCreateFEMorphologyElement,
+ 'SVGFEOffsetElement': () => FEOffsetElement.internalCreateFEOffsetElement,
+ 'SVGFEPointLightElement': () => FEPointLightElement.internalCreateFEPointLightElement,
+ 'SVGFESpecularLightingElement': () => FESpecularLightingElement.internalCreateFESpecularLightingElement,
+ 'SVGFESpotLightElement': () => FESpotLightElement.internalCreateFESpotLightElement,
+ 'SVGFETileElement': () => FETileElement.internalCreateFETileElement,
+ 'SVGFETurbulenceElement': () => FETurbulenceElement.internalCreateFETurbulenceElement,
+ 'SVGFilterElement': () => FilterElement.internalCreateFilterElement,
+ 'SVGFilterPrimitiveStandardAttributes': () => FilterPrimitiveStandardAttributes.internalCreateFilterPrimitiveStandardAttributes,
+ 'SVGFitToViewBox': () => FitToViewBox.internalCreateFitToViewBox,
+ 'SVGFontElement': () => _SVGFontElement.internalCreate_SVGFontElement,
+ 'SVGFontFaceElement': () => _SVGFontFaceElement.internalCreate_SVGFontFaceElement,
+ 'SVGFontFaceFormatElement': () => _SVGFontFaceFormatElement.internalCreate_SVGFontFaceFormatElement,
+ 'SVGFontFaceNameElement': () => _SVGFontFaceNameElement.internalCreate_SVGFontFaceNameElement,
+ 'SVGFontFaceSrcElement': () => _SVGFontFaceSrcElement.internalCreate_SVGFontFaceSrcElement,
+ 'SVGFontFaceUriElement': () => _SVGFontFaceUriElement.internalCreate_SVGFontFaceUriElement,
+ 'SVGForeignObjectElement': () => ForeignObjectElement.internalCreateForeignObjectElement,
+ 'SVGGElement': () => GElement.internalCreateGElement,
+ 'SVGGeometryElement': () => GeometryElement.internalCreateGeometryElement,
+ 'SVGGlyphElement': () => _SVGGlyphElement.internalCreate_SVGGlyphElement,
+ 'SVGGlyphRefElement': () => _SVGGlyphRefElement.internalCreate_SVGGlyphRefElement,
+ 'SVGGradientElement': () => _GradientElement.internalCreate_GradientElement,
+ 'SVGGraphicsElement': () => GraphicsElement.internalCreateGraphicsElement,
+ 'SVGHKernElement': () => _SVGHKernElement.internalCreate_SVGHKernElement,
+ 'SVGImageElement': () => ImageElement.internalCreateImageElement,
+ 'SVGLength': () => Length.internalCreateLength,
+ 'SVGLengthList': () => LengthList.internalCreateLengthList,
+ 'SVGLineElement': () => LineElement.internalCreateLineElement,
+ 'SVGLinearGradientElement': () => LinearGradientElement.internalCreateLinearGradientElement,
+ 'SVGMPathElement': () => _SVGMPathElement.internalCreate_SVGMPathElement,
+ 'SVGMarkerElement': () => MarkerElement.internalCreateMarkerElement,
+ 'SVGMaskElement': () => MaskElement.internalCreateMaskElement,
+ 'SVGMatrix': () => Matrix.internalCreateMatrix,
+ 'SVGMetadataElement': () => MetadataElement.internalCreateMetadataElement,
+ 'SVGMissingGlyphElement': () => _SVGMissingGlyphElement.internalCreate_SVGMissingGlyphElement,
+ 'SVGNumber': () => Number.internalCreateNumber,
+ 'SVGNumberList': () => NumberList.internalCreateNumberList,
+ 'SVGPathElement': () => PathElement.internalCreatePathElement,
+ 'SVGPathSeg': () => PathSeg.internalCreatePathSeg,
+ 'SVGPathSegArcAbs': () => PathSegArcAbs.internalCreatePathSegArcAbs,
+ 'SVGPathSegArcRel': () => PathSegArcRel.internalCreatePathSegArcRel,
+ 'SVGPathSegClosePath': () => PathSegClosePath.internalCreatePathSegClosePath,
+ 'SVGPathSegCurvetoCubicAbs': () => PathSegCurvetoCubicAbs.internalCreatePathSegCurvetoCubicAbs,
+ 'SVGPathSegCurvetoCubicRel': () => PathSegCurvetoCubicRel.internalCreatePathSegCurvetoCubicRel,
+ 'SVGPathSegCurvetoCubicSmoothAbs': () => PathSegCurvetoCubicSmoothAbs.internalCreatePathSegCurvetoCubicSmoothAbs,
+ 'SVGPathSegCurvetoCubicSmoothRel': () => PathSegCurvetoCubicSmoothRel.internalCreatePathSegCurvetoCubicSmoothRel,
+ 'SVGPathSegCurvetoQuadraticAbs': () => PathSegCurvetoQuadraticAbs.internalCreatePathSegCurvetoQuadraticAbs,
+ 'SVGPathSegCurvetoQuadraticRel': () => PathSegCurvetoQuadraticRel.internalCreatePathSegCurvetoQuadraticRel,
+ 'SVGPathSegCurvetoQuadraticSmoothAbs': () => PathSegCurvetoQuadraticSmoothAbs.internalCreatePathSegCurvetoQuadraticSmoothAbs,
+ 'SVGPathSegCurvetoQuadraticSmoothRel': () => PathSegCurvetoQuadraticSmoothRel.internalCreatePathSegCurvetoQuadraticSmoothRel,
+ 'SVGPathSegLinetoAbs': () => PathSegLinetoAbs.internalCreatePathSegLinetoAbs,
+ 'SVGPathSegLinetoHorizontalAbs': () => PathSegLinetoHorizontalAbs.internalCreatePathSegLinetoHorizontalAbs,
+ 'SVGPathSegLinetoHorizontalRel': () => PathSegLinetoHorizontalRel.internalCreatePathSegLinetoHorizontalRel,
+ 'SVGPathSegLinetoRel': () => PathSegLinetoRel.internalCreatePathSegLinetoRel,
+ 'SVGPathSegLinetoVerticalAbs': () => PathSegLinetoVerticalAbs.internalCreatePathSegLinetoVerticalAbs,
+ 'SVGPathSegLinetoVerticalRel': () => PathSegLinetoVerticalRel.internalCreatePathSegLinetoVerticalRel,
+ 'SVGPathSegList': () => PathSegList.internalCreatePathSegList,
+ 'SVGPathSegMovetoAbs': () => PathSegMovetoAbs.internalCreatePathSegMovetoAbs,
+ 'SVGPathSegMovetoRel': () => PathSegMovetoRel.internalCreatePathSegMovetoRel,
+ 'SVGPatternElement': () => PatternElement.internalCreatePatternElement,
+ 'SVGPoint': () => Point.internalCreatePoint,
+ 'SVGPointList': () => PointList.internalCreatePointList,
+ 'SVGPolygonElement': () => PolygonElement.internalCreatePolygonElement,
+ 'SVGPolylineElement': () => PolylineElement.internalCreatePolylineElement,
+ 'SVGPreserveAspectRatio': () => PreserveAspectRatio.internalCreatePreserveAspectRatio,
+ 'SVGRadialGradientElement': () => RadialGradientElement.internalCreateRadialGradientElement,
+ 'SVGRect': () => Rect.internalCreateRect,
+ 'SVGRectElement': () => RectElement.internalCreateRectElement,
+ 'SVGRenderingIntent': () => RenderingIntent.internalCreateRenderingIntent,
+ 'SVGSVGElement': () => SvgSvgElement.internalCreateSvgSvgElement,
+ 'SVGScriptElement': () => ScriptElement.internalCreateScriptElement,
+ 'SVGSetElement': () => SetElement.internalCreateSetElement,
+ 'SVGStopElement': () => StopElement.internalCreateStopElement,
+ 'SVGStringList': () => StringList.internalCreateStringList,
+ 'SVGStyleElement': () => StyleElement.internalCreateStyleElement,
+ 'SVGSwitchElement': () => SwitchElement.internalCreateSwitchElement,
+ 'SVGSymbolElement': () => SymbolElement.internalCreateSymbolElement,
+ 'SVGTSpanElement': () => TSpanElement.internalCreateTSpanElement,
+ 'SVGTests': () => Tests.internalCreateTests,
+ 'SVGTextContentElement': () => TextContentElement.internalCreateTextContentElement,
+ 'SVGTextElement': () => TextElement.internalCreateTextElement,
+ 'SVGTextPathElement': () => TextPathElement.internalCreateTextPathElement,
+ 'SVGTextPositioningElement': () => TextPositioningElement.internalCreateTextPositioningElement,
+ 'SVGTitleElement': () => TitleElement.internalCreateTitleElement,
+ 'SVGTransform': () => Transform.internalCreateTransform,
+ 'SVGTransformList': () => TransformList.internalCreateTransformList,
+ 'SVGURIReference': () => UriReference.internalCreateUriReference,
+ 'SVGUnitTypes': () => UnitTypes.internalCreateUnitTypes,
+ 'SVGUseElement': () => UseElement.internalCreateUseElement,
+ 'SVGVKernElement': () => _SVGVKernElement.internalCreate_SVGVKernElement,
+ 'SVGViewElement': () => ViewElement.internalCreateViewElement,
+ 'SVGViewSpec': () => ViewSpec.internalCreateViewSpec,
+ 'SVGZoomAndPan': () => ZoomAndPan.internalCreateZoomAndPan,
+ 'SVGZoomEvent': () => ZoomEvent.internalCreateZoomEvent,
+
+};
// 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.
« no previous file with comments | « sdk/lib/indexed_db/dartium/indexed_db_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698