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

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

Issue 8919029: Add a couple useful SVG constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 // 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 // WARNING: Do not edit - generated code.
6
7 class SVGSVGElementWrappingImplementation extends SVGElementWrappingImplementati on implements SVGSVGElement { 5 class SVGSVGElementWrappingImplementation extends SVGElementWrappingImplementati on implements SVGSVGElement {
8 SVGSVGElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 6 SVGSVGElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9 7
8 factory SVGSVGElementWrappingImplementation() {
Jacob 2011/12/13 01:49:22 Should we instead hide SVGSVGElement completely? I
nweiz 2011/12/13 19:08:06 It's more useful in that you want to create an SVG
9 var el = new SVGElement.tag("svg");
10 el.attributes['xmlns'] = "http://www.w3.org/2000/svg";
11 el.attributes['version'] = 1.1;
Jacob 2011/12/13 01:49:22 At least comment why you want to hard code this ve
nweiz 2011/12/13 19:08:06 Done.
12 return el;
13 }
14
10 String get contentScriptType() { return _ptr.contentScriptType; } 15 String get contentScriptType() { return _ptr.contentScriptType; }
11 16
12 void set contentScriptType(String value) { _ptr.contentScriptType = value; } 17 void set contentScriptType(String value) { _ptr.contentScriptType = value; }
13 18
14 String get contentStyleType() { return _ptr.contentStyleType; } 19 String get contentStyleType() { return _ptr.contentStyleType; }
15 20
16 void set contentStyleType(String value) { _ptr.contentStyleType = value; } 21 void set contentStyleType(String value) { _ptr.contentStyleType = value; }
17 22
18 num get currentScale() { return _ptr.currentScale; } 23 num get currentScale() { return _ptr.currentScale; }
19 24
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 SVGAnimatedPreserveAspectRatio get preserveAspectRatio() { return LevelDom.wra pSVGAnimatedPreserveAspectRatio(_ptr.preserveAspectRatio); } 210 SVGAnimatedPreserveAspectRatio get preserveAspectRatio() { return LevelDom.wra pSVGAnimatedPreserveAspectRatio(_ptr.preserveAspectRatio); }
206 211
207 SVGAnimatedRect get viewBox() { return LevelDom.wrapSVGAnimatedRect(_ptr.viewB ox); } 212 SVGAnimatedRect get viewBox() { return LevelDom.wrapSVGAnimatedRect(_ptr.viewB ox); }
208 213
209 // From SVGZoomAndPan 214 // From SVGZoomAndPan
210 215
211 int get zoomAndPan() { return _ptr.zoomAndPan; } 216 int get zoomAndPan() { return _ptr.zoomAndPan; }
212 217
213 void set zoomAndPan(int value) { _ptr.zoomAndPan = value; } 218 void set zoomAndPan(int value) { _ptr.zoomAndPan = value; }
214 } 219 }
OLDNEW
« client/html/src/SVGElement.dart ('K') | « client/html/src/SVGSVGElement.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698