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

Side by Side Diff: client/dom/generated/src/frog/SVGSVGElement.dart

Issue 9312003: Use fields in hidden native DOM classes instead of getters/setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also fix native Created 8 years, 10 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 1
2 class _SVGSVGElementJs extends _SVGElementJs implements SVGSVGElement native "*S VGSVGElement" { 2 class _SVGSVGElementJs extends _SVGElementJs implements SVGSVGElement native "*S VGSVGElement" {
3 3
4 String get contentScriptType() native "return this.contentScriptType;"; 4 String contentScriptType;
5 5
6 void set contentScriptType(String value) native "this.contentScriptType = valu e;"; 6 String contentStyleType;
7 7
8 String get contentStyleType() native "return this.contentStyleType;"; 8 num currentScale;
9 9
10 void set contentStyleType(String value) native "this.contentStyleType = value; "; 10 final _SVGPointJs currentTranslate;
11 11
12 num get currentScale() native "return this.currentScale;"; 12 final _SVGAnimatedLengthJs height;
13 13
14 void set currentScale(num value) native "this.currentScale = value;"; 14 final num pixelUnitToMillimeterX;
15 15
16 _SVGPointJs get currentTranslate() native "return this.currentTranslate;"; 16 final num pixelUnitToMillimeterY;
17 17
18 _SVGAnimatedLengthJs get height() native "return this.height;"; 18 final num screenPixelToMillimeterX;
19 19
20 num get pixelUnitToMillimeterX() native "return this.pixelUnitToMillimeterX;"; 20 final num screenPixelToMillimeterY;
21 21
22 num get pixelUnitToMillimeterY() native "return this.pixelUnitToMillimeterY;"; 22 bool useCurrentView;
23 23
24 num get screenPixelToMillimeterX() native "return this.screenPixelToMillimeter X;"; 24 final _SVGRectJs viewport;
25 25
26 num get screenPixelToMillimeterY() native "return this.screenPixelToMillimeter Y;"; 26 final _SVGAnimatedLengthJs width;
27 27
28 bool get useCurrentView() native "return this.useCurrentView;"; 28 final _SVGAnimatedLengthJs x;
29 29
30 void set useCurrentView(bool value) native "this.useCurrentView = value;"; 30 final _SVGAnimatedLengthJs y;
31
32 _SVGRectJs get viewport() native "return this.viewport;";
33
34 _SVGAnimatedLengthJs get width() native "return this.width;";
35
36 _SVGAnimatedLengthJs get x() native "return this.x;";
37
38 _SVGAnimatedLengthJs get y() native "return this.y;";
39 31
40 bool animationsPaused() native; 32 bool animationsPaused() native;
41 33
42 bool checkEnclosure(_SVGElementJs element, _SVGRectJs rect) native; 34 bool checkEnclosure(_SVGElementJs element, _SVGRectJs rect) native;
43 35
44 bool checkIntersection(_SVGElementJs element, _SVGRectJs rect) native; 36 bool checkIntersection(_SVGElementJs element, _SVGRectJs rect) native;
45 37
46 _SVGAngleJs createSVGAngle() native; 38 _SVGAngleJs createSVGAngle() native;
47 39
48 _SVGLengthJs createSVGLength() native; 40 _SVGLengthJs createSVGLength() native;
(...skipping 29 matching lines...) Expand all
78 int suspendRedraw(int maxWaitMilliseconds) native; 70 int suspendRedraw(int maxWaitMilliseconds) native;
79 71
80 void unpauseAnimations() native; 72 void unpauseAnimations() native;
81 73
82 void unsuspendRedraw(int suspendHandleId) native; 74 void unsuspendRedraw(int suspendHandleId) native;
83 75
84 void unsuspendRedrawAll() native; 76 void unsuspendRedrawAll() native;
85 77
86 // From SVGTests 78 // From SVGTests
87 79
88 _SVGStringListJs get requiredExtensions() native "return this.requiredExtensio ns;"; 80 final _SVGStringListJs requiredExtensions;
89 81
90 _SVGStringListJs get requiredFeatures() native "return this.requiredFeatures;" ; 82 final _SVGStringListJs requiredFeatures;
91 83
92 _SVGStringListJs get systemLanguage() native "return this.systemLanguage;"; 84 final _SVGStringListJs systemLanguage;
93 85
94 bool hasExtension(String extension) native; 86 bool hasExtension(String extension) native;
95 87
96 // From SVGLangSpace 88 // From SVGLangSpace
97 89
98 String get xmllang() native "return this.xmllang;"; 90 String xmllang;
99 91
100 void set xmllang(String value) native "this.xmllang = value;"; 92 String xmlspace;
101
102 String get xmlspace() native "return this.xmlspace;";
103
104 void set xmlspace(String value) native "this.xmlspace = value;";
105 93
106 // From SVGExternalResourcesRequired 94 // From SVGExternalResourcesRequired
107 95
108 _SVGAnimatedBooleanJs get externalResourcesRequired() native "return this.exte rnalResourcesRequired;"; 96 final _SVGAnimatedBooleanJs externalResourcesRequired;
109 97
110 // From SVGStylable 98 // From SVGStylable
111 99
112 _SVGAnimatedStringJs get className() native "return this.className;"; 100 final _SVGAnimatedStringJs className;
113 101
114 _CSSStyleDeclarationJs get style() native "return this.style;"; 102 final _CSSStyleDeclarationJs style;
115 103
116 _CSSValueJs getPresentationAttribute(String name) native; 104 _CSSValueJs getPresentationAttribute(String name) native;
117 105
118 // From SVGLocatable 106 // From SVGLocatable
119 107
120 _SVGElementJs get farthestViewportElement() native "return this.farthestViewpo rtElement;"; 108 final _SVGElementJs farthestViewportElement;
121 109
122 _SVGElementJs get nearestViewportElement() native "return this.nearestViewport Element;"; 110 final _SVGElementJs nearestViewportElement;
123 111
124 _SVGRectJs getBBox() native; 112 _SVGRectJs getBBox() native;
125 113
126 _SVGMatrixJs getCTM() native; 114 _SVGMatrixJs getCTM() native;
127 115
128 _SVGMatrixJs getScreenCTM() native; 116 _SVGMatrixJs getScreenCTM() native;
129 117
130 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native; 118 _SVGMatrixJs getTransformToElement(_SVGElementJs element) native;
131 119
132 // From SVGFitToViewBox 120 // From SVGFitToViewBox
133 121
134 _SVGAnimatedPreserveAspectRatioJs get preserveAspectRatio() native "return thi s.preserveAspectRatio;"; 122 final _SVGAnimatedPreserveAspectRatioJs preserveAspectRatio;
135 123
136 _SVGAnimatedRectJs get viewBox() native "return this.viewBox;"; 124 final _SVGAnimatedRectJs viewBox;
137 125
138 // From SVGZoomAndPan 126 // From SVGZoomAndPan
139 127
140 int get zoomAndPan() native "return this.zoomAndPan;"; 128 int zoomAndPan;
141
142 void set zoomAndPan(int value) native "this.zoomAndPan = value;";
143 } 129 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698