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

Unified Diff: sky/framework/animation/timer.dart

Issue 1000863002: Fix errors in Sky detected by Dart analyzer (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: One more Created 5 years, 9 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/fn/lib/fakesky.dart ('k') | sky/framework/components/button.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/animation/timer.dart
diff --git a/sky/framework/animation/timer.dart b/sky/framework/animation/timer.dart
index 6aaede20d5a0edef5dee7cdf325002bf96f77275..f4bfd5d91d01c01bdf060cde41ab4c0c255c3eee 100644
--- a/sky/framework/animation/timer.dart
+++ b/sky/framework/animation/timer.dart
@@ -3,7 +3,7 @@
// found in the LICENSE file.
import "dart:math" as math;
-import "dart:sky";
+import "dart:sky" as sky;
abstract class AnimationDelegate {
void updateAnimation(double t);
@@ -25,7 +25,7 @@ class AnimationTimer {
}
void stop() {
- window.cancelAnimationFrame(_animationId);
+ sky.window.cancelAnimationFrame(_animationId);
_startTime = 0.0;
_duration = 0.0;
_animationId = 0;
@@ -33,7 +33,7 @@ class AnimationTimer {
void _scheduleTick() {
assert(_animationId == 0);
- _animationId = window.requestAnimationFrame(_tick);
+ _animationId = sky.window.requestAnimationFrame(_tick);
}
void _tick(double timeStamp) {
« no previous file with comments | « sky/examples/fn/lib/fakesky.dart ('k') | sky/framework/components/button.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698