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

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

Issue 317723005: Refactor app list ContentsView to use page indices, not show states. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed again, and rewrote comments for AddLauncherPage. Created 6 years, 6 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/app_list_view_unittest.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 ba4f8d22930247fadb8bdbf8e75d80f987676bf2..b273891366aeac6c2d582b57aa5fc0935581a1a4 100644
--- a/ui/app_list/views/app_list_main_view.cc
+++ b/ui/app_list/views/app_list_main_view.cc
@@ -170,9 +170,9 @@ void AppListMainView::ModelChanged() {
Layout();
}
-void AppListMainView::OnContentsViewShowStateChanged() {
- search_box_view_->SetVisible(contents_view_->show_state() !=
- ContentsView::SHOW_START_PAGE);
+void AppListMainView::OnContentsViewActivePageChanged() {
+ search_box_view_->SetVisible(
+ !contents_view_->IsNamedPageActive(ContentsView::NAMED_PAGE_START));
}
void AppListMainView::OnStartPageSearchButtonPressed() {
« no previous file with comments | « ui/app_list/views/app_list_main_view.h ('k') | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698