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

Unified Diff: ash/shelf/shelf_item_delegate_manager.h

Issue 152223002: Renames LauncherID, LauncherItem and LauncherItems... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OWNERS Created 6 years, 11 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/shelf/shelf_item_delegate.h ('k') | ash/shelf/shelf_item_delegate_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_item_delegate_manager.h
diff --git a/ash/shelf/shelf_item_delegate_manager.h b/ash/shelf/shelf_item_delegate_manager.h
index dc4df7339b178daf1aec972416cd6c81729eb953..ef11f6859765b6078b7d4042126e235e6555062e 100644
--- a/ash/shelf/shelf_item_delegate_manager.h
+++ b/ash/shelf/shelf_item_delegate_manager.h
@@ -8,7 +8,7 @@
#include <map>
#include "ash/ash_export.h"
-#include "ash/launcher/launcher_types.h"
+#include "ash/shelf/shelf_item_types.h"
#include "ash/shelf/shelf_model_observer.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
@@ -32,32 +32,32 @@ class ASH_EXPORT ShelfItemDelegateManager : public ShelfModelObserver {
virtual ~ShelfItemDelegateManager();
// Set |item_delegate| for |id| and take an ownership.
- void SetShelfItemDelegate(LauncherID id,
+ void SetShelfItemDelegate(ShelfID id,
scoped_ptr<ShelfItemDelegate> item_delegate);
// Returns ShelfItemDelegate for |item_type|. Always returns non-NULL.
- ShelfItemDelegate* GetShelfItemDelegate(LauncherID id);
+ ShelfItemDelegate* GetShelfItemDelegate(ShelfID id);
// ShelfModelObserver overrides:
virtual void ShelfItemAdded(int model_index) OVERRIDE;
- virtual void ShelfItemRemoved(int index, LauncherID id) OVERRIDE;
+ virtual void ShelfItemRemoved(int index, ShelfID id) OVERRIDE;
virtual void ShelfItemMoved(int start_index, int targetindex) OVERRIDE;
virtual void ShelfItemChanged(int index,
- const LauncherItem& old_item) OVERRIDE;
+ const ShelfItem& old_item) OVERRIDE;
virtual void ShelfStatusChanged() OVERRIDE;
private:
friend class test::ShelfItemDelegateManagerTestAPI;
- typedef std::map<LauncherID, ShelfItemDelegate*> LauncherIDToItemDelegateMap;
+ typedef std::map<ShelfID, ShelfItemDelegate*> ShelfIDToItemDelegateMap;
// Remove and destroy ShelfItemDelegate for |id|.
- void RemoveShelfItemDelegate(LauncherID id);
+ void RemoveShelfItemDelegate(ShelfID id);
// Owned by Shell.
ShelfModel* model_;
- LauncherIDToItemDelegateMap id_to_item_delegate_map_;
+ ShelfIDToItemDelegateMap id_to_item_delegate_map_;
DISALLOW_COPY_AND_ASSIGN(ShelfItemDelegateManager);
};
« no previous file with comments | « ash/shelf/shelf_item_delegate.h ('k') | ash/shelf/shelf_item_delegate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698