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

Unified Diff: ash/shelf/shelf_model_observer.h

Issue 2833173002: mash: Support ShelfModel access in Chrome. (Closed)
Patch Set: Cleanup; Fix an Arc test by use CLC, not Ash's ShelfModel. 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..6857c601816830bd0f669affab625a8c26b3afa2 100644
--- a/ash/shelf/shelf_model_observer.h
+++ b/ash/shelf/shelf_model_observer.h
@@ -11,6 +11,7 @@
namespace ash {
struct ShelfItem;
+class ShelfItemDelegate;
class ASH_EXPORT ShelfModelObserver {
public:
@@ -28,6 +29,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