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

Unified Diff: ui/app_list/views/search_box_view.h

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/contents_view.cc ('k') | ui/app_list/views/search_box_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_box_view.h
diff --git a/ui/app_list/views/search_box_view.h b/ui/app_list/views/search_box_view.h
index f246d7d73537f74409c67a05bb2bb5f8c85cded5..b141da6d1167730649be046b654a9fc7f2ff307a 100644
--- a/ui/app_list/views/search_box_view.h
+++ b/ui/app_list/views/search_box_view.h
@@ -48,6 +48,11 @@ class APP_LIST_EXPORT SearchBoxView : public views::View,
void ClearSearch();
void InvalidateMenu();
+ // Returns the bounds to use for the view (including the shadow) given the
+ // desired bounds of the search box contents.
+ gfx::Rect GetViewBoundsForSearchBoxContentsBounds(
+ const gfx::Rect& rect) const;
+
views::ImageButton* back_button() { return back_button_; }
views::Textfield* search_box() { return search_box_; }
@@ -96,6 +101,7 @@ class APP_LIST_EXPORT SearchBoxView : public views::View,
scoped_ptr<AppListMenuViews> menu_;
+ views::View* content_container_; // Owned by views hierarchy.
views::ImageView* icon_view_; // Owned by views hierarchy.
views::ImageButton* back_button_; // Owned by views hierarchy.
views::ImageButton* speech_button_; // Owned by views hierarchy.
« no previous file with comments | « ui/app_list/views/contents_view.cc ('k') | ui/app_list/views/search_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698