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 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 } | 203 } |
204 | 204 |
205 void set_folder_delegate(AppsGridViewFolderDelegate* folder_delegate) { | 205 void set_folder_delegate(AppsGridViewFolderDelegate* folder_delegate) { |
206 folder_delegate_ = folder_delegate; | 206 folder_delegate_ = folder_delegate; |
207 } | 207 } |
208 | 208 |
209 AppListItemView* activated_folder_item_view() const { | 209 AppListItemView* activated_folder_item_view() const { |
210 return activated_folder_item_view_; | 210 return activated_folder_item_view_; |
211 } | 211 } |
212 | 212 |
| 213 const AppListModel* model() const { return model_; } |
| 214 |
213 private: | 215 private: |
214 friend class test::AppsGridViewTestApi; | 216 friend class test::AppsGridViewTestApi; |
215 | 217 |
216 enum DropAttempt { | 218 enum DropAttempt { |
217 DROP_FOR_NONE, | 219 DROP_FOR_NONE, |
218 DROP_FOR_REORDER, | 220 DROP_FOR_REORDER, |
219 DROP_FOR_FOLDER, | 221 DROP_FOR_FOLDER, |
220 }; | 222 }; |
221 | 223 |
222 // Represents the index to an item view in the grid. | 224 // Represents the index to an item view in the grid. |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 | 549 |
548 // True if the drag_view_ item is a folder item being dragged for reparenting. | 550 // True if the drag_view_ item is a folder item being dragged for reparenting. |
549 bool dragging_for_reparent_item_; | 551 bool dragging_for_reparent_item_; |
550 | 552 |
551 DISALLOW_COPY_AND_ASSIGN(AppsGridView); | 553 DISALLOW_COPY_AND_ASSIGN(AppsGridView); |
552 }; | 554 }; |
553 | 555 |
554 } // namespace app_list | 556 } // namespace app_list |
555 | 557 |
556 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ | 558 #endif // UI_APP_LIST_VIEWS_APPS_GRID_VIEW_H_ |
OLD | NEW |