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

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

Issue 12857006: Removing CssValue APIs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5474db9b49ef3024553d462700cf26d9157f9fae..c974bce8d5d7e696c65aef2c6ff765bce07b8941 100644
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart
@@ -738,45 +738,6 @@ class ClipPathElement extends StyledElement implements Transformable, Tests, Ext
@DocsEditable
-@DomName('SVGColor')
-class Color extends CssValue native "*SVGColor" {
-
- static const int SVG_COLORTYPE_CURRENTCOLOR = 3;
-
- static const int SVG_COLORTYPE_RGBCOLOR = 1;
-
- static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
-
- static const int SVG_COLORTYPE_UNKNOWN = 0;
-
- @DomName('SVGColor.colorType')
- @DocsEditable
- final int colorType;
-
- @DomName('SVGColor.rgbColor')
- @DocsEditable
- final CssRgbColor rgbColor;
-
- @DomName('SVGColor.setColor')
- @DocsEditable
- void setColor(int colorType, String rgbColor, String iccColor) native;
-
- @JSName('setRGBColor')
- @DomName('SVGColor.setRGBColor')
- @DocsEditable
- void setRgbColor(String rgbColor) native;
-
- @JSName('setRGBColorICCColor')
- @DomName('SVGColor.setRGBColorICCColor')
- @DocsEditable
- void setRgbColorIccColor(String rgbColor, String iccColor) native;
-}
-// 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.
-
-
-@DocsEditable
@DomName('SVGDefsElement')
class DefsElement extends StyledElement implements Transformable, Tests, ExternalResourcesRequired, LangSpace native "*SVGDefsElement" {
@@ -3383,7 +3344,7 @@ class LineElement extends StyledElement implements Transformable, Tests, Externa
@DocsEditable
@DomName('SVGLinearGradientElement')
-class LinearGradientElement extends _GradientElement native "*SVGLinearGradientElement" {
+class LinearGradientElement extends _SVGGradientElement native "*SVGLinearGradientElement" {
@DomName('SVGLinearGradientElement.SVGLinearGradientElement')
@DocsEditable
@@ -3930,51 +3891,6 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV
@DocsEditable
-@DomName('SVGPaint')
-class Paint extends Color native "*SVGPaint" {
-
- static const int SVG_PAINTTYPE_CURRENTCOLOR = 102;
-
- static const int SVG_PAINTTYPE_NONE = 101;
-
- static const int SVG_PAINTTYPE_RGBCOLOR = 1;
-
- static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
-
- static const int SVG_PAINTTYPE_UNKNOWN = 0;
-
- static const int SVG_PAINTTYPE_URI = 107;
-
- static const int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
-
- static const int SVG_PAINTTYPE_URI_NONE = 103;
-
- static const int SVG_PAINTTYPE_URI_RGBCOLOR = 105;
-
- static const int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
-
- @DomName('SVGPaint.paintType')
- @DocsEditable
- final int paintType;
-
- @DomName('SVGPaint.uri')
- @DocsEditable
- final String uri;
-
- @DomName('SVGPaint.setPaint')
- @DocsEditable
- void setPaint(int paintType, String uri, String rgbColor, String iccColor) native;
-
- @DomName('SVGPaint.setUri')
- @DocsEditable
- void setUri(String uri) native;
-}
-// 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.
-
-
-@DocsEditable
@DomName('SVGPathElement')
class PathElement extends StyledElement implements Transformable, Tests, ExternalResourcesRequired, LangSpace native "*SVGPathElement" {
@@ -5262,7 +5178,7 @@ class PreserveAspectRatio native "*SVGPreserveAspectRatio" {
@DocsEditable
@DomName('SVGRadialGradientElement')
-class RadialGradientElement extends _GradientElement native "*SVGRadialGradientElement" {
+class RadialGradientElement extends _SVGGradientElement native "*SVGRadialGradientElement" {
@DomName('SVGRadialGradientElement.SVGRadialGradientElement')
@DocsEditable
@@ -5807,10 +5723,6 @@ class StyledElement extends SvgElement native "*SVGStyledElement" {
// Use implementation from Element.
// final CssStyleDeclaration style;
-
- @DomName('SVGStyledElement.getPresentationAttribute')
- @DocsEditable
- CssValue getPresentationAttribute(String name) native;
}
// 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
@@ -7456,47 +7368,6 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn
@DocsEditable
-@DomName('SVGGradientElement')
-class _GradientElement extends StyledElement implements UriReference, ExternalResourcesRequired native "*SVGGradientElement" {
-
- static const int SVG_SPREADMETHOD_PAD = 1;
-
- static const int SVG_SPREADMETHOD_REFLECT = 2;
-
- static const int SVG_SPREADMETHOD_REPEAT = 3;
-
- static const int SVG_SPREADMETHOD_UNKNOWN = 0;
-
- @DomName('SVGGradientElement.gradientTransform')
- @DocsEditable
- final AnimatedTransformList gradientTransform;
-
- @DomName('SVGGradientElement.gradientUnits')
- @DocsEditable
- final AnimatedEnumeration gradientUnits;
-
- @DomName('SVGGradientElement.spreadMethod')
- @DocsEditable
- final AnimatedEnumeration spreadMethod;
-
- // From SVGExternalResourcesRequired
-
- @DomName('SVGGradientElement.externalResourcesRequired')
- @DocsEditable
- final AnimatedBoolean externalResourcesRequired;
-
- // From SVGURIReference
-
- @DomName('SVGGradientElement.href')
- @DocsEditable
- final AnimatedString href;
-}
-// 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.
-
-
-@DocsEditable
@DomName('SVGAltGlyphDefElement')
abstract class _SVGAltGlyphDefElement extends SvgElement native "*SVGAltGlyphDefElement" {
}
@@ -7518,6 +7389,17 @@ abstract class _SVGAltGlyphItemElement extends SvgElement native "*SVGAltGlyphIt
@DomName('SVGAnimateColorElement')
abstract class _SVGAnimateColorElement extends AnimationElement native "*SVGAnimateColorElement" {
}
+// Copyright (c) 2013, 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.
+
+
+// Hack because the baseclass is private in dart:html, and we want to omit this
+// type entirely but can't.
+@DocsEditable
+@DomName('SVGColor')
+class _SVGColor native "*SVGColor" {
+}
// 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.
@@ -7644,6 +7526,19 @@ abstract class _SVGGlyphRefElement extends StyledElement implements UriReference
@DocsEditable
+@DomName('SVGGradientElement')
+abstract class _SVGGradientElement extends StyledElement implements UriReference, ExternalResourcesRequired native "*SVGGradientElement" {
+
+ // From SVGExternalResourcesRequired
+
+ // From SVGURIReference
+}
+// 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.
+
+
+@DocsEditable
@DomName('SVGHKernElement')
abstract class _SVGHKernElement extends SvgElement native "*SVGHKernElement" {
@@ -7683,6 +7578,51 @@ abstract class _SVGMissingGlyphElement extends StyledElement native "*SVGMissing
@DocsEditable
+@DomName('SVGPaint')
+class _SVGPaint extends _SVGColor native "*SVGPaint" {
+
+ static const int SVG_PAINTTYPE_CURRENTCOLOR = 102;
+
+ static const int SVG_PAINTTYPE_NONE = 101;
+
+ static const int SVG_PAINTTYPE_RGBCOLOR = 1;
+
+ static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
+
+ static const int SVG_PAINTTYPE_UNKNOWN = 0;
+
+ static const int SVG_PAINTTYPE_URI = 107;
+
+ static const int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
+
+ static const int SVG_PAINTTYPE_URI_NONE = 103;
+
+ static const int SVG_PAINTTYPE_URI_RGBCOLOR = 105;
+
+ static const int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
+
+ @DomName('SVGPaint.paintType')
+ @DocsEditable
+ final int paintType;
+
+ @DomName('SVGPaint.uri')
+ @DocsEditable
+ final String uri;
+
+ @DomName('SVGPaint.setPaint')
+ @DocsEditable
+ void setPaint(int paintType, String uri, String rgbColor, String iccColor) native;
+
+ @DomName('SVGPaint.setUri')
+ @DocsEditable
+ void setUri(String uri) native;
+}
+// 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.
+
+
+@DocsEditable
@DomName('SVGTRefElement')
abstract class _SVGTRefElement extends TextPositioningElement implements UriReference native "*SVGTRefElement" {
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | sdk/lib/svg/dartium/svg_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698