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

Side by Side Diff: ui/app_list/views/apps_grid_view.h

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, 8 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 unified diff | Download patch
« no previous file with comments | « ui/app_list/views/apps_container_view.cc ('k') | ui/app_list/views/apps_grid_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 PaginationModel* pagination_model); 76 PaginationModel* pagination_model);
77 virtual ~AppsGridView(); 77 virtual ~AppsGridView();
78 78
79 // Sets fixed layout parameters. After setting this, CalculateLayout below 79 // Sets fixed layout parameters. After setting this, CalculateLayout below
80 // is no longer called to dynamically choosing those layout params. 80 // is no longer called to dynamically choosing those layout params.
81 void SetLayout(int icon_size, int cols, int rows_per_page); 81 void SetLayout(int icon_size, int cols, int rows_per_page);
82 82
83 int cols() { return cols_; } 83 int cols() { return cols_; }
84 int rows_per_page() { return rows_per_page_; } 84 int rows_per_page() { return rows_per_page_; }
85 85
86 // This resets the grid view to a fresh state for showing the app list.
87 void ResetForShowApps();
88
86 // Sets |model| to use. Note this does not take ownership of |model|. 89 // Sets |model| to use. Note this does not take ownership of |model|.
87 void SetModel(AppListModel* model); 90 void SetModel(AppListModel* model);
88 91
89 // Sets the |item_list| to render. Note this does not take ownership of 92 // Sets the |item_list| to render. Note this does not take ownership of
90 // |item_list|. 93 // |item_list|.
91 void SetItemList(AppListItemList* item_list); 94 void SetItemList(AppListItemList* item_list);
92 95
93 void SetSelectedView(views::View* view); 96 void SetSelectedView(views::View* view);
94 void ClearSelectedView(views::View* view); 97 void ClearSelectedView(views::View* view);
95 void ClearAnySelectedView(); 98 void ClearAnySelectedView();
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 bool dragging_for_reparent_item_; 535 bool dragging_for_reparent_item_;
533 536
534 base::WeakPtrFactory<AppsGridView> weak_factory_; 537 base::WeakPtrFactory<AppsGridView> weak_factory_;
535 538
536 DISALLOW_COPY_AND_ASSIGN(AppsGridView); 539 DISALLOW_COPY_AND_ASSIGN(AppsGridView);
537 }; 540 };
538 541
539 } // namespace app_list 542 } // namespace app_list
540 543
541 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ 544 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/apps_container_view.cc ('k') | ui/app_list/views/apps_grid_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698