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

Unified Diff: tools/dom/templates/html/impl/impl_HTMLTableRowElement.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_HTMLTableRowElement.darttemplate
diff --git a/tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate b/tools/dom/templates/html/impl/impl_HTMLTableRowElement.darttemplate
similarity index 51%
copy from tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate
copy to tools/dom/templates/html/impl/impl_HTMLTableRowElement.darttemplate
index 139f6c5bde6af34c6e477340e6c6ee52331a1477..af5ef1702d0013bba98a990d4d23c76bbf4ef122 100644
--- a/tools/dom/templates/html/dart2js/impl_SpeechRecognition.darttemplate
+++ b/tools/dom/templates/html/impl/impl_HTMLTableRowElement.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('HTMLTableRowElement.cells')
+ List<TableCellElement> get cells =>
+ new _WrappedList<TableCellElement>($dom_cells);
+
+ TableCellElement addCell() {
+ return insertCell(-1);
}
-}
+
+ TableCellElement insertCell(int index) => $dom_insertCell(index);
+
+$!MEMBERS}

Powered by Google App Engine
This is Rietveld 408576698