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

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

Issue 186483004: Add a skeleton Start Page to the experimental app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares_change_experimental_animation
Patch Set: fix initialization order Created 6 years, 7 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_main_view.h ('k') | ui/app_list/views/contents_switcher_view.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_main_view.cc
diff --git a/ui/app_list/views/app_list_main_view.cc b/ui/app_list/views/app_list_main_view.cc
index b6255a0e4eec10460decf4829543adbd4f8a6c4f..ab80630914d5cabd1c876f8ce9ee01a959a92061 100644
--- a/ui/app_list/views/app_list_main_view.cc
+++ b/ui/app_list/views/app_list_main_view.cc
@@ -165,6 +165,17 @@ void AppListMainView::ModelChanged() {
Layout();
}
+void AppListMainView::OnContentsViewShowStateChanged() {
+ search_box_view_->SetVisible(contents_view_->show_state() !=
+ ContentsView::SHOW_START_PAGE);
+}
+
+void AppListMainView::OnStartPageSearchButtonPressed() {
+ search_box_view_->SetVisible(true);
+ search_box_view_->search_box()->SetText(base::string16());
+ search_box_view_->RequestFocus();
+}
+
void AppListMainView::SetDragAndDropHostOfCurrentAppList(
ApplicationDragAndDropHost* drag_and_drop_host) {
contents_view_->SetDragAndDropHostOfCurrentAppList(drag_and_drop_host);
« no previous file with comments | « ui/app_list/views/app_list_main_view.h ('k') | ui/app_list/views/contents_switcher_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698