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

Unified Diff: ash/shelf/shelf_item_delegate_manager.cc

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_manager.h ('k') | ash/shelf/shelf_item_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_item_delegate_manager.cc
diff --git a/ash/shelf/shelf_item_delegate_manager.cc b/ash/shelf/shelf_item_delegate_manager.cc
index 79124caac15a4b2608e2924141eb899b82002c33..d5b3d04958e05565d8dd1af435bc17748117874a 100644
--- a/ash/shelf/shelf_item_delegate_manager.cc
+++ b/ash/shelf/shelf_item_delegate_manager.cc
@@ -25,7 +25,7 @@ ShelfItemDelegateManager::~ShelfItemDelegateManager() {
}
void ShelfItemDelegateManager::SetShelfItemDelegate(
- LauncherID id,
+ ShelfID id,
scoped_ptr<ShelfItemDelegate> item_delegate) {
// If another ShelfItemDelegate is already registered for |id|, we assume
// that this request is replacing ShelfItemDelegate for |id| with
@@ -34,10 +34,9 @@ void ShelfItemDelegateManager::SetShelfItemDelegate(
id_to_item_delegate_map_[id] = item_delegate.release();
}
-ShelfItemDelegate* ShelfItemDelegateManager::GetShelfItemDelegate(
- LauncherID id) {
+ShelfItemDelegate* ShelfItemDelegateManager::GetShelfItemDelegate(ShelfID id) {
if (model_->ItemIndexByID(id) != -1) {
- // Each LauncherItem has to have a ShelfItemDelegate.
+ // Each ShelfItem has to have a ShelfItemDelegate.
DCHECK(id_to_item_delegate_map_.find(id) != id_to_item_delegate_map_.end());
return id_to_item_delegate_map_[id];
}
@@ -47,7 +46,7 @@ ShelfItemDelegate* ShelfItemDelegateManager::GetShelfItemDelegate(
void ShelfItemDelegateManager::ShelfItemAdded(int index) {
}
-void ShelfItemDelegateManager::ShelfItemRemoved(int index, LauncherID id) {
+void ShelfItemDelegateManager::ShelfItemRemoved(int index, ShelfID id) {
RemoveShelfItemDelegate(id);
}
@@ -56,13 +55,13 @@ void ShelfItemDelegateManager::ShelfItemMoved(int start_index,
}
void ShelfItemDelegateManager::ShelfItemChanged(int index,
- const LauncherItem& old_item) {
+ const ShelfItem& old_item) {
}
void ShelfItemDelegateManager::ShelfStatusChanged() {
}
-void ShelfItemDelegateManager::RemoveShelfItemDelegate(LauncherID id) {
+void ShelfItemDelegateManager::RemoveShelfItemDelegate(ShelfID id) {
if (id_to_item_delegate_map_.find(id) != id_to_item_delegate_map_.end()) {
delete id_to_item_delegate_map_[id];
id_to_item_delegate_map_.erase(id);
« no previous file with comments | « ash/shelf/shelf_item_delegate_manager.h ('k') | ash/shelf/shelf_item_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698