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

Side by Side Diff: lib/html/src/SVGSVGElementWrappingImplementation.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « lib/html/src/SVGSVGElement.dart ('k') | lib/html/src/StorageEvent.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class SVGSVGElementWrappingImplementation extends SVGElementWrappingImplementati on implements SVGSVGElement { 5 class SVGSVGElementWrappingImplementation extends SVGElementWrappingImplementati on implements SVGSVGElement {
6 SVGSVGElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 6 SVGSVGElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
7 7
8 factory SVGSVGElementWrappingImplementation() { 8 factory SVGSVGElementWrappingImplementation() {
9 var el = new SVGElement.tag("svg"); 9 var el = new SVGElement.tag("svg");
10 // The SVG spec requires the version attribute to match the spec version 10 // The SVG spec requires the version attribute to match the spec version
11 el.attributes['version'] = "1.1"; 11 el.attributes['version'] = "1.1";
12 return el; 12 return el;
13 } 13 }
14 14
15 String get contentScriptType() { return _ptr.contentScriptType; } 15 String get contentScriptType { return _ptr.contentScriptType; }
16 16
17 void set contentScriptType(String value) { _ptr.contentScriptType = value; } 17 void set contentScriptType(String value) { _ptr.contentScriptType = value; }
18 18
19 String get contentStyleType() { return _ptr.contentStyleType; } 19 String get contentStyleType { return _ptr.contentStyleType; }
20 20
21 void set contentStyleType(String value) { _ptr.contentStyleType = value; } 21 void set contentStyleType(String value) { _ptr.contentStyleType = value; }
22 22
23 num get currentScale() { return _ptr.currentScale; } 23 num get currentScale { return _ptr.currentScale; }
24 24
25 void set currentScale(num value) { _ptr.currentScale = value; } 25 void set currentScale(num value) { _ptr.currentScale = value; }
26 26
27 SVGPoint get currentTranslate() { return LevelDom.wrapSVGPoint(_ptr.currentTra nslate); } 27 SVGPoint get currentTranslate { return LevelDom.wrapSVGPoint(_ptr.currentTrans late); }
28 28
29 SVGAnimatedLength get height() { return LevelDom.wrapSVGAnimatedLength(_ptr.he ight); } 29 SVGAnimatedLength get height { return LevelDom.wrapSVGAnimatedLength(_ptr.heig ht); }
30 30
31 num get pixelUnitToMillimeterX() { return _ptr.pixelUnitToMillimeterX; } 31 num get pixelUnitToMillimeterX { return _ptr.pixelUnitToMillimeterX; }
32 32
33 num get pixelUnitToMillimeterY() { return _ptr.pixelUnitToMillimeterY; } 33 num get pixelUnitToMillimeterY { return _ptr.pixelUnitToMillimeterY; }
34 34
35 num get screenPixelToMillimeterX() { return _ptr.screenPixelToMillimeterX; } 35 num get screenPixelToMillimeterX { return _ptr.screenPixelToMillimeterX; }
36 36
37 num get screenPixelToMillimeterY() { return _ptr.screenPixelToMillimeterY; } 37 num get screenPixelToMillimeterY { return _ptr.screenPixelToMillimeterY; }
38 38
39 bool get useCurrentView() { return _ptr.useCurrentView; } 39 bool get useCurrentView { return _ptr.useCurrentView; }
40 40
41 void set useCurrentView(bool value) { _ptr.useCurrentView = value; } 41 void set useCurrentView(bool value) { _ptr.useCurrentView = value; }
42 42
43 SVGRect get viewport() { return LevelDom.wrapSVGRect(_ptr.viewport); } 43 SVGRect get viewport { return LevelDom.wrapSVGRect(_ptr.viewport); }
44 44
45 SVGAnimatedLength get width() { return LevelDom.wrapSVGAnimatedLength(_ptr.wid th); } 45 SVGAnimatedLength get width { return LevelDom.wrapSVGAnimatedLength(_ptr.width ); }
46 46
47 SVGAnimatedLength get x() { return LevelDom.wrapSVGAnimatedLength(_ptr.x); } 47 SVGAnimatedLength get x { return LevelDom.wrapSVGAnimatedLength(_ptr.x); }
48 48
49 SVGAnimatedLength get y() { return LevelDom.wrapSVGAnimatedLength(_ptr.y); } 49 SVGAnimatedLength get y { return LevelDom.wrapSVGAnimatedLength(_ptr.y); }
50 50
51 bool animationsPaused() { 51 bool animationsPaused() {
52 return _ptr.animationsPaused(); 52 return _ptr.animationsPaused();
53 } 53 }
54 54
55 bool checkEnclosure(SVGElement element, SVGRect rect) { 55 bool checkEnclosure(SVGElement element, SVGRect rect) {
56 return _ptr.checkEnclosure(LevelDom.unwrap(element), LevelDom.unwrap(rect)); 56 return _ptr.checkEnclosure(LevelDom.unwrap(element), LevelDom.unwrap(rect));
57 } 57 }
58 58
59 bool checkIntersection(SVGElement element, SVGRect rect) { 59 bool checkIntersection(SVGElement element, SVGRect rect) {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return; 142 return;
143 } 143 }
144 144
145 void unsuspendRedrawAll() { 145 void unsuspendRedrawAll() {
146 _ptr.unsuspendRedrawAll(); 146 _ptr.unsuspendRedrawAll();
147 return; 147 return;
148 } 148 }
149 149
150 // From SVGTests 150 // From SVGTests
151 151
152 SVGStringList get requiredExtensions() { return LevelDom.wrapSVGStringList(_pt r.requiredExtensions); } 152 SVGStringList get requiredExtensions { return LevelDom.wrapSVGStringList(_ptr. requiredExtensions); }
153 153
154 SVGStringList get requiredFeatures() { return LevelDom.wrapSVGStringList(_ptr. requiredFeatures); } 154 SVGStringList get requiredFeatures { return LevelDom.wrapSVGStringList(_ptr.re quiredFeatures); }
155 155
156 SVGStringList get systemLanguage() { return LevelDom.wrapSVGStringList(_ptr.sy stemLanguage); } 156 SVGStringList get systemLanguage { return LevelDom.wrapSVGStringList(_ptr.syst emLanguage); }
157 157
158 bool hasExtension(String extension) { 158 bool hasExtension(String extension) {
159 return _ptr.hasExtension(extension); 159 return _ptr.hasExtension(extension);
160 } 160 }
161 161
162 // From SVGLangSpace 162 // From SVGLangSpace
163 163
164 String get xmllang() { return _ptr.xmllang; } 164 String get xmllang { return _ptr.xmllang; }
165 165
166 void set xmllang(String value) { _ptr.xmllang = value; } 166 void set xmllang(String value) { _ptr.xmllang = value; }
167 167
168 String get xmlspace() { return _ptr.xmlspace; } 168 String get xmlspace { return _ptr.xmlspace; }
169 169
170 void set xmlspace(String value) { _ptr.xmlspace = value; } 170 void set xmlspace(String value) { _ptr.xmlspace = value; }
171 171
172 // From SVGExternalResourcesRequired 172 // From SVGExternalResourcesRequired
173 173
174 SVGAnimatedBoolean get externalResourcesRequired() { return LevelDom.wrapSVGAn imatedBoolean(_ptr.externalResourcesRequired); } 174 SVGAnimatedBoolean get externalResourcesRequired { return LevelDom.wrapSVGAnim atedBoolean(_ptr.externalResourcesRequired); }
175 175
176 // From SVGStylable 176 // From SVGStylable
177 177
178 SVGAnimatedString get className() { return LevelDom.wrapSVGAnimatedString(_ptr .className); } 178 SVGAnimatedString get className { return LevelDom.wrapSVGAnimatedString(_ptr.c lassName); }
179 179
180 CSSStyleDeclaration get style() { return LevelDom.wrapCSSStyleDeclaration(_ptr .style); } 180 CSSStyleDeclaration get style { return LevelDom.wrapCSSStyleDeclaration(_ptr.s tyle); }
181 181
182 CSSValue getPresentationAttribute(String name) { 182 CSSValue getPresentationAttribute(String name) {
183 return LevelDom.wrapCSSValue(_ptr.getPresentationAttribute(name)); 183 return LevelDom.wrapCSSValue(_ptr.getPresentationAttribute(name));
184 } 184 }
185 185
186 // From SVGLocatable 186 // From SVGLocatable
187 187
188 SVGElement get farthestViewportElement() { return LevelDom.wrapSVGElement(_ptr .farthestViewportElement); } 188 SVGElement get farthestViewportElement { return LevelDom.wrapSVGElement(_ptr.f arthestViewportElement); }
189 189
190 SVGElement get nearestViewportElement() { return LevelDom.wrapSVGElement(_ptr. nearestViewportElement); } 190 SVGElement get nearestViewportElement { return LevelDom.wrapSVGElement(_ptr.ne arestViewportElement); }
191 191
192 SVGRect getBBox() { 192 SVGRect getBBox() {
193 return LevelDom.wrapSVGRect(_ptr.getBBox()); 193 return LevelDom.wrapSVGRect(_ptr.getBBox());
194 } 194 }
195 195
196 SVGMatrix getCTM() { 196 SVGMatrix getCTM() {
197 return LevelDom.wrapSVGMatrix(_ptr.getCTM()); 197 return LevelDom.wrapSVGMatrix(_ptr.getCTM());
198 } 198 }
199 199
200 SVGMatrix getScreenCTM() { 200 SVGMatrix getScreenCTM() {
201 return LevelDom.wrapSVGMatrix(_ptr.getScreenCTM()); 201 return LevelDom.wrapSVGMatrix(_ptr.getScreenCTM());
202 } 202 }
203 203
204 SVGMatrix getTransformToElement(SVGElement element) { 204 SVGMatrix getTransformToElement(SVGElement element) {
205 return LevelDom.wrapSVGMatrix(_ptr.getTransformToElement(LevelDom.unwrap(ele ment))); 205 return LevelDom.wrapSVGMatrix(_ptr.getTransformToElement(LevelDom.unwrap(ele ment)));
206 } 206 }
207 207
208 // From SVGFitToViewBox 208 // From SVGFitToViewBox
209 209
210 SVGAnimatedPreserveAspectRatio get preserveAspectRatio() { return LevelDom.wra pSVGAnimatedPreserveAspectRatio(_ptr.preserveAspectRatio); } 210 SVGAnimatedPreserveAspectRatio get preserveAspectRatio { return LevelDom.wrapS VGAnimatedPreserveAspectRatio(_ptr.preserveAspectRatio); }
211 211
212 SVGAnimatedRect get viewBox() { return LevelDom.wrapSVGAnimatedRect(_ptr.viewB ox); } 212 SVGAnimatedRect get viewBox { return LevelDom.wrapSVGAnimatedRect(_ptr.viewBox ); }
213 213
214 // From SVGZoomAndPan 214 // From SVGZoomAndPan
215 215
216 int get zoomAndPan() { return _ptr.zoomAndPan; } 216 int get zoomAndPan { return _ptr.zoomAndPan; }
217 217
218 void set zoomAndPan(int value) { _ptr.zoomAndPan = value; } 218 void set zoomAndPan(int value) { _ptr.zoomAndPan = value; }
219 } 219 }
OLDNEW
« no previous file with comments | « lib/html/src/SVGSVGElement.dart ('k') | lib/html/src/StorageEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698