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

Side by Side Diff: sky/sdk/lib/rendering/auto_layout.dart

Issue 1232313002: Use package:sky imports consistently (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix BUILD.gn Created 5 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
« no previous file with comments | « sky/sdk/lib/painting/box_painter.dart ('k') | sky/sdk/lib/rendering/block.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/painting/box_painter.dart ('k') | sky/sdk/lib/rendering/block.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698