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

Side by Side Diff: sky/sdk/lib/framework/fn2.dart

Issue 1156543004: [Effen] Fork stocks and fn.dart so we have something to work on during the porting process (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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/examples/stocks2/pubspec.yaml ('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 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
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 }
OLDNEW
« no previous file with comments | « sky/examples/stocks2/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698