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

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

Issue 380613002: Experimental app list: Added a current page indicator to the launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed spelling mistake Created 6 years, 5 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/contents_view.cc
diff --git a/ui/app_list/views/contents_view.cc b/ui/app_list/views/contents_view.cc
index 452e4fdfc2d17aba57f8218b3e880806ecc1afb7..47f3dd72564b3fcbb2465f87d360e254c667ffb8 100644
--- a/ui/app_list/views/contents_view.cc
+++ b/ui/app_list/views/contents_view.cc
@@ -76,6 +76,8 @@ void ContentsView::InitNamedPages(AppListModel* model,
initial_page_index = GetPageIndexForNamedPage(NAMED_PAGE_START);
pagination_model_.SelectPage(initial_page_index, false);
+ if (contents_switcher_view_)
+ contents_switcher_view_->SelectedPageChanged(-1, initial_page_index);
// Needed to update the main search box visibility.
ActivePageChanged(false);
@@ -318,6 +320,8 @@ void ContentsView::TotalPagesChanged() {
}
void ContentsView::SelectedPageChanged(int old_selected, int new_selected) {
+ if (contents_switcher_view_)
+ contents_switcher_view_->SelectedPageChanged(old_selected, new_selected);
}
void ContentsView::TransitionStarted() {
« ui/app_list/views/contents_switcher_view.cc ('K') | « ui/app_list/views/contents_switcher_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698