| 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_APPS_GRID_VIEW_H_ | 5 #ifndef UI_APP_LIST_APPS_GRID_VIEW_H_ |
| 6 #define UI_APP_LIST_APPS_GRID_VIEW_H_ | 6 #define UI_APP_LIST_APPS_GRID_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/app_list/app_list_export.h" | 10 #include "ui/app_list/app_list_export.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 void UpdatePaginationModel(); | 66 void UpdatePaginationModel(); |
| 67 | 67 |
| 68 AppListItemView* CreateViewForItemAtIndex(size_t index); | 68 AppListItemView* CreateViewForItemAtIndex(size_t index); |
| 69 | 69 |
| 70 AppListItemView* GetItemViewAtIndex(int index); | 70 AppListItemView* GetItemViewAtIndex(int index); |
| 71 void SetSelectedItemByIndex(int index); | 71 void SetSelectedItemByIndex(int index); |
| 72 | 72 |
| 73 // Overridden from ListModelObserver: | 73 // Overridden from ListModelObserver: |
| 74 virtual void ListItemsAdded(size_t start, size_t count) OVERRIDE; | 74 virtual void ListItemsAdded(size_t start, size_t count) OVERRIDE; |
| 75 virtual void ListItemsRemoved(size_t start, size_t count) OVERRIDE; | 75 virtual void ListItemsRemoved(size_t start, size_t count) OVERRIDE; |
| 76 virtual void ListItemMoved(size_t index, size_t target_index) OVERRIDE; |
| 76 virtual void ListItemsChanged(size_t start, size_t count) OVERRIDE; | 77 virtual void ListItemsChanged(size_t start, size_t count) OVERRIDE; |
| 77 | 78 |
| 78 // Overridden from PaginationModelObserver: | 79 // Overridden from PaginationModelObserver: |
| 79 virtual void TotalPagesChanged() OVERRIDE; | 80 virtual void TotalPagesChanged() OVERRIDE; |
| 80 virtual void SelectedPageChanged(int old_selected, int new_selected) OVERRIDE; | 81 virtual void SelectedPageChanged(int old_selected, int new_selected) OVERRIDE; |
| 81 virtual void TransitionChanged() OVERRIDE; | 82 virtual void TransitionChanged() OVERRIDE; |
| 82 | 83 |
| 83 AppListModel::Apps* model_; // Owned by AppListModel. | 84 AppListModel::Apps* model_; // Owned by AppListModel. |
| 84 views::ButtonListener* listener_; | 85 views::ButtonListener* listener_; |
| 85 PaginationModel* pagination_model_; // Owned by AppListController. | 86 PaginationModel* pagination_model_; // Owned by AppListController. |
| 86 | 87 |
| 87 gfx::Size icon_size_; | 88 gfx::Size icon_size_; |
| 88 int cols_; | 89 int cols_; |
| 89 int rows_per_page_; | 90 int rows_per_page_; |
| 90 | 91 |
| 91 int selected_item_index_; | 92 int selected_item_index_; |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(AppsGridView); | 94 DISALLOW_COPY_AND_ASSIGN(AppsGridView); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace app_list | 97 } // namespace app_list |
| 97 | 98 |
| 98 #endif // UI_APP_LIST_APPS_GRID_VIEW_H_ | 99 #endif // UI_APP_LIST_APPS_GRID_VIEW_H_ |
| OLD | NEW |