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

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: 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
Index: sky/sdk/lib/framework/fn2.dart
diff --git a/sky/sdk/lib/framework/fn2.dart b/sky/sdk/lib/framework/fn2.dart
index fc9770624621cce7a70e2df720b7384c24c95299..7bce37aa7ecce79d941dd082cb874149a6e27a2f 100644
--- a/sky/sdk/lib/framework/fn2.dart
+++ b/sky/sdk/lib/framework/fn2.dart
@@ -441,6 +441,20 @@ class SizeObserver extends OneChildRenderObjectWrapper {
}
}
+class CustomPaint extends OneChildRenderObjectWrapper {
abarth-chromium 2015/06/04 23:58:39 Can you add a TODO(jackson) to this class about ne
jackson 2015/06/05 00:23:10 Done.
+ 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;
+ }
+}
abarth-chromium 2015/06/04 23:58:39 You probably want to implement a _remove similar t
jackson 2015/06/05 00:23:10 Done.
final List<UINode> _emptyList = new List<UINode>();

Powered by Google App Engine
This is Rietveld 408576698