| 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 library fn; | 5 library fn; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:mirrors'; | 9 import 'dart:mirrors'; |
| 10 import 'dart:sky' as sky; | 10 import 'dart:sky' as sky; |
| 11 import 'reflect.dart' as reflect; | 11 import 'reflect.dart' as reflect; |
| 12 import 'layout.dart'; | 12 import 'layout2.dart'; |
| 13 | |
| 14 export 'layout.dart' show Style; | |
| 15 | 13 |
| 16 final sky.Tracing _tracing = sky.window.tracing; | 14 final sky.Tracing _tracing = sky.window.tracing; |
| 17 | 15 |
| 18 final bool _shouldLogRenderDuration = false; | 16 final bool _shouldLogRenderDuration = false; |
| 19 final bool _shouldTrace = false; | 17 final bool _shouldTrace = false; |
| 20 | 18 |
| 21 enum _SyncOperation { IDENTICAL, INSERTION, STATEFUL, STATELESS, REMOVAL } | 19 enum _SyncOperation { IDENTICAL, INSERTION, STATEFUL, STATELESS, REMOVAL } |
| 22 | 20 |
| 23 /* | 21 /* |
| 24 * All Effen nodes derive from UINode. All nodes have a _parent, a _key and | 22 * All Effen nodes derive from UINode. All nodes have a _parent, a _key and |
| (...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 assert(_root.parent == _host); | 950 assert(_root.parent == _host); |
| 953 } | 951 } |
| 954 } | 952 } |
| 955 | 953 |
| 956 class Text extends Component { | 954 class Text extends Component { |
| 957 Text(this.data) : super(key: '*text*'); | 955 Text(this.data) : super(key: '*text*'); |
| 958 final String data; | 956 final String data; |
| 959 bool get interchangeable => true; | 957 bool get interchangeable => true; |
| 960 UINode build() => new Paragraph(children: [new TextFragment(data)]); | 958 UINode build() => new Paragraph(children: [new TextFragment(data)]); |
| 961 } | 959 } |
| OLD | NEW |