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

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

Issue 8965006: Support SVGElement#elements, #innerHTML, and #outerHTML. Also add a .svg constructor. (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 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; }
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 SVGAnimatedPreserveAspectRatio get preserveAspectRatio() { return LevelDom.wra pSVGAnimatedPreserveAspectRatio(_ptr.preserveAspectRatio); } 210 SVGAnimatedPreserveAspectRatio get preserveAspectRatio() { return LevelDom.wra pSVGAnimatedPreserveAspectRatio(_ptr.preserveAspectRatio); }
211 211
212 SVGAnimatedRect get viewBox() { return LevelDom.wrapSVGAnimatedRect(_ptr.viewB ox); } 212 SVGAnimatedRect get viewBox() { return LevelDom.wrapSVGAnimatedRect(_ptr.viewB ox); }
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

Powered by Google App Engine
This is Rietveld 408576698