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

Unified Diff: ash/shelf/shelf_model_observer.h

Issue 2833173002: mash: Support ShelfModel access in Chrome. (Closed)
Patch Set: Address comments; fix test failures. Created 3 years, 7 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: ash/shelf/shelf_model_observer.h
diff --git a/ash/shelf/shelf_model_observer.h b/ash/shelf/shelf_model_observer.h
index fafb45c707e77b1c19f2e8e50837039ebb1c5de1..ca8f405434a81ba7c7ee2569eaa1e64b4c3bfc2d 100644
--- a/ash/shelf/shelf_model_observer.h
+++ b/ash/shelf/shelf_model_observer.h
@@ -11,7 +11,9 @@
namespace ash {
struct ShelfItem;
+class ShelfItemDelegate;
+// TODO(msw): Move this to ash/public/cpp and use ASH_PUBLIC_EXPORT.
class ASH_EXPORT ShelfModelObserver {
public:
// Invoked after an item has been added to the model.
@@ -28,6 +30,10 @@ class ASH_EXPORT ShelfModelObserver {
// Invoked after an item changes. |old_item| is the item before the change.
virtual void ShelfItemChanged(int index, const ShelfItem& old_item) = 0;
+ // Invoked after a delegate changes. |delegate| is the new value.
+ virtual void ShelfItemDelegateChanged(const ShelfID& id,
+ ShelfItemDelegate* delegate) = 0;
+
protected:
virtual ~ShelfModelObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698