| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import 'box.dart'; | |
| 6 import 'object.dart'; | |
| 7 import 'package:cassowary/cassowary.dart' as al; | 5 import 'package:cassowary/cassowary.dart' as al; |
| 6 import 'package:sky/rendering/box.dart'; |
| 7 import 'package:sky/rendering/object.dart'; |
| 8 | 8 |
| 9 /// Hosts the edge parameters and vends useful methods to construct expressions | 9 /// Hosts the edge parameters and vends useful methods to construct expressions |
| 10 /// for constraints. Also sets up and manages implicit constraints and edit | 10 /// for constraints. Also sets up and manages implicit constraints and edit |
| 11 /// variables. Used as a mixin by layout containers and parent data instances | 11 /// variables. Used as a mixin by layout containers and parent data instances |
| 12 /// of render boxes taking part in auto layout | 12 /// of render boxes taking part in auto layout |
| 13 abstract class _AutoLayoutParamMixin { | 13 abstract class _AutoLayoutParamMixin { |
| 14 // Ideally, the edges would all be final, but then they would have to be | 14 // Ideally, the edges would all be final, but then they would have to be |
| 15 // initialized before the constructor. Not sure how to do that using a Mixin | 15 // initialized before the constructor. Not sure how to do that using a Mixin |
| 16 al.Param _leftEdge; | 16 al.Param _leftEdge; |
| 17 al.Param _rightEdge; | 17 al.Param _rightEdge; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 222 } |
| 223 | 223 |
| 224 @override | 224 @override |
| 225 List<al.Constraint> _constructImplicitConstraints() { | 225 List<al.Constraint> _constructImplicitConstraints() { |
| 226 // Only edits variables are present on layout containers. If, in the future, | 226 // Only edits variables are present on layout containers. If, in the future, |
| 227 // implicit constraints (for say margins, padding, etc.) need to be added, | 227 // implicit constraints (for say margins, padding, etc.) need to be added, |
| 228 // they must be returned from here. | 228 // they must be returned from here. |
| 229 return null; | 229 return null; |
| 230 } | 230 } |
| 231 } | 231 } |
| OLD | NEW |