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

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

Issue 214423002: Reset the app list when it is shown on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_app_list_folder_drag_for_real
Patch Set: fix nits Created 6 years, 9 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/apps_grid_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/apps_grid_view.cc
diff --git a/ui/app_list/views/apps_grid_view.cc b/ui/app_list/views/apps_grid_view.cc
index 63f817c939efc6ccf4386aae1866fd8daedb3bdf..0c0af51e5553277342cd12ed5b8300749487d51d 100644
--- a/ui/app_list/views/apps_grid_view.cc
+++ b/ui/app_list/views/apps_grid_view.cc
@@ -367,6 +367,17 @@ void AppsGridView::SetLayout(int icon_size, int cols, int rows_per_page) {
kTopPadding, kLeftRightPadding, 0, kLeftRightPadding));
}
+void AppsGridView::ResetForShowApps() {
+ activated_item_view_ = NULL;
+ layer()->SetOpacity(1.0f);
+ SetVisible(true);
+ // Set all views to visible in case they weren't made visible again by an
+ // incomplete animation.
+ for (int i = 0; i < view_model_.view_size(); ++i) {
+ view_model_.view_at(i)->SetVisible(true);
+ }
+}
+
void AppsGridView::SetModel(AppListModel* model) {
if (model_)
model_->RemoveObserver(this);
« no previous file with comments | « ui/app_list/views/apps_grid_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698