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

Unified Diff: ui/app_list/views/contents_animator.cc

Issue 894203004: Add a proper shadow to the experimental app list search box. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_doodle_clickable
Patch Set: address_comments Created 5 years, 11 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 | « ui/app_list/views/app_list_view_unittest.cc ('k') | ui/app_list/views/contents_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/contents_animator.cc
diff --git a/ui/app_list/views/contents_animator.cc b/ui/app_list/views/contents_animator.cc
index f4fe398699bdb9aae7373cf8765eee7b479d0e98..97d3c502820be5f605ce80c6040ff2496311c581 100644
--- a/ui/app_list/views/contents_animator.cc
+++ b/ui/app_list/views/contents_animator.cc
@@ -95,9 +95,9 @@ void ContentsAnimator::UpdateSearchBoxForDefaultAnimation(double progress,
gfx::Rect search_box_rect =
gfx::Tween::RectValueBetween(progress, search_box_from, search_box_to);
- views::View* search_box = contents_view()->GetSearchBoxView();
- search_box->GetWidget()->SetBounds(
- contents_view()->ConvertRectToWidget(search_box_rect));
+ SearchBoxView* search_box = contents_view()->GetSearchBoxView();
+ search_box->GetWidget()->SetBounds(contents_view()->ConvertRectToWidget(
+ search_box->GetViewBoundsForSearchBoxContentsBounds(search_box_rect)));
}
void ContentsAnimator::ClipSearchResultsPageToOnscreenBounds(
« no previous file with comments | « ui/app_list/views/app_list_view_unittest.cc ('k') | ui/app_list/views/contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698