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 'app.dart'; | 7 import 'app.dart'; |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 import 'dart:collection'; | 9 import 'dart:collection'; |
10 import 'dart:mirrors'; | 10 import 'dart:mirrors'; |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 } | 697 } |
698 | 698 |
699 class StackContainer extends MultiChildRenderObjectWrapper { | 699 class StackContainer extends MultiChildRenderObjectWrapper { |
700 RenderStack root; | 700 RenderStack root; |
701 RenderStack createNode() => new RenderStack(); | 701 RenderStack createNode() => new RenderStack(); |
702 | 702 |
703 StackContainer({ Object key, List<UINode> children }) | 703 StackContainer({ Object key, List<UINode> children }) |
704 : super(key: key, children: children); | 704 : super(key: key, children: children); |
705 } | 705 } |
706 | 706 |
| 707 class StackPositionedChild extends ParentDataNode { |
| 708 StackPositionedChild(UINode content, { |
| 709 double top, double right, double bottom, double left |
| 710 }) : super(content, new StackParentData()..top = top |
| 711 ..right = right |
| 712 ..bottom = bottom |
| 713 ..left = left); |
| 714 } |
| 715 |
707 class Paragraph extends RenderObjectWrapper { | 716 class Paragraph extends RenderObjectWrapper { |
708 RenderParagraph root; | 717 RenderParagraph root; |
709 RenderParagraph createNode() => new RenderParagraph(text: text); | 718 RenderParagraph createNode() => new RenderParagraph(text: text); |
710 | 719 |
711 final String text; | 720 final String text; |
712 | 721 |
713 Paragraph({ Object key, this.text }) : super(key: key); | 722 Paragraph({ Object key, this.text }) : super(key: key); |
714 | 723 |
715 void syncRenderObject(UINode old) { | 724 void syncRenderObject(UINode old) { |
716 super.syncRenderObject(old); | 725 super.syncRenderObject(old); |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 assert(root.parent is RenderView); | 1060 assert(root.parent is RenderView); |
1052 } | 1061 } |
1053 } | 1062 } |
1054 | 1063 |
1055 class Text extends Component { | 1064 class Text extends Component { |
1056 Text(this.data) : super(key: '*text*'); | 1065 Text(this.data) : super(key: '*text*'); |
1057 final String data; | 1066 final String data; |
1058 bool get interchangeable => true; | 1067 bool get interchangeable => true; |
1059 UINode build() => new Paragraph(text: data); | 1068 UINode build() => new Paragraph(text: data); |
1060 } | 1069 } |
OLD | NEW |