OLD | NEW |
1 part of layout; | |
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 // This file has classes representing the grid sizing functions | 5 // This file has classes representing the grid sizing functions |
8 | 6 |
9 /** | 7 /** |
10 * Represents the sizing function used for the min or max of a row or column. | 8 * Represents the sizing function used for the min or max of a row or column. |
11 */ | 9 */ |
12 // TODO(jmesserly): rename to GridSizing, or make internal | 10 // TODO(jmesserly): rename to GridSizing, or make internal |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 140 |
143 class _MaxBreadthAccumulator implements _BreadthAccumulator { | 141 class _MaxBreadthAccumulator implements _BreadthAccumulator { |
144 const _MaxBreadthAccumulator(); | 142 const _MaxBreadthAccumulator(); |
145 | 143 |
146 void setSize(GridTrack t, num value) { t.maxBreadth = value; } | 144 void setSize(GridTrack t, num value) { t.maxBreadth = value; } |
147 num getSize(GridTrack t) => t.maxBreadth; | 145 num getSize(GridTrack t) => t.maxBreadth; |
148 | 146 |
149 SizingFunction getSizingFunction(GridTrack t) => t.maxSizing; | 147 SizingFunction getSizingFunction(GridTrack t) => t.maxSizing; |
150 } | 148 } |
151 | 149 |
OLD | NEW |