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

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

Issue 162753002: Center and change the aspect ratio for the experimental app list. [Win] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android compile Created 6 years, 10 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') | no next file » | 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // page is not available. 74 // page is not available.
75 AppsGridView(AppsGridViewDelegate* delegate, 75 AppsGridView(AppsGridViewDelegate* delegate,
76 PaginationModel* pagination_model, 76 PaginationModel* pagination_model,
77 content::WebContents* start_page_contents); 77 content::WebContents* start_page_contents);
78 virtual ~AppsGridView(); 78 virtual ~AppsGridView();
79 79
80 // Sets fixed layout parameters. After setting this, CalculateLayout below 80 // Sets fixed layout parameters. After setting this, CalculateLayout below
81 // is no longer called to dynamically choosing those layout params. 81 // is no longer called to dynamically choosing those layout params.
82 void SetLayout(int icon_size, int cols, int rows_per_page); 82 void SetLayout(int icon_size, int cols, int rows_per_page);
83 83
84 int cols() { return cols_; }
85 int rows_per_page() { return rows_per_page_; }
86
84 // Sets |model| to use. Note this does not take ownership of |model|. 87 // Sets |model| to use. Note this does not take ownership of |model|.
85 void SetModel(AppListModel* model); 88 void SetModel(AppListModel* model);
86 89
87 // Sets the |item_list| to render. Note this does not take ownership of 90 // Sets the |item_list| to render. Note this does not take ownership of
88 // |item_list|. 91 // |item_list|.
89 void SetItemList(AppListItemList* item_list); 92 void SetItemList(AppListItemList* item_list);
90 93
91 void SetSelectedView(views::View* view); 94 void SetSelectedView(views::View* view);
92 void ClearSelectedView(views::View* view); 95 void ClearSelectedView(views::View* view);
93 void ClearAnySelectedView(); 96 void ClearAnySelectedView();
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 518
516 // True if the drag_view_ item is a folder item being dragged for reparenting. 519 // True if the drag_view_ item is a folder item being dragged for reparenting.
517 bool dragging_for_reparent_item_; 520 bool dragging_for_reparent_item_;
518 521
519 DISALLOW_COPY_AND_ASSIGN(AppsGridView); 522 DISALLOW_COPY_AND_ASSIGN(AppsGridView);
520 }; 523 };
521 524
522 } // namespace app_list 525 } // namespace app_list
523 526
524 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ 527 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/apps_container_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698