summaryrefslogtreecommitdiff
path: root/chromium/ui/views/animation/bounds_animator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/animation/bounds_animator.cc')
-rw-r--r--chromium/ui/views/animation/bounds_animator.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chromium/ui/views/animation/bounds_animator.cc b/chromium/ui/views/animation/bounds_animator.cc
index fc4e04c1854..b4bf7dbdbb1 100644
--- a/chromium/ui/views/animation/bounds_animator.cc
+++ b/chromium/ui/views/animation/bounds_animator.cc
@@ -29,7 +29,10 @@ BoundsAnimator::~BoundsAnimator() {
CleanupData(false, &entry.second);
}
-void BoundsAnimator::AnimateViewTo(View* view, const gfx::Rect& target) {
+void BoundsAnimator::AnimateViewTo(
+ View* view,
+ const gfx::Rect& target,
+ std::unique_ptr<gfx::AnimationDelegate> delegate) {
DCHECK(view);
DCHECK_EQ(view->parent(), parent_);
@@ -50,6 +53,7 @@ void BoundsAnimator::AnimateViewTo(View* view, const gfx::Rect& target) {
data.start_bounds = view->bounds();
data.target_bounds = target;
data.animation = CreateAnimation();
+ data.delegate = std::move(delegate);
animation_to_view_[data.animation.get()] = view;