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

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: 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
« client/html/src/SVGElement.dart ('K') | « 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..1d46f3be5a37e442becb5dd65a0035ee8109021e 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() {
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
+ var el = new SVGElement.tag("svg");
+ el.attributes['xmlns'] = "http://www.w3.org/2000/svg";
+ 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.
+ return el;
+ }
+
String get contentScriptType() { return _ptr.contentScriptType; }
void set contentScriptType(String value) { _ptr.contentScriptType = value; }
« 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