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

Side by Side Diff: sky/sdk/lib/widgets/widget.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/widgets/variable_height_scrollable.dart ('k') | no next file » | 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 'dart:async'; 5 import 'dart:async';
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:sky' as sky; 7 import 'dart:sky' as sky;
8 8
9 import 'package:sky/base/debug.dart';
10 import 'package:sky/base/hit_test.dart';
9 import 'package:sky/mojo/activity.dart' as activity; 11 import 'package:sky/mojo/activity.dart' as activity;
12 import 'package:sky/rendering/box.dart';
13 import 'package:sky/rendering/object.dart';
14 import 'package:sky/rendering/sky_binding.dart';
10 15
11 import '../base/debug.dart'; 16 export 'package:sky/rendering/box.dart' show BoxConstraints, BoxDecoration, Bord er, BorderSide, EdgeDims;
12 import '../base/hit_test.dart'; 17 export 'package:sky/rendering/flex.dart' show FlexDirection;
13 import '../rendering/box.dart'; 18 export 'package:sky/rendering/object.dart' show Point, Offset, Size, Rect, Color , Paint, Path;
14 import '../rendering/object.dart';
15 import '../rendering/sky_binding.dart';
16
17 export '../rendering/box.dart' show BoxConstraints, BoxDecoration, Border, Borde rSide, EdgeDims;
18 export '../rendering/flex.dart' show FlexDirection;
19 export '../rendering/object.dart' show Point, Offset, Size, Rect, Color, Paint, Path;
20 19
21 final bool _shouldLogRenderDuration = false; 20 final bool _shouldLogRenderDuration = false;
22 21
23 typedef Widget Builder(); 22 typedef Widget Builder();
24 typedef void WidgetTreeWalker(Widget); 23 typedef void WidgetTreeWalker(Widget);
25 24
26 /// A base class for elements of the widget tree 25 /// A base class for elements of the widget tree
27 abstract class Widget { 26 abstract class Widget {
28 27
29 Widget({ String key }) : _key = key { 28 Widget({ String key }) : _key = key {
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 if (root.parent == null) { 1140 if (root.parent == null) {
1142 // we haven't attached it yet 1141 // we haven't attached it yet
1143 assert(_container.child == null); 1142 assert(_container.child == null);
1144 _container.child = root; 1143 _container.child = root;
1145 } 1144 }
1146 assert(root.parent == _container); 1145 assert(root.parent == _container);
1147 } 1146 }
1148 1147
1149 Widget build() => builder(); 1148 Widget build() => builder();
1150 } 1149 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/widgets/variable_height_scrollable.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698