| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 PaginationModel* pagination_model); | 76 PaginationModel* pagination_model); |
| 77 virtual ~AppsGridView(); | 77 virtual ~AppsGridView(); |
| 78 | 78 |
| 79 // Sets fixed layout parameters. After setting this, CalculateLayout below | 79 // Sets fixed layout parameters. After setting this, CalculateLayout below |
| 80 // is no longer called to dynamically choosing those layout params. | 80 // is no longer called to dynamically choosing those layout params. |
| 81 void SetLayout(int icon_size, int cols, int rows_per_page); | 81 void SetLayout(int icon_size, int cols, int rows_per_page); |
| 82 | 82 |
| 83 int cols() { return cols_; } | 83 int cols() { return cols_; } |
| 84 int rows_per_page() { return rows_per_page_; } | 84 int rows_per_page() { return rows_per_page_; } |
| 85 | 85 |
| 86 // This resets the grid view to a fresh state for showing the app list. |
| 87 void ResetForShowApps(); |
| 88 |
| 86 // Sets |model| to use. Note this does not take ownership of |model|. | 89 // Sets |model| to use. Note this does not take ownership of |model|. |
| 87 void SetModel(AppListModel* model); | 90 void SetModel(AppListModel* model); |
| 88 | 91 |
| 89 // Sets the |item_list| to render. Note this does not take ownership of | 92 // Sets the |item_list| to render. Note this does not take ownership of |
| 90 // |item_list|. | 93 // |item_list|. |
| 91 void SetItemList(AppListItemList* item_list); | 94 void SetItemList(AppListItemList* item_list); |
| 92 | 95 |
| 93 void SetSelectedView(views::View* view); | 96 void SetSelectedView(views::View* view); |
| 94 void ClearSelectedView(views::View* view); | 97 void ClearSelectedView(views::View* view); |
| 95 void ClearAnySelectedView(); | 98 void ClearAnySelectedView(); |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 bool dragging_for_reparent_item_; | 535 bool dragging_for_reparent_item_; |
| 533 | 536 |
| 534 base::WeakPtrFactory<AppsGridView> weak_factory_; | 537 base::WeakPtrFactory<AppsGridView> weak_factory_; |
| 535 | 538 |
| 536 DISALLOW_COPY_AND_ASSIGN(AppsGridView); | 539 DISALLOW_COPY_AND_ASSIGN(AppsGridView); |
| 537 }; | 540 }; |
| 538 | 541 |
| 539 } // namespace app_list | 542 } // namespace app_list |
| 540 | 543 |
| 541 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ | 544 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ |
| OLD | NEW |