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

Unified Diff: sky/sdk/lib/framework/fn2.dart

Issue 1157573012: Implement radio button for Sky’s fn2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix syntax error 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/framework/components2/radio.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index fd39b82050935f4e5c8846e7709a912159eb73fb..540566963cde71d230207b2a5d2655d0a54d4a5a 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -441,6 +441,26 @@ class SizeObserver extends OneChildRenderObjectWrapper {
}
}
+// TODO(jackson) need a mechanism for marking the RenderCustomPaint as needing paint
+class CustomPaint extends OneChildRenderObjectWrapper {
+ RenderCustomPaint root;
+ final CustomPaintCallback callback;
+
+ CustomPaint({ this.callback, UINode child, Object key })
+ : super(child: child, key: key);
+
+ RenderCustomPaint createNode() => new RenderCustomPaint(callback: callback);
+
+ void syncRenderObject(CustomPaint old) {
+ super.syncRenderObject(old);
+ root.callback = callback;
+ }
+
+ void _remove() {
+ root.callback = null;
+ super._remove();
+ }
+}
final List<UINode> _emptyList = new List<UINode>();
« no previous file with comments | « sky/sdk/lib/framework/components2/radio.dart ('k') | sky/sdk/lib/framework/rendering/box.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698