Chromium Code Reviews| Index: tools/dom/templates/html/impl/impl_HTMLTableElement.darttemplate |
| diff --git a/tools/dom/templates/html/impl/impl_HTMLTableElement.darttemplate b/tools/dom/templates/html/impl/impl_HTMLTableElement.darttemplate |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..32cd109b20f7cc6ebc96609d433198efd0c56759 |
| --- /dev/null |
| +++ b/tools/dom/templates/html/impl/impl_HTMLTableElement.darttemplate |
| @@ -0,0 +1,42 @@ |
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| +// 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. |
| + |
| +part of $LIBRARYNAME; |
| + |
| +@DocsEditable |
| +$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| + |
| + @DomName('HTMLTableElement.tBodies') |
| + List<TableSectionElement> get tBodies => |
| + new _WrappedList<TableSectionElement>($dom_tBodies); |
|
sra1
2013/02/27 03:01:10
indent +4
|
| + |
| + @DomName('HTMLTableElement.rows') |
| + List<TableRowElement> get rows => |
| + new _WrappedList<TableRowElement>($dom_rows); |
| + |
| + TableRowElement addRow() { |
| + return insertRow(-1); |
| + } |
| + |
| + TableCaptionElement createCaption() => $dom_createCaption(); |
| + TableSectionElement createTBody() => $dom_createTBody(); |
| + TableSectionElement createTFoot() => $dom_createTFoot(); |
| + TableSectionElement createTHead() => $dom_createTHead(); |
| + TableRowElement insertRow(int index) => $dom_insertRow(index); |
| + |
| +$if DART2JS |
| + TableSectionElement $dom_createTBody() { |
| + if (JS('bool', '!!#.createTBody', this)) { |
| + return this._createTBody(); |
| + } |
| + var tbody = new Element.tag('tbody'); |
| + this.children.add(tbody); |
| + return tbody; |
| + } |
| + |
| + @JSName('createTBody') |
| + TableSectionElement _createTBody() native; |
| +$endif |
| + |
| +$!MEMBERS} |