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

Unified Diff: views/animation/bounds_animator.cc

Issue 6250141: Sidebar mini tabs UI (views version).... Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | « views/animation/bounds_animator.h ('k') | views/animation/bounds_animator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/animation/bounds_animator.cc
===================================================================
--- views/animation/bounds_animator.cc (revision 74134)
+++ views/animation/bounds_animator.cc (working copy)
@@ -240,10 +240,14 @@
repaint_bounds_.SetRect(0, 0, 0, 0);
}
- if (observer_ && !IsAnimating()) {
- // Notify here rather than from AnimationXXX to avoid deleting the animation
- // while the animaion is calling us.
- observer_->OnBoundsAnimatorDone(this);
+ if (observer_) {
+ if (IsAnimating()) {
+ observer_->OnBoundsAnimatorProgressed(this);
+ } else {
+ // Notify here rather than from AnimationXXX to avoid deleting
+ // the animation while the animaion is calling us.
+ observer_->OnBoundsAnimatorDone(this);
+ }
}
}
« no previous file with comments | « views/animation/bounds_animator.h ('k') | views/animation/bounds_animator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698