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