| Index: ui/app_list/views/apps_grid_view.h
|
| diff --git a/ui/app_list/views/apps_grid_view.h b/ui/app_list/views/apps_grid_view.h
|
| index d8e2ede49ef6a7ed77fedf31edf3f161a9fedcf3..84085f2f8ffca197a1a7e31c0279630b19591fe8 100644
|
| --- a/ui/app_list/views/apps_grid_view.h
|
| +++ b/ui/app_list/views/apps_grid_view.h
|
| @@ -197,6 +197,12 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
|
| // The grid view must be inside a folder view.
|
| void OnFolderItemRemoved();
|
|
|
| + // If there is only 1 item left in the source folder after reparenting an item
|
| + // from it, updates both data model and view_model_ for removing last item
|
| + // from the source folder and removes the source folder.
|
| + void RemoveLastItemFromReparentItemFolderIfNecessary(
|
| + const std::string& source_folder_id);
|
| +
|
| // Return the view model for test purposes.
|
| const views::ViewModelT<AppListItemView>* view_model_for_test() const {
|
| return &view_model_;
|
| @@ -354,12 +360,6 @@ class APP_LIST_EXPORT AppsGridView : public views::View,
|
| bool ReparentItemToAnotherFolder(AppListItemView* item_view,
|
| const Index& target);
|
|
|
| - // If there is only 1 item left in the source folder after reparenting an item
|
| - // from it, updates both data model and view_model_ for removing last item
|
| - // from the source folder and removes the source folder.
|
| - void RemoveLastItemFromReparentItemFolderIfNecessary(
|
| - const std::string& source_folder_id);
|
| -
|
| // If user does not drop the re-parenting folder item to any valid target,
|
| // cancel the re-parenting action, let the item go back to its original
|
| // parent folder with UI animation.
|
|
|