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

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

Issue 11418075: Dartifying members. (Closed) Base URL: https://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
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 6638fde0711399f97b6794e132dbf3b1650da1b2..e5e69e06091ca67cb608cfd1c3fa7ef1eb096a3f 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -31,7 +31,7 @@ class _SvgElementFactoryProvider {
parentTag = new SvgSvgElement();
}
- parentTag.innerHTML = svg;
+ parentTag.innerHtml = svg;
if (parentTag.elements.length == 1) return parentTag.elements.removeLast();
throw new ArgumentError(
@@ -86,10 +86,10 @@ class AElement extends SvgElement implements Transformable, Tests, UriReference,
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -762,10 +762,10 @@ class CircleElement extends SvgElement implements Transformable, Tests, Stylable
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -838,10 +838,10 @@ class ClipPathElement extends SvgElement implements Transformable, Tests, Stylab
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -902,10 +902,10 @@ class Color extends CSSValue native "*SVGColor" {
void setColor(int colorType, String rgbColor, String iccColor) native;
/** @domName SVGColor.setRGBColor */
- void setRGBColor(String rgbColor) native;
+ void setRgbColor(String rgbColor) native "setRGBColor";
/** @domName SVGColor.setRGBColorICCColor */
- void setRGBColorICCColor(String rgbColor, String iccColor) native;
+ void setRgbColorIccColor(String rgbColor, String iccColor) native "setRGBColorICCColor";
}
// 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
@@ -1023,10 +1023,10 @@ class DefsElement extends SvgElement implements Transformable, Tests, Stylable,
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -1259,10 +1259,10 @@ class EllipseElement extends SvgElement implements Transformable, Tests, Stylabl
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -2551,10 +2551,10 @@ class ForeignObjectElement extends SvgElement implements Transformable, Tests, S
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -2624,10 +2624,10 @@ class GElement extends SvgElement implements Transformable, Tests, Stylable, Ext
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -2820,10 +2820,10 @@ class ImageElement extends SvgElement implements Transformable, Tests, UriRefere
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -3087,10 +3087,10 @@ class LineElement extends SvgElement implements Transformable, Tests, Stylable,
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -3607,61 +3607,61 @@ class PathElement extends SvgElement implements Transformable, Tests, Stylable,
final PathSegList pathSegList;
/** @domName SVGPathElement.createSVGPathSegArcAbs */
- PathSegArcAbs createSVGPathSegArcAbs(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native;
+ PathSegArcAbs createSvgPathSegArcAbs(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native "createSVGPathSegArcAbs";
/** @domName SVGPathElement.createSVGPathSegArcRel */
- PathSegArcRel createSVGPathSegArcRel(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native;
+ PathSegArcRel createSvgPathSegArcRel(num x, num y, num r1, num r2, num angle, bool largeArcFlag, bool sweepFlag) native "createSVGPathSegArcRel";
/** @domName SVGPathElement.createSVGPathSegClosePath */
- PathSegClosePath createSVGPathSegClosePath() native;
+ PathSegClosePath createSvgPathSegClosePath() native "createSVGPathSegClosePath";
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicAbs */
- PathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(num x, num y, num x1, num y1, num x2, num y2) native;
+ PathSegCurvetoCubicAbs createSvgPathSegCurvetoCubicAbs(num x, num y, num x1, num y1, num x2, num y2) native "createSVGPathSegCurvetoCubicAbs";
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicRel */
- PathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(num x, num y, num x1, num y1, num x2, num y2) native;
+ PathSegCurvetoCubicRel createSvgPathSegCurvetoCubicRel(num x, num y, num x1, num y1, num x2, num y2) native "createSVGPathSegCurvetoCubicRel";
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothAbs */
- PathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(num x, num y, num x2, num y2) native;
+ PathSegCurvetoCubicSmoothAbs createSvgPathSegCurvetoCubicSmoothAbs(num x, num y, num x2, num y2) native "createSVGPathSegCurvetoCubicSmoothAbs";
/** @domName SVGPathElement.createSVGPathSegCurvetoCubicSmoothRel */
- PathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(num x, num y, num x2, num y2) native;
+ PathSegCurvetoCubicSmoothRel createSvgPathSegCurvetoCubicSmoothRel(num x, num y, num x2, num y2) native "createSVGPathSegCurvetoCubicSmoothRel";
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticAbs */
- PathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(num x, num y, num x1, num y1) native;
+ PathSegCurvetoQuadraticAbs createSvgPathSegCurvetoQuadraticAbs(num x, num y, num x1, num y1) native "createSVGPathSegCurvetoQuadraticAbs";
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticRel */
- PathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(num x, num y, num x1, num y1) native;
+ PathSegCurvetoQuadraticRel createSvgPathSegCurvetoQuadraticRel(num x, num y, num x1, num y1) native "createSVGPathSegCurvetoQuadraticRel";
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothAbs */
- PathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(num x, num y) native;
+ PathSegCurvetoQuadraticSmoothAbs createSvgPathSegCurvetoQuadraticSmoothAbs(num x, num y) native "createSVGPathSegCurvetoQuadraticSmoothAbs";
/** @domName SVGPathElement.createSVGPathSegCurvetoQuadraticSmoothRel */
- PathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(num x, num y) native;
+ PathSegCurvetoQuadraticSmoothRel createSvgPathSegCurvetoQuadraticSmoothRel(num x, num y) native "createSVGPathSegCurvetoQuadraticSmoothRel";
/** @domName SVGPathElement.createSVGPathSegLinetoAbs */
- PathSegLinetoAbs createSVGPathSegLinetoAbs(num x, num y) native;
+ PathSegLinetoAbs createSvgPathSegLinetoAbs(num x, num y) native "createSVGPathSegLinetoAbs";
/** @domName SVGPathElement.createSVGPathSegLinetoHorizontalAbs */
- PathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(num x) native;
+ PathSegLinetoHorizontalAbs createSvgPathSegLinetoHorizontalAbs(num x) native "createSVGPathSegLinetoHorizontalAbs";
/** @domName SVGPathElement.createSVGPathSegLinetoHorizontalRel */
- PathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(num x) native;
+ PathSegLinetoHorizontalRel createSvgPathSegLinetoHorizontalRel(num x) native "createSVGPathSegLinetoHorizontalRel";
/** @domName SVGPathElement.createSVGPathSegLinetoRel */
- PathSegLinetoRel createSVGPathSegLinetoRel(num x, num y) native;
+ PathSegLinetoRel createSvgPathSegLinetoRel(num x, num y) native "createSVGPathSegLinetoRel";
/** @domName SVGPathElement.createSVGPathSegLinetoVerticalAbs */
- PathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(num y) native;
+ PathSegLinetoVerticalAbs createSvgPathSegLinetoVerticalAbs(num y) native "createSVGPathSegLinetoVerticalAbs";
/** @domName SVGPathElement.createSVGPathSegLinetoVerticalRel */
- PathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(num y) native;
+ PathSegLinetoVerticalRel createSvgPathSegLinetoVerticalRel(num y) native "createSVGPathSegLinetoVerticalRel";
/** @domName SVGPathElement.createSVGPathSegMovetoAbs */
- PathSegMovetoAbs createSVGPathSegMovetoAbs(num x, num y) native;
+ PathSegMovetoAbs createSvgPathSegMovetoAbs(num x, num y) native "createSVGPathSegMovetoAbs";
/** @domName SVGPathElement.createSVGPathSegMovetoRel */
- PathSegMovetoRel createSVGPathSegMovetoRel(num x, num y) native;
+ PathSegMovetoRel createSvgPathSegMovetoRel(num x, num y) native "createSVGPathSegMovetoRel";
/** @domName SVGPathElement.getPathSegAtLength */
int getPathSegAtLength(num distance) native;
@@ -3697,10 +3697,10 @@ class PathElement extends SvgElement implements Transformable, Tests, Stylable,
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -4407,10 +4407,10 @@ class PolygonElement extends SvgElement implements Transformable, Tests, Stylabl
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -4486,10 +4486,10 @@ class PolylineElement extends SvgElement implements Transformable, Tests, Stylab
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -4667,10 +4667,10 @@ class RectElement extends SvgElement implements Transformable, Tests, Stylable,
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -5026,25 +5026,25 @@ class SvgElement extends Element native "*SVGElement" {
children.addAll(value);
}
- String get outerHTML {
+ String get outerHtml {
final container = new Element.tag("div");
final SvgElement cloned = this.clone(true);
container.children.add(cloned);
- return container.innerHTML;
+ return container.innerHtml;
}
- String get innerHTML {
+ String get innerHtml {
final container = new Element.tag("div");
final SvgElement cloned = this.clone(true);
container.children.addAll(cloned.children);
- return container.innerHTML;
+ return container.innerHtml;
}
- void set innerHTML(String svg) {
+ void set innerHtml(String svg) {
final container = new Element.tag("div");
// Wrap the SVG string in <svg> so that SvgElements are created, rather than
// HTMLElements.
- container.innerHTML = '<svg version="1.1">$svg</svg>';
+ container.innerHtml = '<svg version="1.1">$svg</svg>';
this.children = container.children[0].children;
}
@@ -5059,7 +5059,7 @@ class SvgElement extends Element native "*SVGElement" {
}
/** @domName SVGElement.ownerSVGElement */
- final SvgSvgElement ownerSVGElement;
+ SvgSvgElement get ownerSvgElement => JS("SvgSvgElement", "#.ownerSVGElement", this);
/** @domName SVGElement.viewportElement */
final SvgElement viewportElement;
@@ -5132,28 +5132,28 @@ class SvgSvgElement extends SvgElement implements FitToViewBox, Tests, Stylable,
bool checkIntersection(SvgElement element, Rect rect) native;
/** @domName SVGSVGElement.createSVGAngle */
- Angle createSVGAngle() native;
+ Angle createSvgAngle() native "createSVGAngle";
/** @domName SVGSVGElement.createSVGLength */
- Length createSVGLength() native;
+ Length createSvgLength() native "createSVGLength";
/** @domName SVGSVGElement.createSVGMatrix */
- Matrix createSVGMatrix() native;
+ Matrix createSvgMatrix() native "createSVGMatrix";
/** @domName SVGSVGElement.createSVGNumber */
- Number createSVGNumber() native;
+ Number createSvgNumber() native "createSVGNumber";
/** @domName SVGSVGElement.createSVGPoint */
- Point createSVGPoint() native;
+ Point createSvgPoint() native "createSVGPoint";
/** @domName SVGSVGElement.createSVGRect */
- Rect createSVGRect() native;
+ Rect createSvgRect() native "createSVGRect";
/** @domName SVGSVGElement.createSVGTransform */
- Transform createSVGTransform() native;
+ Transform createSvgTransform() native "createSVGTransform";
/** @domName SVGSVGElement.createSVGTransformFromMatrix */
- Transform createSVGTransformFromMatrix(Matrix matrix) native;
+ Transform createSvgTransformFromMatrix(Matrix matrix) native "createSVGTransformFromMatrix";
/** @domName SVGSVGElement.deselectAll */
void deselectAll() native;
@@ -5224,10 +5224,10 @@ class SvgSvgElement extends SvgElement implements FitToViewBox, Tests, Stylable,
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -5298,10 +5298,10 @@ class SwitchElement extends SvgElement implements Transformable, Tests, Stylable
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -5527,10 +5527,10 @@ class TextElement extends TextPositioningElement implements Transformable native
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;
@@ -5781,7 +5781,7 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ
Transform consolidate() native;
/** @domName SVGTransformList.createSVGTransformFromMatrix */
- Transform createSVGTransformFromMatrix(Matrix matrix) native;
+ Transform createSvgTransformFromMatrix(Matrix matrix) native "createSVGTransformFromMatrix";
/** @domName SVGTransformList.getItem */
Transform getItem(int index) native;
@@ -5903,10 +5903,10 @@ class UseElement extends SvgElement implements Transformable, Tests, UriReferenc
Rect getBBox() native;
/** @domName SVGLocatable.getCTM */
- Matrix getCTM() native;
+ Matrix getCtm() native "getCTM";
/** @domName SVGLocatable.getScreenCTM */
- Matrix getScreenCTM() native;
+ Matrix getScreenCtm() native "getScreenCTM";
/** @domName SVGLocatable.getTransformToElement */
Matrix getTransformToElement(SvgElement element) native;

Powered by Google App Engine
This is Rietveld 408576698