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

Side by Side 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, 9 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 | Annotate | Revision Log
OLDNEW
1 library dart.dom.svg; 1 library dart.dom.svg;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:html_common'; 6 import 'dart:html_common';
7 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa me; 7 import 'dart:_js_helper' show Creates, Returns, JavaScriptIndexingBehavior, JSNa me;
8 import 'dart:_foreign_helper' show JS; 8 import 'dart:_foreign_helper' show JS;
9 // DO NOT EDIT - unless you are editing documentation as per: 9 // DO NOT EDIT - unless you are editing documentation as per:
10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 @DomName('SVGClipPathElement.transform') 731 @DomName('SVGClipPathElement.transform')
732 @DocsEditable 732 @DocsEditable
733 final AnimatedTransformList transform; 733 final AnimatedTransformList transform;
734 } 734 }
735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
736 // for details. All rights reserved. Use of this source code is governed by a 736 // for details. All rights reserved. Use of this source code is governed by a
737 // BSD-style license that can be found in the LICENSE file. 737 // BSD-style license that can be found in the LICENSE file.
738 738
739 739
740 @DocsEditable 740 @DocsEditable
741 @DomName('SVGColor')
742 class Color extends CssValue native "*SVGColor" {
743
744 static const int SVG_COLORTYPE_CURRENTCOLOR = 3;
745
746 static const int SVG_COLORTYPE_RGBCOLOR = 1;
747
748 static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
749
750 static const int SVG_COLORTYPE_UNKNOWN = 0;
751
752 @DomName('SVGColor.colorType')
753 @DocsEditable
754 final int colorType;
755
756 @DomName('SVGColor.rgbColor')
757 @DocsEditable
758 final CssRgbColor rgbColor;
759
760 @DomName('SVGColor.setColor')
761 @DocsEditable
762 void setColor(int colorType, String rgbColor, String iccColor) native;
763
764 @JSName('setRGBColor')
765 @DomName('SVGColor.setRGBColor')
766 @DocsEditable
767 void setRgbColor(String rgbColor) native;
768
769 @JSName('setRGBColorICCColor')
770 @DomName('SVGColor.setRGBColorICCColor')
771 @DocsEditable
772 void setRgbColorIccColor(String rgbColor, String iccColor) native;
773 }
774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
775 // for details. All rights reserved. Use of this source code is governed by a
776 // BSD-style license that can be found in the LICENSE file.
777
778
779 @DocsEditable
780 @DomName('SVGDefsElement') 741 @DomName('SVGDefsElement')
781 class DefsElement extends StyledElement implements Transformable, Tests, Externa lResourcesRequired, LangSpace native "*SVGDefsElement" { 742 class DefsElement extends StyledElement implements Transformable, Tests, Externa lResourcesRequired, LangSpace native "*SVGDefsElement" {
782 743
783 @DomName('SVGDefsElement.SVGDefsElement') 744 @DomName('SVGDefsElement.SVGDefsElement')
784 @DocsEditable 745 @DocsEditable
785 factory DefsElement() => _SvgElementFactoryProvider.createSvgElement_tag("defs "); 746 factory DefsElement() => _SvgElementFactoryProvider.createSvgElement_tag("defs ");
786 747
787 // From SVGExternalResourcesRequired 748 // From SVGExternalResourcesRequired
788 749
789 @DomName('SVGDefsElement.externalResourcesRequired') 750 @DomName('SVGDefsElement.externalResourcesRequired')
(...skipping 3119 matching lines...) Expand 10 before | Expand all | Expand 10 after
3909 @DomName('SVGNumberList.replaceItem') 3870 @DomName('SVGNumberList.replaceItem')
3910 @DocsEditable 3871 @DocsEditable
3911 Number replaceItem(Number item, int index) native; 3872 Number replaceItem(Number item, int index) native;
3912 } 3873 }
3913 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3874 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3914 // for details. All rights reserved. Use of this source code is governed by a 3875 // for details. All rights reserved. Use of this source code is governed by a
3915 // BSD-style license that can be found in the LICENSE file. 3876 // BSD-style license that can be found in the LICENSE file.
3916 3877
3917 3878
3918 @DocsEditable 3879 @DocsEditable
3919 @DomName('SVGPaint')
3920 class Paint extends Color native "*SVGPaint" {
3921
3922 static const int SVG_PAINTTYPE_CURRENTCOLOR = 102;
3923
3924 static const int SVG_PAINTTYPE_NONE = 101;
3925
3926 static const int SVG_PAINTTYPE_RGBCOLOR = 1;
3927
3928 static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
3929
3930 static const int SVG_PAINTTYPE_UNKNOWN = 0;
3931
3932 static const int SVG_PAINTTYPE_URI = 107;
3933
3934 static const int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
3935
3936 static const int SVG_PAINTTYPE_URI_NONE = 103;
3937
3938 static const int SVG_PAINTTYPE_URI_RGBCOLOR = 105;
3939
3940 static const int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
3941
3942 @DomName('SVGPaint.paintType')
3943 @DocsEditable
3944 final int paintType;
3945
3946 @DomName('SVGPaint.uri')
3947 @DocsEditable
3948 final String uri;
3949
3950 @DomName('SVGPaint.setPaint')
3951 @DocsEditable
3952 void setPaint(int paintType, String uri, String rgbColor, String iccColor) nat ive;
3953
3954 @DomName('SVGPaint.setUri')
3955 @DocsEditable
3956 void setUri(String uri) native;
3957 }
3958 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3959 // for details. All rights reserved. Use of this source code is governed by a
3960 // BSD-style license that can be found in the LICENSE file.
3961
3962
3963 @DocsEditable
3964 @DomName('SVGPathElement') 3880 @DomName('SVGPathElement')
3965 class PathElement extends StyledElement implements Transformable, Tests, Externa lResourcesRequired, LangSpace native "*SVGPathElement" { 3881 class PathElement extends StyledElement implements Transformable, Tests, Externa lResourcesRequired, LangSpace native "*SVGPathElement" {
3966 3882
3967 @DomName('SVGPathElement.SVGPathElement') 3883 @DomName('SVGPathElement.SVGPathElement')
3968 @DocsEditable 3884 @DocsEditable
3969 factory PathElement() => _SvgElementFactoryProvider.createSvgElement_tag("path "); 3885 factory PathElement() => _SvgElementFactoryProvider.createSvgElement_tag("path ");
3970 3886
3971 @DomName('SVGPathElement.animatedNormalizedPathSegList') 3887 @DomName('SVGPathElement.animatedNormalizedPathSegList')
3972 @DocsEditable 3888 @DocsEditable
3973 final PathSegList animatedNormalizedPathSegList; 3889 final PathSegList animatedNormalizedPathSegList;
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
5772 5688
5773 @DocsEditable 5689 @DocsEditable
5774 @DomName('SVGStyledElement') 5690 @DomName('SVGStyledElement')
5775 class StyledElement extends SvgElement native "*SVGStyledElement" { 5691 class StyledElement extends SvgElement native "*SVGStyledElement" {
5776 5692
5777 // Shadowing definition. 5693 // Shadowing definition.
5778 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th is); 5694 AnimatedString get $dom_svgClassName => JS("AnimatedString", "#.className", th is);
5779 5695
5780 // Use implementation from Element. 5696 // Use implementation from Element.
5781 // final CssStyleDeclaration style; 5697 // final CssStyleDeclaration style;
5782
5783 @DomName('SVGStyledElement.getPresentationAttribute')
5784 @DocsEditable
5785 CssValue getPresentationAttribute(String name) native;
5786 } 5698 }
5787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5788 // for details. All rights reserved. Use of this source code is governed by a 5700 // for details. All rights reserved. Use of this source code is governed by a
5789 // BSD-style license that can be found in the LICENSE file. 5701 // BSD-style license that can be found in the LICENSE file.
5790 5702
5791 5703
5792 @DocsEditable 5704 @DocsEditable
5793 @DomName('SVGDocument') 5705 @DomName('SVGDocument')
5794 class SvgDocument extends Document native "*SVGDocument" { 5706 class SvgDocument extends Document native "*SVGDocument" {
5795 5707
(...skipping 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after
7428 } 7340 }
7429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7341 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7430 // for details. All rights reserved. Use of this source code is governed by a 7342 // for details. All rights reserved. Use of this source code is governed by a
7431 // BSD-style license that can be found in the LICENSE file. 7343 // BSD-style license that can be found in the LICENSE file.
7432 7344
7433 7345
7434 @DocsEditable 7346 @DocsEditable
7435 @DomName('SVGAnimateColorElement') 7347 @DomName('SVGAnimateColorElement')
7436 class _SVGAnimateColorElement extends AnimationElement native "*SVGAnimateColorE lement" { 7348 class _SVGAnimateColorElement extends AnimationElement native "*SVGAnimateColorE lement" {
7437 } 7349 }
7350 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
7351 // for details. All rights reserved. Use of this source code is governed by a
7352 // BSD-style license that can be found in the LICENSE file.
7353
7354
7355 // Hack because the baseclass is private in dart:html, and we want to omit this
7356 // type entirely but can't.
7357 @DocsEditable
7358 @DomName('SVGColor')
7359 class _SVGColor native "*SVGColor" {
7360
7361 static const int SVG_COLORTYPE_CURRENTCOLOR = 3;
7362
7363 static const int SVG_COLORTYPE_RGBCOLOR = 1;
7364
7365 static const int SVG_COLORTYPE_RGBCOLOR_ICCCOLOR = 2;
7366
7367 static const int SVG_COLORTYPE_UNKNOWN = 0;
7368
7369 @DomName('SVGColor.colorType')
7370 @DocsEditable
7371 final int colorType;
7372
7373 @DomName('SVGColor.rgbColor')
7374 @DocsEditable
7375 final _RGBColor rgbColor;
7376
7377 @DomName('SVGColor.setColor')
7378 @DocsEditable
7379 void setColor(int colorType, String rgbColor, String iccColor) native;
7380
7381 @JSName('setRGBColor')
7382 @DomName('SVGColor.setRGBColor')
7383 @DocsEditable
7384 void setRgbColor(String rgbColor) native;
7385
7386 @JSName('setRGBColorICCColor')
7387 @DomName('SVGColor.setRGBColorICCColor')
7388 @DocsEditable
7389 void setRgbColorIccColor(String rgbColor, String iccColor) native;
7390 }
7438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7439 // for details. All rights reserved. Use of this source code is governed by a 7392 // for details. All rights reserved. Use of this source code is governed by a
7440 // BSD-style license that can be found in the LICENSE file. 7393 // BSD-style license that can be found in the LICENSE file.
7441 7394
7442 7395
7443 @DocsEditable 7396 @DocsEditable
7444 @DomName('SVGComponentTransferFunctionElement') 7397 @DomName('SVGComponentTransferFunctionElement')
7445 class _SVGComponentTransferFunctionElement extends SvgElement native "*SVGCompon entTransferFunctionElement" { 7398 class _SVGComponentTransferFunctionElement extends SvgElement native "*SVGCompon entTransferFunctionElement" {
7446 7399
7447 static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3; 7400 static const int SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3;
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
7787 @DocsEditable 7740 @DocsEditable
7788 @DomName('SVGMissingGlyphElement') 7741 @DomName('SVGMissingGlyphElement')
7789 class _SVGMissingGlyphElement extends StyledElement native "*SVGMissingGlyphElem ent" { 7742 class _SVGMissingGlyphElement extends StyledElement native "*SVGMissingGlyphElem ent" {
7790 } 7743 }
7791 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7792 // for details. All rights reserved. Use of this source code is governed by a 7745 // for details. All rights reserved. Use of this source code is governed by a
7793 // BSD-style license that can be found in the LICENSE file. 7746 // BSD-style license that can be found in the LICENSE file.
7794 7747
7795 7748
7796 @DocsEditable 7749 @DocsEditable
7750 @DomName('SVGPaint')
7751 class _SVGPaint extends _SVGColor native "*SVGPaint" {
7752
7753 static const int SVG_PAINTTYPE_CURRENTCOLOR = 102;
7754
7755 static const int SVG_PAINTTYPE_NONE = 101;
7756
7757 static const int SVG_PAINTTYPE_RGBCOLOR = 1;
7758
7759 static const int SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR = 2;
7760
7761 static const int SVG_PAINTTYPE_UNKNOWN = 0;
7762
7763 static const int SVG_PAINTTYPE_URI = 107;
7764
7765 static const int SVG_PAINTTYPE_URI_CURRENTCOLOR = 104;
7766
7767 static const int SVG_PAINTTYPE_URI_NONE = 103;
7768
7769 static const int SVG_PAINTTYPE_URI_RGBCOLOR = 105;
7770
7771 static const int SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR = 106;
7772
7773 @DomName('SVGPaint.paintType')
7774 @DocsEditable
7775 final int paintType;
7776
7777 @DomName('SVGPaint.uri')
7778 @DocsEditable
7779 final String uri;
7780
7781 @DomName('SVGPaint.setPaint')
7782 @DocsEditable
7783 void setPaint(int paintType, String uri, String rgbColor, String iccColor) nat ive;
7784
7785 @DomName('SVGPaint.setUri')
7786 @DocsEditable
7787 void setUri(String uri) native;
7788 }
7789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7790 // for details. All rights reserved. Use of this source code is governed by a
7791 // BSD-style license that can be found in the LICENSE file.
7792
7793
7794 @DocsEditable
7797 @DomName('SVGTRefElement') 7795 @DomName('SVGTRefElement')
7798 class _SVGTRefElement extends TextPositioningElement implements UriReference nat ive "*SVGTRefElement" { 7796 class _SVGTRefElement extends TextPositioningElement implements UriReference nat ive "*SVGTRefElement" {
7799 7797
7800 @DomName('SVGTRefElement.SVGTRefElement') 7798 @DomName('SVGTRefElement.SVGTRefElement')
7801 @DocsEditable 7799 @DocsEditable
7802 factory _SVGTRefElement() => _SvgElementFactoryProvider.createSvgElement_tag(" tref"); 7800 factory _SVGTRefElement() => _SvgElementFactoryProvider.createSvgElement_tag(" tref");
7803 7801
7804 // From SVGURIReference 7802 // From SVGURIReference
7805 7803
7806 @DomName('SVGTRefElement.href') 7804 @DomName('SVGTRefElement.href')
7807 @DocsEditable 7805 @DocsEditable
7808 final AnimatedString href; 7806 final AnimatedString href;
7809 } 7807 }
7810 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 7808 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
7811 // for details. All rights reserved. Use of this source code is governed by a 7809 // for details. All rights reserved. Use of this source code is governed by a
7812 // BSD-style license that can be found in the LICENSE file. 7810 // BSD-style license that can be found in the LICENSE file.
7813 7811
7814 7812
7815 @DocsEditable 7813 @DocsEditable
7816 @DomName('SVGVKernElement') 7814 @DomName('SVGVKernElement')
7817 class _SVGVKernElement extends SvgElement native "*SVGVKernElement" { 7815 class _SVGVKernElement extends SvgElement native "*SVGVKernElement" {
7818 7816
7819 @DomName('SVGVKernElement.SVGVKernElement') 7817 @DomName('SVGVKernElement.SVGVKernElement')
7820 @DocsEditable 7818 @DocsEditable
7821 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern"); 7819 factory _SVGVKernElement() => _SvgElementFactoryProvider.createSvgElement_tag( "vkern");
7822 } 7820 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698