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

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

Issue 491973004: Make apps grid view scroll vertically in experimental app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@calamity-ares-vertical-scroll
Patch Set: Rename width to size. Created 6 years, 4 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 | « ash/wm/app_list_controller.cc ('k') | ui/app_list/views/apps_grid_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0e470a28bd125a96fb7eb1882d1e8d9b0243c2fa..546d1f8bc812a88ab14c2f09f69f8a86446ff7d1 100644
--- a/ui/app_list/views/apps_grid_view.h
+++ b/ui/app_list/views/apps_grid_view.h
@@ -224,6 +224,8 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
DROP_FOR_FOLDER,
};
+ enum ScrollAxis { SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_VERTICAL };
+
// Represents the index to an item view in the grid.
struct Index {
Index() : page(-1), slot(-1) {}
@@ -459,6 +461,9 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
const base::FilePath& path);
#endif
+ // Determines whether the grid view scrolls horizontally or vertically.
+ static ScrollAxis GetScrollAxis();
+
AppListModel* model_; // Owned by AppListView.
AppListItemList* item_list_; // Not owned.
AppsGridViewDelegate* delegate_;
« no previous file with comments | « ash/wm/app_list_controller.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