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

Side by Side Diff: dart/samples/ui_lib/base/AnimationScheduler.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 part of base;
2
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
6 4
7 typedef void AnimationCallback(num currentTime); 5 typedef void AnimationCallback(num currentTime);
8 6
9 class CallbackData { 7 class CallbackData {
10 final AnimationCallback callback; 8 final AnimationCallback callback;
11 final num minTime; 9 final num minTime;
12 int id; 10 int id;
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 _frameCount++; 157 _frameCount++;
160 if (_isMobileSafari) { 158 if (_isMobileSafari) {
161 // Hack to work around an iOS bug where sometimes animations do not 159 // Hack to work around an iOS bug where sometimes animations do not
162 // render if only webkit transforms were modified. 160 // render if only webkit transforms were modified.
163 // TODO(jacobr): find a cleaner workaround. 161 // TODO(jacobr): find a cleaner workaround.
164 int offset = _frameCount % 2; 162 int offset = _frameCount % 2;
165 _safariHackStyle.left = '${offset}px'; 163 _safariHackStyle.left = '${offset}px';
166 } 164 }
167 } 165 }
168 } 166 }
OLDNEW
« no previous file with comments | « dart/samples/tests/samples/lib/view/view_test.dart ('k') | dart/samples/ui_lib/base/Device.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698