| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // page is not available. | 72 // page is not available. |
| 73 AppsGridView(AppsGridViewDelegate* delegate, | 73 AppsGridView(AppsGridViewDelegate* delegate, |
| 74 PaginationModel* pagination_model, | 74 PaginationModel* pagination_model, |
| 75 content::WebContents* start_page_contents); | 75 content::WebContents* start_page_contents); |
| 76 virtual ~AppsGridView(); | 76 virtual ~AppsGridView(); |
| 77 | 77 |
| 78 // Sets fixed layout parameters. After setting this, CalculateLayout below | 78 // Sets fixed layout parameters. After setting this, CalculateLayout below |
| 79 // is no longer called to dynamically choosing those layout params. | 79 // is no longer called to dynamically choosing those layout params. |
| 80 void SetLayout(int icon_size, int cols, int rows_per_page); | 80 void SetLayout(int icon_size, int cols, int rows_per_page); |
| 81 | 81 |
| 82 int cols() { return cols_; } |
| 83 int rows_per_page() { return rows_per_page_; } |
| 84 |
| 82 // Sets |model| to use. Note this does not take ownership of |model|. | 85 // Sets |model| to use. Note this does not take ownership of |model|. |
| 83 void SetModel(AppListModel* model); | 86 void SetModel(AppListModel* model); |
| 84 | 87 |
| 85 // Sets the |item_list| to render. Note this does not take ownership of | 88 // Sets the |item_list| to render. Note this does not take ownership of |
| 86 // |item_list|. | 89 // |item_list|. |
| 87 void SetItemList(AppListItemList* item_list); | 90 void SetItemList(AppListItemList* item_list); |
| 88 | 91 |
| 89 void SetSelectedView(views::View* view); | 92 void SetSelectedView(views::View* view); |
| 90 void ClearSelectedView(views::View* view); | 93 void ClearSelectedView(views::View* view); |
| 91 void ClearAnySelectedView(); | 94 void ClearAnySelectedView(); |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 | 436 |
| 434 // The most recent activated item view. | 437 // The most recent activated item view. |
| 435 AppListItemView* activated_item_view_; | 438 AppListItemView* activated_item_view_; |
| 436 | 439 |
| 437 DISALLOW_COPY_AND_ASSIGN(AppsGridView); | 440 DISALLOW_COPY_AND_ASSIGN(AppsGridView); |
| 438 }; | 441 }; |
| 439 | 442 |
| 440 } // namespace app_list | 443 } // namespace app_list |
| 441 | 444 |
| 442 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ | 445 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ |
| OLD | NEW |