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

Side by Side 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 unified diff | Download patch
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 'SVGUnitTypes': () => UnitTypes, 162 'SVGUnitTypes': () => UnitTypes,
163 'SVGUseElement': () => UseElement, 163 'SVGUseElement': () => UseElement,
164 'SVGVKernElement': () => _SVGVKernElement, 164 'SVGVKernElement': () => _SVGVKernElement,
165 'SVGViewElement': () => ViewElement, 165 'SVGViewElement': () => ViewElement,
166 'SVGViewSpec': () => ViewSpec, 166 'SVGViewSpec': () => ViewSpec,
167 'SVGZoomAndPan': () => ZoomAndPan, 167 'SVGZoomAndPan': () => ZoomAndPan,
168 'SVGZoomEvent': () => ZoomEvent, 168 'SVGZoomEvent': () => ZoomEvent,
169 169
170 }; 170 };
171 171
172 // FIXME: Can we make this private?
173 final svgBlinkFunctionMap = {
174 'SVGAElement': () => AElement.internalCreateAElement,
175 'SVGAltGlyphDefElement': () => _SVGAltGlyphDefElement.internalCreate_SVGAltGly phDefElement,
176 'SVGAltGlyphElement': () => AltGlyphElement.internalCreateAltGlyphElement,
177 'SVGAltGlyphItemElement': () => _SVGAltGlyphItemElement.internalCreate_SVGAltG lyphItemElement,
178 'SVGAngle': () => Angle.internalCreateAngle,
179 'SVGAnimateElement': () => AnimateElement.internalCreateAnimateElement,
180 'SVGAnimateMotionElement': () => AnimateMotionElement.internalCreateAnimateMot ionElement,
181 'SVGAnimateTransformElement': () => AnimateTransformElement.internalCreateAnim ateTransformElement,
182 'SVGAnimatedAngle': () => AnimatedAngle.internalCreateAnimatedAngle,
183 'SVGAnimatedBoolean': () => AnimatedBoolean.internalCreateAnimatedBoolean,
184 'SVGAnimatedEnumeration': () => AnimatedEnumeration.internalCreateAnimatedEnum eration,
185 'SVGAnimatedInteger': () => AnimatedInteger.internalCreateAnimatedInteger,
186 'SVGAnimatedLength': () => AnimatedLength.internalCreateAnimatedLength,
187 'SVGAnimatedLengthList': () => AnimatedLengthList.internalCreateAnimatedLength List,
188 'SVGAnimatedNumber': () => AnimatedNumber.internalCreateAnimatedNumber,
189 'SVGAnimatedNumberList': () => AnimatedNumberList.internalCreateAnimatedNumber List,
190 'SVGAnimatedPreserveAspectRatio': () => AnimatedPreserveAspectRatio.internalCr eateAnimatedPreserveAspectRatio,
191 'SVGAnimatedRect': () => AnimatedRect.internalCreateAnimatedRect,
192 'SVGAnimatedString': () => AnimatedString.internalCreateAnimatedString,
193 'SVGAnimatedTransformList': () => AnimatedTransformList.internalCreateAnimated TransformList,
194 'SVGAnimationElement': () => AnimationElement.internalCreateAnimationElement,
195 'SVGCircleElement': () => CircleElement.internalCreateCircleElement,
196 'SVGClipPathElement': () => ClipPathElement.internalCreateClipPathElement,
197 'SVGComponentTransferFunctionElement': () => _SVGComponentTransferFunctionElem ent.internalCreate_SVGComponentTransferFunctionElement,
198 'SVGCursorElement': () => _SVGCursorElement.internalCreate_SVGCursorElement,
199 'SVGDefsElement': () => DefsElement.internalCreateDefsElement,
200 'SVGDescElement': () => DescElement.internalCreateDescElement,
201 'SVGDiscardElement': () => DiscardElement.internalCreateDiscardElement,
202 'SVGElement': () => SvgElement.internalCreateSvgElement,
203 'SVGEllipseElement': () => EllipseElement.internalCreateEllipseElement,
204 'SVGFEBlendElement': () => FEBlendElement.internalCreateFEBlendElement,
205 'SVGFEColorMatrixElement': () => FEColorMatrixElement.internalCreateFEColorMat rixElement,
206 'SVGFEComponentTransferElement': () => FEComponentTransferElement.internalCrea teFEComponentTransferElement,
207 'SVGFECompositeElement': () => FECompositeElement.internalCreateFECompositeEle ment,
208 'SVGFEConvolveMatrixElement': () => FEConvolveMatrixElement.internalCreateFECo nvolveMatrixElement,
209 'SVGFEDiffuseLightingElement': () => FEDiffuseLightingElement.internalCreateFE DiffuseLightingElement,
210 'SVGFEDisplacementMapElement': () => FEDisplacementMapElement.internalCreateFE DisplacementMapElement,
211 'SVGFEDistantLightElement': () => FEDistantLightElement.internalCreateFEDistan tLightElement,
212 'SVGFEDropShadowElement': () => _SVGFEDropShadowElement.internalCreate_SVGFEDr opShadowElement,
213 'SVGFEFloodElement': () => FEFloodElement.internalCreateFEFloodElement,
214 'SVGFEFuncAElement': () => FEFuncAElement.internalCreateFEFuncAElement,
215 'SVGFEFuncBElement': () => FEFuncBElement.internalCreateFEFuncBElement,
216 'SVGFEFuncGElement': () => FEFuncGElement.internalCreateFEFuncGElement,
217 'SVGFEFuncRElement': () => FEFuncRElement.internalCreateFEFuncRElement,
218 'SVGFEGaussianBlurElement': () => FEGaussianBlurElement.internalCreateFEGaussi anBlurElement,
219 'SVGFEImageElement': () => FEImageElement.internalCreateFEImageElement,
220 'SVGFEMergeElement': () => FEMergeElement.internalCreateFEMergeElement,
221 'SVGFEMergeNodeElement': () => FEMergeNodeElement.internalCreateFEMergeNodeEle ment,
222 'SVGFEMorphologyElement': () => FEMorphologyElement.internalCreateFEMorphology Element,
223 'SVGFEOffsetElement': () => FEOffsetElement.internalCreateFEOffsetElement,
224 'SVGFEPointLightElement': () => FEPointLightElement.internalCreateFEPointLight Element,
225 'SVGFESpecularLightingElement': () => FESpecularLightingElement.internalCreate FESpecularLightingElement,
226 'SVGFESpotLightElement': () => FESpotLightElement.internalCreateFESpotLightEle ment,
227 'SVGFETileElement': () => FETileElement.internalCreateFETileElement,
228 'SVGFETurbulenceElement': () => FETurbulenceElement.internalCreateFETurbulence Element,
229 'SVGFilterElement': () => FilterElement.internalCreateFilterElement,
230 'SVGFilterPrimitiveStandardAttributes': () => FilterPrimitiveStandardAttribute s.internalCreateFilterPrimitiveStandardAttributes,
231 'SVGFitToViewBox': () => FitToViewBox.internalCreateFitToViewBox,
232 'SVGFontElement': () => _SVGFontElement.internalCreate_SVGFontElement,
233 'SVGFontFaceElement': () => _SVGFontFaceElement.internalCreate_SVGFontFaceElem ent,
234 'SVGFontFaceFormatElement': () => _SVGFontFaceFormatElement.internalCreate_SVG FontFaceFormatElement,
235 'SVGFontFaceNameElement': () => _SVGFontFaceNameElement.internalCreate_SVGFont FaceNameElement,
236 'SVGFontFaceSrcElement': () => _SVGFontFaceSrcElement.internalCreate_SVGFontFa ceSrcElement,
237 'SVGFontFaceUriElement': () => _SVGFontFaceUriElement.internalCreate_SVGFontFa ceUriElement,
238 'SVGForeignObjectElement': () => ForeignObjectElement.internalCreateForeignObj ectElement,
239 'SVGGElement': () => GElement.internalCreateGElement,
240 'SVGGeometryElement': () => GeometryElement.internalCreateGeometryElement,
241 'SVGGlyphElement': () => _SVGGlyphElement.internalCreate_SVGGlyphElement,
242 'SVGGlyphRefElement': () => _SVGGlyphRefElement.internalCreate_SVGGlyphRefElem ent,
243 'SVGGradientElement': () => _GradientElement.internalCreate_GradientElement,
244 'SVGGraphicsElement': () => GraphicsElement.internalCreateGraphicsElement,
245 'SVGHKernElement': () => _SVGHKernElement.internalCreate_SVGHKernElement,
246 'SVGImageElement': () => ImageElement.internalCreateImageElement,
247 'SVGLength': () => Length.internalCreateLength,
248 'SVGLengthList': () => LengthList.internalCreateLengthList,
249 'SVGLineElement': () => LineElement.internalCreateLineElement,
250 'SVGLinearGradientElement': () => LinearGradientElement.internalCreateLinearGr adientElement,
251 'SVGMPathElement': () => _SVGMPathElement.internalCreate_SVGMPathElement,
252 'SVGMarkerElement': () => MarkerElement.internalCreateMarkerElement,
253 'SVGMaskElement': () => MaskElement.internalCreateMaskElement,
254 'SVGMatrix': () => Matrix.internalCreateMatrix,
255 'SVGMetadataElement': () => MetadataElement.internalCreateMetadataElement,
256 'SVGMissingGlyphElement': () => _SVGMissingGlyphElement.internalCreate_SVGMiss ingGlyphElement,
257 'SVGNumber': () => Number.internalCreateNumber,
258 'SVGNumberList': () => NumberList.internalCreateNumberList,
259 'SVGPathElement': () => PathElement.internalCreatePathElement,
260 'SVGPathSeg': () => PathSeg.internalCreatePathSeg,
261 'SVGPathSegArcAbs': () => PathSegArcAbs.internalCreatePathSegArcAbs,
262 'SVGPathSegArcRel': () => PathSegArcRel.internalCreatePathSegArcRel,
263 'SVGPathSegClosePath': () => PathSegClosePath.internalCreatePathSegClosePath,
264 'SVGPathSegCurvetoCubicAbs': () => PathSegCurvetoCubicAbs.internalCreatePathSe gCurvetoCubicAbs,
265 'SVGPathSegCurvetoCubicRel': () => PathSegCurvetoCubicRel.internalCreatePathSe gCurvetoCubicRel,
266 'SVGPathSegCurvetoCubicSmoothAbs': () => PathSegCurvetoCubicSmoothAbs.internal CreatePathSegCurvetoCubicSmoothAbs,
267 'SVGPathSegCurvetoCubicSmoothRel': () => PathSegCurvetoCubicSmoothRel.internal CreatePathSegCurvetoCubicSmoothRel,
268 'SVGPathSegCurvetoQuadraticAbs': () => PathSegCurvetoQuadraticAbs.internalCrea tePathSegCurvetoQuadraticAbs,
269 'SVGPathSegCurvetoQuadraticRel': () => PathSegCurvetoQuadraticRel.internalCrea tePathSegCurvetoQuadraticRel,
270 'SVGPathSegCurvetoQuadraticSmoothAbs': () => PathSegCurvetoQuadraticSmoothAbs. internalCreatePathSegCurvetoQuadraticSmoothAbs,
271 'SVGPathSegCurvetoQuadraticSmoothRel': () => PathSegCurvetoQuadraticSmoothRel. internalCreatePathSegCurvetoQuadraticSmoothRel,
272 'SVGPathSegLinetoAbs': () => PathSegLinetoAbs.internalCreatePathSegLinetoAbs,
273 'SVGPathSegLinetoHorizontalAbs': () => PathSegLinetoHorizontalAbs.internalCrea tePathSegLinetoHorizontalAbs,
274 'SVGPathSegLinetoHorizontalRel': () => PathSegLinetoHorizontalRel.internalCrea tePathSegLinetoHorizontalRel,
275 'SVGPathSegLinetoRel': () => PathSegLinetoRel.internalCreatePathSegLinetoRel,
276 'SVGPathSegLinetoVerticalAbs': () => PathSegLinetoVerticalAbs.internalCreatePa thSegLinetoVerticalAbs,
277 'SVGPathSegLinetoVerticalRel': () => PathSegLinetoVerticalRel.internalCreatePa thSegLinetoVerticalRel,
278 'SVGPathSegList': () => PathSegList.internalCreatePathSegList,
279 'SVGPathSegMovetoAbs': () => PathSegMovetoAbs.internalCreatePathSegMovetoAbs,
280 'SVGPathSegMovetoRel': () => PathSegMovetoRel.internalCreatePathSegMovetoRel,
281 'SVGPatternElement': () => PatternElement.internalCreatePatternElement,
282 'SVGPoint': () => Point.internalCreatePoint,
283 'SVGPointList': () => PointList.internalCreatePointList,
284 'SVGPolygonElement': () => PolygonElement.internalCreatePolygonElement,
285 'SVGPolylineElement': () => PolylineElement.internalCreatePolylineElement,
286 'SVGPreserveAspectRatio': () => PreserveAspectRatio.internalCreatePreserveAspe ctRatio,
287 'SVGRadialGradientElement': () => RadialGradientElement.internalCreateRadialGr adientElement,
288 'SVGRect': () => Rect.internalCreateRect,
289 'SVGRectElement': () => RectElement.internalCreateRectElement,
290 'SVGRenderingIntent': () => RenderingIntent.internalCreateRenderingIntent,
291 'SVGSVGElement': () => SvgSvgElement.internalCreateSvgSvgElement,
292 'SVGScriptElement': () => ScriptElement.internalCreateScriptElement,
293 'SVGSetElement': () => SetElement.internalCreateSetElement,
294 'SVGStopElement': () => StopElement.internalCreateStopElement,
295 'SVGStringList': () => StringList.internalCreateStringList,
296 'SVGStyleElement': () => StyleElement.internalCreateStyleElement,
297 'SVGSwitchElement': () => SwitchElement.internalCreateSwitchElement,
298 'SVGSymbolElement': () => SymbolElement.internalCreateSymbolElement,
299 'SVGTSpanElement': () => TSpanElement.internalCreateTSpanElement,
300 'SVGTests': () => Tests.internalCreateTests,
301 'SVGTextContentElement': () => TextContentElement.internalCreateTextContentEle ment,
302 'SVGTextElement': () => TextElement.internalCreateTextElement,
303 'SVGTextPathElement': () => TextPathElement.internalCreateTextPathElement,
304 'SVGTextPositioningElement': () => TextPositioningElement.internalCreateTextPo sitioningElement,
305 'SVGTitleElement': () => TitleElement.internalCreateTitleElement,
306 'SVGTransform': () => Transform.internalCreateTransform,
307 'SVGTransformList': () => TransformList.internalCreateTransformList,
308 'SVGURIReference': () => UriReference.internalCreateUriReference,
309 'SVGUnitTypes': () => UnitTypes.internalCreateUnitTypes,
310 'SVGUseElement': () => UseElement.internalCreateUseElement,
311 'SVGVKernElement': () => _SVGVKernElement.internalCreate_SVGVKernElement,
312 'SVGViewElement': () => ViewElement.internalCreateViewElement,
313 'SVGViewSpec': () => ViewSpec.internalCreateViewSpec,
314 'SVGZoomAndPan': () => ZoomAndPan.internalCreateZoomAndPan,
315 'SVGZoomEvent': () => ZoomEvent.internalCreateZoomEvent,
316
317 };
172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 318 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
173 // for details. All rights reserved. Use of this source code is governed by a 319 // for details. All rights reserved. Use of this source code is governed by a
174 // BSD-style license that can be found in the LICENSE file. 320 // BSD-style license that can be found in the LICENSE file.
175 321
176 322
177 class _SvgElementFactoryProvider { 323 class _SvgElementFactoryProvider {
178 static SvgElement createSvgElement_tag(String tag) { 324 static SvgElement createSvgElement_tag(String tag) {
179 final Element temp = 325 final Element temp =
180 document.createElementNS("http://www.w3.org/2000/svg", tag); 326 document.createElementNS("http://www.w3.org/2000/svg", tag);
181 return temp; 327 return temp;
(...skipping 9123 matching lines...) Expand 10 before | Expand all | Expand 10 after
9305 _SVGVKernElement._internal() : super._internal(); 9451 _SVGVKernElement._internal() : super._internal();
9306 9452
9307 /** 9453 /**
9308 * Constructor instantiated by the DOM when a custom element has been created. 9454 * Constructor instantiated by the DOM when a custom element has been created.
9309 * 9455 *
9310 * This can only be called by subclasses from their created constructor. 9456 * This can only be called by subclasses from their created constructor.
9311 */ 9457 */
9312 _SVGVKernElement.created() : super.created(); 9458 _SVGVKernElement.created() : super.created();
9313 9459
9314 } 9460 }
OLDNEW
« 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