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

Unified Diff: ash/common/shelf/shelf_model.h

Issue 2791803002: mash: Move LauncherItemController to ash, rename ShelfItemDelegate. (Closed)
Patch Set: Sync and rebase. Created 3 years, 8 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
« no previous file with comments | « ash/common/shelf/shelf_application_menu_model.cc ('k') | ash/common/shelf/shelf_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_model.h
diff --git a/ash/common/shelf/shelf_model.h b/ash/common/shelf/shelf_model.h
index 877b70651816788aeb8bed393b21109cd35e8fc4..24d5e48676800741ed3b010e1947d11d22cac0e7 100644
--- a/ash/common/shelf/shelf_model.h
+++ b/ash/common/shelf/shelf_model.h
@@ -16,6 +16,7 @@
namespace ash {
+class ShelfItemDelegate;
class ShelfModelObserver;
// Model used for shelf items. Owns ShelfItemDelegates but does not create them.
@@ -76,12 +77,11 @@ class ASH_EXPORT ShelfModel {
int item_count() const { return static_cast<int>(items_.size()); }
// Set |item_delegate| for |id| and takes ownership.
- void SetShelfItemDelegate(
- ShelfID id,
- std::unique_ptr<mojom::ShelfItemDelegate> item_delegate);
+ void SetShelfItemDelegate(ShelfID id,
+ std::unique_ptr<ShelfItemDelegate> item_delegate);
// Returns ShelfItemDelegate for |id|, or null if none exists.
- mojom::ShelfItemDelegate* GetShelfItemDelegate(ShelfID id);
+ ShelfItemDelegate* GetShelfItemDelegate(ShelfID id);
void AddObserver(ShelfModelObserver* observer);
void RemoveObserver(ShelfModelObserver* observer);
@@ -101,7 +101,7 @@ class ASH_EXPORT ShelfModel {
ShelfItems items_;
base::ObserverList<ShelfModelObserver> observers_;
- std::map<ShelfID, std::unique_ptr<mojom::ShelfItemDelegate>>
+ std::map<ShelfID, std::unique_ptr<ShelfItemDelegate>>
id_to_item_delegate_map_;
DISALLOW_COPY_AND_ASSIGN(ShelfModel);
« no previous file with comments | « ash/common/shelf/shelf_application_menu_model.cc ('k') | ash/common/shelf/shelf_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698