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

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

Issue 12605003: Converting Element.client*, offset* and Screen.avail* over to Rects (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_Screen.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_HTMLTableSectionElement.darttemplate b/tools/dom/templates/html/impl/impl_Screen.darttemplate
similarity index 56%
copy from tools/dom/templates/html/impl/impl_HTMLTableSectionElement.darttemplate
copy to tools/dom/templates/html/impl/impl_Screen.darttemplate
index cb5dd96fa2c0c877f79ce104c2a7509a3fe168ee..edcf0704cf36e99a1b152cccde68d1364e470cdf 100644
--- a/tools/dom/templates/html/impl/impl_HTMLTableSectionElement.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Screen.darttemplate
@@ -7,14 +7,10 @@ part of $LIBRARYNAME;
@DocsEditable
$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
- @DomName('HTMLTableSectionElement.rows')
- List<TableRowElement> get rows =>
- new _WrappedList<TableRowElement>($dom_rows);
-
- TableRowElement addRow() {
- return insertRow(-1);
- }
-
- TableRowElement insertRow(int index) => $dom_insertRow(index);
-
+ @DomName('Screen.availHeight')
+ @DomName('Screen.availLeft')
+ @DomName('Screen.availTop')
+ @DomName('Screen.availWidth')
+ Rect get available => new Rect($dom_availLeft, $dom_availTop, $dom_availWidth,
+ $dom_availHeight);
$!MEMBERS}
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698