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

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

Issue 27777002: Implement app list folder management page UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 7 years, 2 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/apps_grid_view.h
diff --git a/ui/app_list/views/apps_grid_view.h b/ui/app_list/views/apps_grid_view.h
index 8d996a6c75f375060ed4bae0c6ea24e436866674..31f2fed2f140cc157c7322f61b995cca15980360 100644
--- a/ui/app_list/views/apps_grid_view.h
+++ b/ui/app_list/views/apps_grid_view.h
@@ -78,6 +78,9 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
// Sets |model| to use. Note this does not take ownership of |model|.
void SetModel(AppListModel* model);
+ // Set |apps| to renders. Note this does not take ownership of |apps|.
+ void SetApps(AppListModel::Apps* apps);
+
void SetSelectedView(views::View* view);
void ClearSelectedView(views::View* view);
bool IsSelectedView(const views::View* view) const;
@@ -131,9 +134,6 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
// Stops the timer that triggers a page flip during a drag.
void StopPageFlipTimer();
- // Get the last grid view which was created.
- static AppsGridView* GetLastGridViewForTest();
-
// Return the view model for test purposes.
const views::ViewModel* view_model_for_test() const { return &view_model_; }
@@ -272,6 +272,7 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
void SetViewHidden(views::View* view, bool hide, bool immediate);
AppListModel* model_; // Owned by AppListView.
+ AppListModel::Apps* apps_; // Not owned.
AppsGridViewDelegate* delegate_;
PaginationModel* pagination_model_; // Owned by AppListController.
PageSwitcher* page_switcher_view_; // Owned by views hierarchy.

Powered by Google App Engine
This is Rietveld 408576698