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

Unified Diff: lib/html/templates/html/interface/interface_DocumentFragment.darttemplate

Issue 10915245: Removing interfaces from dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Further fixes to dartium. Created 8 years, 3 months 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
Index: lib/html/templates/html/interface/interface_DocumentFragment.darttemplate
diff --git a/lib/html/templates/html/interface/interface_DocumentFragment.darttemplate b/lib/html/templates/html/interface/interface_DocumentFragment.darttemplate
index 83fe24c7e278e28f12c05862b25f3cacd90712f9..5e008870dc7b75f755e3c93986e913d6cf468340 100644
--- a/lib/html/templates/html/interface/interface_DocumentFragment.darttemplate
+++ b/lib/html/templates/html/interface/interface_DocumentFragment.darttemplate
@@ -3,17 +3,19 @@
// BSD-style license that can be found in the LICENSE file.
$!COMMENT
-interface DocumentFragment extends Element default _$(ID)FactoryProvider {
+abstract class DocumentFragment extends Element {
- DocumentFragment();
+ factory DocumentFragment() => _$(ID)FactoryProvider.createDocumentFragment();
- DocumentFragment.html(String html);
+ factory DocumentFragment.html(String html) =>
+ _$(ID)FactoryProvider.createDocumentFragment_html(html);
// TODO(nweiz): enable this when XML is ported
// /** WARNING: Currently this doesn't work on Dartium (issue 649). */
// DocumentFragment.xml(String xml);
- DocumentFragment.svg(String svg);
+ factory DocumentFragment.svg(String svg) =>
+ new _$(ID)FactoryProvider.DocumentFragment.svg(svg);
DocumentFragment clone(bool deep);

Powered by Google App Engine
This is Rietveld 408576698