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

Side by Side Diff: tools/dom/src/Dimension.dart

Issue 19713009: Added part of to Dimension class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of html;
Jennifer Messerly 2013/07/19 01:33:43 add copyright here? :)
2
1 /** 3 /**
2 * Class representing a 4 * Class representing a
3 * [length measurement](https://developer.mozilla.org/en-US/docs/Web/CSS/length) 5 * [length measurement](https://developer.mozilla.org/en-US/docs/Web/CSS/length)
4 * in CSS. 6 * in CSS.
5 */ 7 */
6 @Experimental() 8 @Experimental()
7 class Dimension { 9 class Dimension {
8 num _value; 10 num _value;
9 String _unit; 11 String _unit;
10 12
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 74 }
73 75
74 /** Print out the CSS String representation of this value. */ 76 /** Print out the CSS String representation of this value. */
75 String toString() { 77 String toString() {
76 return '${_value}${_unit}'; 78 return '${_value}${_unit}';
77 } 79 }
78 80
79 /** Return a unitless, numerical value of this CSS value. */ 81 /** Return a unitless, numerical value of this CSS value. */
80 num get value => this._value; 82 num get value => this._value;
81 } 83 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698