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

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

Issue 2951903004: Added back button when in folder view. (Closed)
Patch Set: Addressed comments and cached the feature flag. Created 3 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_folder_view.cc ('k') | ui/app_list/views/contents_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_view.cc
diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
index 128b018f2dcde90c6ba3207842482f48d98945ee..c55b03f60ee5f1dc0ad982b86a90ba34857d83d3 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -846,11 +846,18 @@ void AppListView::SetState(AppListState new_state) {
break;
}
break;
- case FULLSCREEN_ALL_APPS:
+ case FULLSCREEN_ALL_APPS: {
new_widget_bounds.set_y(0);
+ AppsContainerView* apps_container_view =
+ app_list_main_view_->contents_view()->apps_container_view();
+
+ if (apps_container_view->IsInFolderView())
+ apps_container_view->app_list_folder_view()->CloseFolderPage();
+
app_list_main_view_->contents_view()->SetActiveState(
AppListModel::STATE_APPS);
break;
+ }
case FULLSCREEN_SEARCH:
new_widget_bounds.set_y(0);
break;
« no previous file with comments | « ui/app_list/views/app_list_folder_view.cc ('k') | ui/app_list/views/contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698