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

Unified Diff: sky/sdk/lib/framework/components2/animated_component.dart

Issue 1174023003: Remove one more use of mirrors: Components now have to explicitly sync their fields. (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/examples/stocks2/lib/stock_row.dart ('k') | sky/sdk/lib/framework/components2/button.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/components2/animated_component.dart
diff --git a/sky/sdk/lib/framework/components2/animated_component.dart b/sky/sdk/lib/framework/components2/animated_component.dart
index d1dada90dbfeab2f8efe483c34c8bcdb11e334fe..4cc91e01d0c981dd4c8d4b6dfb36aaa922b6e995 100644
--- a/sky/sdk/lib/framework/components2/animated_component.dart
+++ b/sky/sdk/lib/framework/components2/animated_component.dart
@@ -12,6 +12,8 @@ abstract class AnimatedComponent extends Component {
AnimatedComponent({ Object key }) : super(key: key, stateful: true);
+ void syncFields(AnimatedComponent source) { }
+
animate(AnimatedValue value, SetterFunction setter) {
setter(value.value);
StreamSubscription<double> subscription;
« no previous file with comments | « sky/examples/stocks2/lib/stock_row.dart ('k') | sky/sdk/lib/framework/components2/button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698