Chromium Code Reviews| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 369 } | 369 } |
| 370 | 370 |
| 371 void remove() { | 371 void remove() { |
| 372 if (child != null) | 372 if (child != null) |
| 373 removeChild(child); | 373 removeChild(child); |
| 374 super.remove(); | 374 super.remove(); |
| 375 } | 375 } |
| 376 | 376 |
| 377 } | 377 } |
| 378 | 378 |
| 379 class Clip extends OneChildRenderObjectWrapper { | 379 class ClipRect extends OneChildRenderObjectWrapper { |
| 380 | 380 |
| 381 Clip({ UINode child, Object key }) | 381 ClipRect({ UINode child, Object key }) |
| 382 : super(child: child, key: key); | 382 : super(child: child, key: key); |
| 383 | 383 |
| 384 RenderClip root; | 384 RenderClipRect root; |
| 385 RenderClip createNode() => new RenderClip(); | 385 RenderClipRect createNode() => new RenderClipRect(); |
| 386 | 386 |
| 387 } | 387 } |
| 388 | 388 |
| 389 class ClipCircle extends OneChildRenderObjectWrapper { | |
| 390 | |
| 391 ClipCircle({ UINode child, Object key }) | |
| 392 : super(child: child, key: key); | |
| 393 | |
| 394 RenderClipCircle root; | |
|
Hixie
2015/06/10 22:34:16
The conventions have changed for how to do this. S
| |
| 395 RenderClipCircle createNode() => new RenderClipCircle(); | |
| 396 | |
| 397 } | |
| 398 | |
| 389 class Padding extends OneChildRenderObjectWrapper { | 399 class Padding extends OneChildRenderObjectWrapper { |
| 390 | 400 |
| 391 Padding({ this.padding, UINode child, Object key }) | 401 Padding({ this.padding, UINode child, Object key }) |
| 392 : super(child: child, key: key); | 402 : super(child: child, key: key); |
| 393 | 403 |
| 394 RenderPadding root; | 404 RenderPadding root; |
| 395 final EdgeDims padding; | 405 final EdgeDims padding; |
| 396 | 406 |
| 397 RenderPadding createNode() => new RenderPadding(padding: padding); | 407 RenderPadding createNode() => new RenderPadding(padding: padding); |
| 398 | 408 |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1122 } | 1132 } |
| 1123 | 1133 |
| 1124 } | 1134 } |
| 1125 | 1135 |
| 1126 class Text extends Component { | 1136 class Text extends Component { |
| 1127 Text(this.data) : super(key: '*text*'); | 1137 Text(this.data) : super(key: '*text*'); |
| 1128 final String data; | 1138 final String data; |
| 1129 bool get interchangeable => true; | 1139 bool get interchangeable => true; |
| 1130 UINode build() => new Paragraph(text: data); | 1140 UINode build() => new Paragraph(text: data); |
| 1131 } | 1141 } |
| OLD | NEW |