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

Unified Diff: tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate

Issue 12219002: 'Moved all documentation from old .dartdoc files.' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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: tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate b/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
index 7727ab7563e0d8b92cc1c3d2b4cb52251ab49ab4..4bfdfbcc794295c0024b4098a4bd24aaa03b5e44 100644
--- a/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
+++ b/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
@@ -59,14 +59,27 @@ $endif
this.nodes.addAll(nodes);
}
+ /**
+ * Adds the specified element after the last child of this
+ * document fragment.
+ */
void append(Element element) {
this.children.add(element);
}
+ /**
+ * Adds the specified text as a text node after the last child of this
+ * document fragment.
+ */
void appendText(String text) {
this.nodes.add(new Text(text));
}
+
+ /**
+ * Parses the specified text as HTML and adds the resulting node after the
+ * last child of this document fragment.
+ */
void appendHtml(String text) {
this.nodes.add(new DocumentFragment.html(text));
}
« no previous file with comments | « tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate ('k') | tools/dom/templates/html/impl/impl_Storage.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698