From 51db28b81b4c11a2289b9befe1405d1200a34df2 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 13 Mar 2015 10:04:56 -0700 Subject: [PATCH] Organize sky/framework/animation This CL cleans up the sky/framework/animation as follows: 1) I've moved code that's used only by the custom elements framework into sky/framework/elements/animation. This code is based on AnimationDelegates rather than Streams. 2) Rename ScrollCurve to ScrollBehavior because it encapsulates more behavior than just a curve. 3) Make the Generator interface explicit and mark subclasses as actual subclasses. 4) Move Simulation into generators.dart because it implements the Generator interface. 5) Move Animation out of generators.dart because it does not implement the Generator interface. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1001373002 --- examples/stocks-fn/stocklist.dart | 2 +- examples/stocks-fn/stocksapp.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/stocks-fn/stocklist.dart b/examples/stocks-fn/stocklist.dart index 883ee37869..f7330d130b 100644 --- a/examples/stocks-fn/stocklist.dart +++ b/examples/stocks-fn/stocklist.dart @@ -8,7 +8,7 @@ class Stocklist extends FixedHeightScrollable { Object key, this.stocks, this.query - }) : super(key: key, scrollCurve: new OverscrollCurve()); + }) : super(key: key, scrollBehavior: new OverscrollBehavior()); List buildItems(int start, int count) { return stocks diff --git a/examples/stocks-fn/stocksapp.dart b/examples/stocks-fn/stocksapp.dart index 7923c7197b..c35983ea9e 100644 --- a/examples/stocks-fn/stocksapp.dart +++ b/examples/stocks-fn/stocksapp.dart @@ -1,7 +1,7 @@ library stocksapp; import '../../framework/fn.dart'; -import '../../framework/animation/scroll_curve.dart'; +import '../../framework/animation/scroll_behavior.dart'; import '../../framework/components/drawer.dart'; import '../../framework/components/drawer_header.dart'; import '../../framework/components/fixed_height_scrollable.dart';