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

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

Issue 10956052: Add a ListModel::Move. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + nit in #2 Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/app_list/apps_grid_view.cc » ('j') | 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_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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/app_list/apps_grid_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698