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

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

Issue 12320102: Cleaning up the TableElement API (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_HTMLTableSectionElement.darttemplate
diff --git a/tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate b/tools/dom/templates/html/impl/impl_HTMLTableSectionElement.darttemplate
similarity index 52%
copy from tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate
copy to tools/dom/templates/html/impl/impl_HTMLTableSectionElement.darttemplate
index 139f6c5bde6af34c6e477340e6c6ee52331a1477..cb5dd96fa2c0c877f79ce104c2a7509a3fe168ee 100644
--- a/tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate
+++ b/tools/dom/templates/html/impl/impl_HTMLTableSectionElement.darttemplate
@@ -4,10 +4,17 @@
part of $LIBRARYNAME;
+@DocsEditable
$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
-$!MEMBERS
- factory SpeechRecognition() {
- return JS('SpeechRecognition',
- 'new (window.SpeechRecognition || window.webkitSpeechRecognition)()');
+
+ @DomName('HTMLTableSectionElement.rows')
+ List<TableRowElement> get rows =>
+ new _WrappedList<TableRowElement>($dom_rows);
+
+ TableRowElement addRow() {
+ return insertRow(-1);
}
-}
+
+ TableRowElement insertRow(int index) => $dom_insertRow(index);
+
+$!MEMBERS}

Powered by Google App Engine
This is Rietveld 408576698