Commit 1e0943b6 authored by Ana Salazar's avatar Ana Salazar Committed by Commit Bot

Cros: Use transforms for navigation widget bounds animator

Bug: 1049705
Change-Id: I70e9dbd7a312bbd2f0418733d14ab0857db0e432
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2086257Reviewed-by: default avatarManu Cornet <manucornet@chromium.org>
Commit-Queue: Ana Salazar <anasalazar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746875}
parent 9968551c
...@@ -400,7 +400,9 @@ ShelfNavigationWidget::ShelfNavigationWidget(Shelf* shelf, ...@@ -400,7 +400,9 @@ ShelfNavigationWidget::ShelfNavigationWidget(Shelf* shelf,
ShelfView* shelf_view) ShelfView* shelf_view)
: shelf_(shelf), : shelf_(shelf),
delegate_(new ShelfNavigationWidget::Delegate(shelf, shelf_view)), delegate_(new ShelfNavigationWidget::Delegate(shelf, shelf_view)),
bounds_animator_(std::make_unique<views::BoundsAnimator>(delegate_)), bounds_animator_(
std::make_unique<views::BoundsAnimator>(delegate_,
/*use_transforms=*/true)),
back_button_metrics_reporter_( back_button_metrics_reporter_(
std::make_unique<NavigationButtonAnimationMetricsReporter>( std::make_unique<NavigationButtonAnimationMetricsReporter>(
shelf, shelf,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment