Chromium Code Reviews| 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_APP_LIST_MODEL_OBSERVER_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_ |
| 6 #define UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_ | 6 #define UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ui/app_list/app_list_export.h" | 8 #include "ui/app_list/app_list_export.h" |
| 9 #include "ui/app_list/app_list_model.h" | 9 #include "ui/app_list/app_list_model.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 | 23 |
| 24 // Triggered after |item| has been added to the model. | 24 // Triggered after |item| has been added to the model. |
| 25 virtual void OnAppListItemAdded(AppListItem* item) {} | 25 virtual void OnAppListItemAdded(AppListItem* item) {} |
| 26 | 26 |
| 27 // Triggered just before an item is deleted from the model. | 27 // Triggered just before an item is deleted from the model. |
| 28 virtual void OnAppListItemWillBeDeleted(AppListItem* item) {} | 28 virtual void OnAppListItemWillBeDeleted(AppListItem* item) {} |
| 29 | 29 |
| 30 // Triggered just after an item is deleted from the model. | 30 // Triggered just after an item is deleted from the model. |
| 31 virtual void OnAppListItemDeleted() {} | 31 virtual void OnAppListItemDeleted() {} |
| 32 | 32 |
| 33 // Triggered just after an item is uninstalled & deleted to clean up parent. | |
|
jennyz
2015/03/17 21:16:48
parent -> |parent|.
Greg Levin
2015/03/23 22:04:50
Since arg is now parent_id, I'm going to go with "
| |
| 34 virtual void OnAppListChildItemUninstalled(AppListFolderItem* parent) {} | |
|
stevenjb
2015/03/23 19:34:30
This is actually problematic. Currently we only ha
Greg Levin
2015/03/23 22:04:50
Done.
| |
| 35 | |
| 33 // Triggered after |item| has moved, changed folders, or changed properties. | 36 // Triggered after |item| has moved, changed folders, or changed properties. |
| 34 virtual void OnAppListItemUpdated(AppListItem* item) {} | 37 virtual void OnAppListItemUpdated(AppListItem* item) {} |
| 35 | 38 |
| 36 // Triggered when the custom launcher page enabled state is changed. | 39 // Triggered when the custom launcher page enabled state is changed. |
| 37 virtual void OnCustomLauncherPageEnabledStateChanged(bool enabled) {} | 40 virtual void OnCustomLauncherPageEnabledStateChanged(bool enabled) {} |
| 38 | 41 |
| 39 // Triggered when the search engine is changed to and from Google. | 42 // Triggered when the search engine is changed to and from Google. |
| 40 virtual void OnSearchEngineIsGoogleChanged(bool is_google) {} | 43 virtual void OnSearchEngineIsGoogleChanged(bool is_google) {} |
| 41 | 44 |
| 42 protected: | 45 protected: |
| 43 virtual ~AppListModelObserver() {} | 46 virtual ~AppListModelObserver() {} |
| 44 }; | 47 }; |
| 45 | 48 |
| 46 } // namespace app_list | 49 } // namespace app_list |
| 47 | 50 |
| 48 #endif // UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_ | 51 #endif // UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_ |
| OLD | NEW |