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

Unified Diff: sky/sdk/lib/widgets/widget.dart

Issue 1191443009: Introduce a LeafRenderObjectWrapper abstract class so that RenderObjectWrappers that are leaves don… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/lib/widgets/basic.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/widget.dart
diff --git a/sky/sdk/lib/widgets/widget.dart b/sky/sdk/lib/widgets/widget.dart
index 4df951b06f07a6e560912ed2f37118373ff0ed2e..fa1f5739d8befb12908e29e938d4595dd521f46d 100644
--- a/sky/sdk/lib/widgets/widget.dart
+++ b/sky/sdk/lib/widgets/widget.dart
@@ -549,6 +549,20 @@ abstract class RenderObjectWrapper extends Widget {
}
+abstract class LeafRenderObjectWrapper extends RenderObjectWrapper {
+
+ LeafRenderObjectWrapper({ String key }) : super(key: key);
+
+ void insertChildRoot(RenderObjectWrapper child, dynamic slot) {
+ assert(false);
+ }
+
+ void detachChildRoot(RenderObjectWrapper child) {
+ assert(false);
+ }
+
+}
+
abstract class OneChildRenderObjectWrapper extends RenderObjectWrapper {
OneChildRenderObjectWrapper({ String key, Widget child })
« no previous file with comments | « sky/sdk/lib/widgets/basic.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698