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

Side by Side Diff: sky/sdk/lib/animation/animation_performance.dart

Issue 1232313002: Use package:sky imports consistently (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix BUILD.gn Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « sky/sdk/lib/animation/animated_simulation.dart ('k') | sky/sdk/lib/animation/fling_curve.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 import 'timeline.dart'; 5 import 'package:sky/animation/timeline.dart';
6 import 'curves.dart'; 6 import 'package:sky/animation/curves.dart';
7 7
8 abstract class AnimatedVariable { 8 abstract class AnimatedVariable {
9 void setFraction(double t); 9 void setFraction(double t);
10 } 10 }
11 11
12 class AnimatedType<T extends dynamic> extends AnimatedVariable { 12 class AnimatedType<T extends dynamic> extends AnimatedVariable {
13 AnimatedType(this.begin, {this.end, this.curve: linear}) { 13 AnimatedType(this.begin, {this.end, this.curve: linear}) {
14 value = begin; 14 value = begin;
15 } 15 }
16 16
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 timeline.stop(); 111 timeline.stop();
112 if (remainingDistance != 0.0) 112 if (remainingDistance != 0.0)
113 timeline.animateTo(target, duration: remainingDistance * duration.inMillis econds); 113 timeline.animateTo(target, duration: remainingDistance * duration.inMillis econds);
114 } 114 }
115 115
116 void _tick(double t) { 116 void _tick(double t) {
117 variable.setFraction(t); 117 variable.setFraction(t);
118 _notifyListeners(); 118 _notifyListeners();
119 } 119 }
120 } 120 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/animation/animated_simulation.dart ('k') | sky/sdk/lib/animation/fling_curve.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698