OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |