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

Side by Side Diff: sky/sdk/lib/framework/components2/scaffold.dart

Issue 1158263005: Rename "BorderSide.None" to "BorderSide.none", since it's a constant, and change the sky.Size.infin… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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/framework/components2/drawer.dart ('k') | sky/sdk/lib/framework/rendering/box.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 '../fn2.dart'; 5 import '../fn2.dart';
6 import 'dart:sky' as sky; 6 import 'dart:sky' as sky;
7 import '../rendering/box.dart'; 7 import '../rendering/box.dart';
8 import '../rendering/object.dart'; 8 import '../rendering/object.dart';
9 9
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 if (_slots[slot] == child) { 68 if (_slots[slot] == child) {
69 this[slot] = null; 69 this[slot] = null;
70 return slot; 70 return slot;
71 } 71 }
72 } 72 }
73 return null; 73 return null;
74 } 74 }
75 75
76 bool get sizedByParent => true; 76 bool get sizedByParent => true;
77 void performResize() { 77 void performResize() {
78 size = constraints.constrain(new sky.Size.infinite()); 78 size = constraints.constrain(sky.Size.infinite);
79 assert(size.width < double.INFINITY); 79 assert(size.width < double.INFINITY);
80 assert(size.height < double.INFINITY); 80 assert(size.height < double.INFINITY);
81 } 81 }
82 82
83 static const kToolbarHeight = 100.0; 83 static const kToolbarHeight = 100.0;
84 static const kStatusbarHeight = 50.0; 84 static const kStatusbarHeight = 50.0;
85 static const kButtonX = -16.0; // from right edge of body 85 static const kButtonX = -16.0; // from right edge of body
86 static const kButtonY = -16.0; // from bottom edge of body 86 static const kButtonY = -16.0; // from bottom edge of body
87 87
88 void performLayout() { 88 void performLayout() {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 void syncRenderObject(UINode old) { 190 void syncRenderObject(UINode old) {
191 super.syncRenderObject(old); 191 super.syncRenderObject(old);
192 syncChild(toolbar, old is Scaffold ? old.toolbar : null, ScaffoldSlots.toolb ar); 192 syncChild(toolbar, old is Scaffold ? old.toolbar : null, ScaffoldSlots.toolb ar);
193 syncChild(body, old is Scaffold ? old.body : null, ScaffoldSlots.body); 193 syncChild(body, old is Scaffold ? old.body : null, ScaffoldSlots.body);
194 syncChild(statusbar, old is Scaffold ? old.statusbar : null, ScaffoldSlots.s tatusBar); 194 syncChild(statusbar, old is Scaffold ? old.statusbar : null, ScaffoldSlots.s tatusBar);
195 syncChild(drawer, old is Scaffold ? old.drawer : null, ScaffoldSlots.drawer) ; 195 syncChild(drawer, old is Scaffold ? old.drawer : null, ScaffoldSlots.drawer) ;
196 syncChild(floatingActionButton, old is Scaffold ? old.floatingActionButton : null, ScaffoldSlots.floatingActionButton); 196 syncChild(floatingActionButton, old is Scaffold ? old.floatingActionButton : null, ScaffoldSlots.floatingActionButton);
197 } 197 }
198 198
199 } 199 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/components2/drawer.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698