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

Unified Diff: ui/app_list/views/app_list_view_unittest.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.cc ('k') | ui/app_list/views/contents_animator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_view_unittest.cc
diff --git a/ui/app_list/views/app_list_view_unittest.cc b/ui/app_list/views/app_list_view_unittest.cc
index 8c5c73ac0a495b6f59451c5f0abffd739d67ffa5..dbb948a3c8581fd0ac2c9ef85ca2e0555350ab3b 100644
--- a/ui/app_list/views/app_list_view_unittest.cc
+++ b/ui/app_list/views/app_list_view_unittest.cc
@@ -273,10 +273,15 @@ void AppListViewTestContext::Close() {
bool AppListViewTestContext::CheckSearchBoxWidget(const gfx::Rect& expected) {
ContentsView* contents_view = view_->app_list_main_view()->contents_view();
- gfx::Point point = expected.origin();
+ // Adjust for the search box view's shadow.
+ gfx::Rect expected_with_shadow =
+ view_->app_list_main_view()
+ ->search_box_view()
+ ->GetViewBoundsForSearchBoxContentsBounds(expected);
+ gfx::Point point = expected_with_shadow.origin();
views::View::ConvertPointToScreen(contents_view, &point);
- return gfx::Rect(point, expected.size()) ==
+ return gfx::Rect(point, expected_with_shadow.size()) ==
view_->search_box_widget()->GetWindowBoundsInScreen();
}
« no previous file with comments | « ui/app_list/views/app_list_view.cc ('k') | ui/app_list/views/contents_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698