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

Unified Diff: ash/shell/window_watcher.cc

Issue 97173003: ash: Rename more Launcher classes to Shelf*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: link chrome Created 7 years 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/shell.cc ('k') | ash/shell/window_watcher_launcher_item_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_watcher.cc
diff --git a/ash/shell/window_watcher.cc b/ash/shell/window_watcher.cc
index 761a9cc0c9f70a84a5f275d520f8a0016d6003b5..988985a5e46d1dc63022a1ff3841ccc010c2644e 100644
--- a/ash/shell/window_watcher.cc
+++ b/ash/shell/window_watcher.cc
@@ -6,12 +6,12 @@
#include "ash/display/display_controller.h"
#include "ash/launcher/launcher.h"
-#include "ash/launcher/launcher_item_delegate_manager.h"
+#include "ash/shelf/shelf_item_delegate_manager.h"
#include "ash/shelf/shelf_model.h"
#include "ash/shelf/shelf_util.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
-#include "ash/shell/window_watcher_launcher_item_delegate.h"
+#include "ash/shell/window_watcher_shelf_item_delegate.h"
#include "ash/shell_window_ids.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
@@ -117,11 +117,11 @@ void WindowWatcher::OnWindowAdded(aura::Window* new_window) {
model->Add(item);
- ash::LauncherItemDelegateManager* manager =
- ash::Shell::GetInstance()->launcher_item_delegate_manager();
- scoped_ptr<LauncherItemDelegate> delegate(
- new WindowWatcherLauncherItemDelegate(id, this));
- manager->SetLauncherItemDelegate(id, delegate.Pass());
+ ShelfItemDelegateManager* manager =
+ Shell::GetInstance()->shelf_item_delegate_manager();
+ scoped_ptr<ShelfItemDelegate> delegate(
+ new WindowWatcherShelfItemDelegate(id, this));
+ manager->SetShelfItemDelegate(id, delegate.Pass());
SetLauncherIDForWindow(id, new_window);
}
« no previous file with comments | « ash/shell.cc ('k') | ash/shell/window_watcher_launcher_item_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698