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

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: Comments 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
« no previous file with comments | « client/html/src/SVGSVGElement.dart ('k') | no next file » | 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 // 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() {
9 var el = new SVGElement.tag("svg");
10 // Set the XMLNS so that we can safely embed this tag in an HTML document
11 // and set innerSVG; set version to 1.1 because that's required by the SVG
Jacob 2011/12/13 19:21:54 innerSVG? You mean so that we can simulate innerHT
nweiz 2011/12/13 19:27:57 Done. It turns out (I think) that the implementati
Jacob 2011/12/13 19:29:27 If we can leave out the namespace and still have t
nweiz 2011/12/13 19:41:24 I don't fully understand all the ramifications of
12 // 1.1 spec.
13 el.attributes['xmlns'] = "http://www.w3.org/2000/svg";
14 el.attributes['version'] = 1.1;
15 return el;
16 }
17
10 String get contentScriptType() { return _ptr.contentScriptType; } 18 String get contentScriptType() { return _ptr.contentScriptType; }
11 19
12 void set contentScriptType(String value) { _ptr.contentScriptType = value; } 20 void set contentScriptType(String value) { _ptr.contentScriptType = value; }
13 21
14 String get contentStyleType() { return _ptr.contentStyleType; } 22 String get contentStyleType() { return _ptr.contentStyleType; }
15 23
16 void set contentStyleType(String value) { _ptr.contentStyleType = value; } 24 void set contentStyleType(String value) { _ptr.contentStyleType = value; }
17 25
18 num get currentScale() { return _ptr.currentScale; } 26 num get currentScale() { return _ptr.currentScale; }
19 27
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 SVGAnimatedPreserveAspectRatio get preserveAspectRatio() { return LevelDom.wra pSVGAnimatedPreserveAspectRatio(_ptr.preserveAspectRatio); } 213 SVGAnimatedPreserveAspectRatio get preserveAspectRatio() { return LevelDom.wra pSVGAnimatedPreserveAspectRatio(_ptr.preserveAspectRatio); }
206 214
207 SVGAnimatedRect get viewBox() { return LevelDom.wrapSVGAnimatedRect(_ptr.viewB ox); } 215 SVGAnimatedRect get viewBox() { return LevelDom.wrapSVGAnimatedRect(_ptr.viewB ox); }
208 216
209 // From SVGZoomAndPan 217 // From SVGZoomAndPan
210 218
211 int get zoomAndPan() { return _ptr.zoomAndPan; } 219 int get zoomAndPan() { return _ptr.zoomAndPan; }
212 220
213 void set zoomAndPan(int value) { _ptr.zoomAndPan = value; } 221 void set zoomAndPan(int value) { _ptr.zoomAndPan = value; }
214 } 222 }
OLDNEW
« no previous file with comments | « client/html/src/SVGSVGElement.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698