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

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

Issue 185623002: Add Hide and Show to the app list SearchBoxView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_contents_switcher
Patch Set: Created 6 years, 10 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.cc
diff --git a/ui/app_list/views/search_box_view.cc b/ui/app_list/views/search_box_view.cc
index 557cc21758ff49e6f7497a92a8bc3b24d4c1357a..8dc136579f576475119ef9a9800bfc3cd866bc58 100644
--- a/ui/app_list/views/search_box_view.cc
+++ b/ui/app_list/views/search_box_view.cc
@@ -108,6 +108,16 @@ void SearchBoxView::InvalidateMenu() {
menu_.reset();
}
+void SearchBoxView::Show() {
+ SetVisible(true);
+ delegate_->SearchBoxVisibilityChanged(this);
+}
+
+void SearchBoxView::Hide() {
+ SetVisible(false);
+ delegate_->SearchBoxVisibilityChanged(this);
+}
+
gfx::Size SearchBoxView::GetPreferredSize() {
return gfx::Size(kPreferredWidth, kPreferredHeight);
}

Powered by Google App Engine
This is Rietveld 408576698