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

Unified Diff: ash/common/shelf/shelf_background_animator.cc

Issue 2768933003: [ash-md] Fixed ShelfBackgroundAnimator to not snap target values when being preempted. (Closed)
Patch Set: Created 3 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
Index: ash/common/shelf/shelf_background_animator.cc
diff --git a/ash/common/shelf/shelf_background_animator.cc b/ash/common/shelf/shelf_background_animator.cc
index ad0311e1fdc54591b70fe0015db9d04936416969..17a668220407fec8a293f8607b8b0e2404456ed6 100644
--- a/ash/common/shelf/shelf_background_animator.cc
+++ b/ash/common/shelf/shelf_background_animator.cc
@@ -98,14 +98,6 @@ void ShelfBackgroundAnimator::AnimationEnded(const gfx::Animation* animation) {
animator_.reset();
}
-void ShelfBackgroundAnimator::AnimationCanceled(
- const gfx::Animation* animation) {
- DCHECK_EQ(animation, animator_.get());
- SetAnimationValues(animator_->IsShowing() ? 1.0 : 0.0);
- // Animations are only cancelled when they are being pre-empted so we don't
- // destroy the |animator_| because it may be re-used immediately.
-}
-
void ShelfBackgroundAnimator::OnWallpaperDataChanged() {}
void ShelfBackgroundAnimator::OnWallpaperColorsChanged() {
« no previous file with comments | « ash/common/shelf/shelf_background_animator.h ('k') | ash/common/shelf/shelf_background_animator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698