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

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

Issue 1165003006: Various fixes in preparation for deploying (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove game changes 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
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;
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 602
603 RenderNodeWrapper get _emptyNode => _emptyContainer; 603 RenderNodeWrapper get _emptyNode => _emptyContainer;
604 604
605 final FlexDirection direction; 605 final FlexDirection direction;
606 606
607 FlexContainer({ 607 FlexContainer({
608 Object key, 608 Object key,
609 List<UINode> children, 609 List<UINode> children,
610 Style style, 610 Style style,
611 String inlineStyle, 611 String inlineStyle,
612 this.direction: FlexDirection.horizontal 612 this.direction: FlexDirection.Row
613 }) : super( 613 }) : super(
614 key: key, 614 key: key,
615 children: children, 615 children: children,
616 style: style, 616 style: style,
617 inlineStyle: inlineStyle 617 inlineStyle: inlineStyle
618 ); 618 );
619 619
620 void _syncRenderNode(UINode old) { 620 void _syncRenderNode(UINode old) {
621 super._syncRenderNode(old); 621 super._syncRenderNode(old);
622 _root.direction = direction; 622 _root.direction = direction;
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 assert(_root.parent == _host); 952 assert(_root.parent == _host);
953 } 953 }
954 } 954 }
955 955
956 class Text extends Component { 956 class Text extends Component {
957 Text(this.data) : super(key: '*text*'); 957 Text(this.data) : super(key: '*text*');
958 final String data; 958 final String data;
959 bool get interchangeable => true; 959 bool get interchangeable => true;
960 UINode build() => new Paragraph(children: [new TextFragment(data)]); 960 UINode build() => new Paragraph(children: [new TextFragment(data)]);
961 } 961 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698