| OLD | NEW |
| 1 part of base; | |
| 2 | |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 // 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 |
| 5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 6 | 4 |
| 7 /** | 5 /** |
| 8 * A utility class for representing two-dimensional sizes. | 6 * A utility class for representing two-dimensional sizes. |
| 9 */ | 7 */ |
| 10 class Size { | 8 class Size { |
| 11 num width; | 9 num width; |
| 12 num height; | 10 num height; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 129 } |
| 132 | 130 |
| 133 /** | 131 /** |
| 134 * Returns a nice string representing size. | 132 * Returns a nice string representing size. |
| 135 * Returns in the form (50 x 73). | 133 * Returns in the form (50 x 73). |
| 136 */ | 134 */ |
| 137 String toString() { | 135 String toString() { |
| 138 return "(${width} x ${height})"; | 136 return "(${width} x ${height})"; |
| 139 } | 137 } |
| 140 } | 138 } |
| OLD | NEW |