| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 try { | 69 try { |
| 70 _notifyingMountStatus = true; | 70 _notifyingMountStatus = true; |
| 71 for (UINode node in _mountedChanged) { | 71 for (UINode node in _mountedChanged) { |
| 72 if (node._wasMounted != node._mounted) { | 72 if (node._wasMounted != node._mounted) { |
| 73 if (node._mounted) | 73 if (node._mounted) |
| 74 node._didMount(); | 74 node._didMount(); |
| 75 else | 75 else |
| 76 node._didUnmount(); | 76 node._didUnmount(); |
| 77 node._wasMounted = node._mounted; | 77 node._wasMounted = node._mounted; |
| 78 } | 78 } |
| 79 }); | 79 } |
| 80 _mountedChanged.clear(); | 80 _mountedChanged.clear(); |
| 81 } finally { | 81 } finally { |
| 82 _notifyingMountStatus = false; | 82 _notifyingMountStatus = false; |
| 83 } | 83 } |
| 84 } | 84 } |
| 85 void _didMount() { } | 85 void _didMount() { } |
| 86 void _didUnmount() { } | 86 void _didUnmount() { } |
| 87 | 87 |
| 88 RenderObject root; | 88 RenderObject root; |
| 89 | 89 |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 assert(root.parent is RenderView); | 1007 assert(root.parent is RenderView); |
| 1008 } | 1008 } |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 class Text extends Component { | 1011 class Text extends Component { |
| 1012 Text(this.data) : super(key: '*text*'); | 1012 Text(this.data) : super(key: '*text*'); |
| 1013 final String data; | 1013 final String data; |
| 1014 bool get interchangeable => true; | 1014 bool get interchangeable => true; |
| 1015 UINode build() => new Paragraph(text: data); | 1015 UINode build() => new Paragraph(text: data); |
| 1016 } | 1016 } |
| OLD | NEW |