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

Unified Diff: ui/app_list/views/apps_grid_view.h

Issue 1003393002: After uninstall, remove last item in Launcher folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698