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

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: 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
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..d51a7c2d41a015c9250f979241c12747ecbb4a13 100644
--- a/ui/app_list/views/search_box_view.h
+++ b/ui/app_list/views/search_box_view.h
@@ -48,6 +48,10 @@ 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);
+
views::ImageButton* back_button() { return back_button_; }
views::Textfield* search_box() { return search_box_; }
@@ -96,6 +100,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.

Powered by Google App Engine
This is Rietveld 408576698