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

Side by Side Diff: tools/dom/templates/html/impl/impl_ClientRect.darttemplate

Issue 17508002: Revert "Making all DOM types abstract and removing superfluous Dartium constructors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 @DocsEditable 7 @DocsEditable
8 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS implements Rect$IMPLEME NTS$NATIVESPEC { 8 $(ANNOTATIONS)class $CLASSNAME$EXTENDS implements Rect$IMPLEMENTS$NATIVESPEC {
9 9
10 // NOTE! All code below should be common with Rect. 10 // NOTE! All code below should be common with Rect.
11 // TODO(blois): implement with mixins when available. 11 // TODO(blois): implement with mixins when available.
12 12
13 String toString() { 13 String toString() {
14 return '($left, $top, $width, $height)'; 14 return '($left, $top, $width, $height)';
15 } 15 }
16 16
17 bool operator ==(other) { 17 bool operator ==(other) {
18 if (other is !Rect) return false; 18 if (other is !Rect) return false;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 * Truncates coordinates to integers and returns the result as a new 92 * Truncates coordinates to integers and returns the result as a new
93 * rectangle. 93 * rectangle.
94 */ 94 */
95 Rect toInt() => new Rect(left.toInt(), top.toInt(), width.toInt(), 95 Rect toInt() => new Rect(left.toInt(), top.toInt(), width.toInt(),
96 height.toInt()); 96 height.toInt());
97 97
98 Point get topLeft => new Point(this.left, this.top); 98 Point get topLeft => new Point(this.left, this.top);
99 Point get bottomRight => new Point(this.left + this.width, 99 Point get bottomRight => new Point(this.left + this.width,
100 this.top + this.height); 100 this.top + this.height);
101 $!MEMBERS} 101 $!MEMBERS}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698