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

Unified Diff: samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart

Issue 2828603002: Format samples and samples-dev directories. (Closed)
Patch Set: Created 3 years, 8 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 | « samples-dev/swarm/Views.dart ('k') | samples-dev/swarm/swarm_ui_lib/base/Device.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart
diff --git a/samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart b/samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart
index 71313e55e288450a10af113dfca6c381b586e7e0..577d03531ec5e3eeb782d2fa835951713b1403fa 100644
--- a/samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart
+++ b/samples-dev/swarm/swarm_ui_lib/base/AnimationScheduler.dart
@@ -44,8 +44,7 @@ class AnimationScheduler {
CssStyleDeclaration _safariHackStyle;
int _frameCount = 0;
- AnimationScheduler()
- : _callbacks = new List<CallbackData>() {
+ AnimationScheduler() : _callbacks = new List<CallbackData>() {
if (_isMobileSafari) {
// TODO(jacobr): find a better workaround for the issue that 3d transforms
// sometimes don't render on iOS without forcing a layout.
@@ -72,8 +71,7 @@ class AnimationScheduler {
* pending callback.
*/
int requestAnimationFrame(AnimationCallback callback,
- [Element element = null,
- num minTime = null]) {
+ [Element element = null, num minTime = null]) {
final callbackData = new CallbackData(callback, minTime);
_requestAnimationFrameHelper(callbackData);
return callbackData.id;
@@ -85,8 +83,9 @@ class AnimationScheduler {
}
void _setupInterval() {
- window.requestAnimationFrame(
- (num ignored) { _step(); });
+ window.requestAnimationFrame((num ignored) {
+ _step();
+ });
}
void _step() {
« no previous file with comments | « samples-dev/swarm/Views.dart ('k') | samples-dev/swarm/swarm_ui_lib/base/Device.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698