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

Unified Diff: ui/app_list/app_list_model_observer.h

Issue 1003393002: After uninstall, remove last item in Launcher folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another round of revisions 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/app_list_model_observer.h
diff --git a/ui/app_list/app_list_model_observer.h b/ui/app_list/app_list_model_observer.h
index 09cccc0e75531c8daf4925962e3677f114af5a5b..7ed0af89b234258eade45ee3a5363a151a579110 100644
--- a/ui/app_list/app_list_model_observer.h
+++ b/ui/app_list/app_list_model_observer.h
@@ -30,6 +30,10 @@ class APP_LIST_EXPORT AppListModelObserver {
// Triggered just after an item is deleted from the model.
virtual void OnAppListItemDeleted() {}
+ // Triggered after uninstall of 2nd-to-last item in folder, before reparent of
+ // remaining item and folder removal.
+ virtual void OnSingleItemFolderWillBeDeleted(const std::string& folder_id) {}
+
// Triggered after |item| has moved, changed folders, or changed properties.
virtual void OnAppListItemUpdated(AppListItem* item) {}

Powered by Google App Engine
This is Rietveld 408576698