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

Unified 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: Oops, don't include the next patch in this one 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/html/src/SVGSVGElement.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/SVGSVGElementWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_SVGSVGElementWrappingImplementation.dart b/client/html/src/SVGSVGElementWrappingImplementation.dart
similarity index 96%
rename from client/html/generated/src/wrapping/_SVGSVGElementWrappingImplementation.dart
rename to client/html/src/SVGSVGElementWrappingImplementation.dart
index 214705269cd1d6225cd83e34adc6c4c911662451..ca6ca99a477194bfc12fdbe4ab9fc5699246e433 100644
--- a/client/html/generated/src/wrapping/_SVGSVGElementWrappingImplementation.dart
+++ b/client/html/src/SVGSVGElementWrappingImplementation.dart
@@ -2,11 +2,16 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// WARNING: Do not edit - generated code.
-
class SVGSVGElementWrappingImplementation extends SVGElementWrappingImplementation implements SVGSVGElement {
SVGSVGElementWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
+ factory SVGSVGElementWrappingImplementation() {
+ var el = new SVGElement.tag("svg");
+ // The SVG spec requires the version attribute to match the spec version
+ el.attributes['version'] = 1.1;
+ return el;
+ }
+
String get contentScriptType() { return _ptr.contentScriptType; }
void set contentScriptType(String value) { _ptr.contentScriptType = value; }
« 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