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

Unified Diff: ash/shell/window_watcher.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/shell/window_watcher.h ('k') | ash/shell/window_watcher_shelf_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 607719a3c200aca98a3b578fc6ab26e525fcf97e..c2244e20d9d041f84481a946e631e34459b702b4 100644
--- a/ash/shell/window_watcher.cc
+++ b/ash/shell/window_watcher.cc
@@ -86,7 +86,7 @@ WindowWatcher::~WindowWatcher() {
}
}
-aura::Window* WindowWatcher::GetWindowByID(ash::LauncherID id) {
+aura::Window* WindowWatcher::GetWindowByID(ash::ShelfID id) {
IDToWindow::const_iterator i = id_to_window_.find(id);
return i != id_to_window_.end() ? i->second : NULL;
}
@@ -99,11 +99,11 @@ void WindowWatcher::OnWindowAdded(aura::Window* new_window) {
static int image_count = 0;
ShelfModel* model = Shell::GetInstance()->shelf_model();
- LauncherItem item;
+ ShelfItem item;
item.type = new_window->type() == ui::wm::WINDOW_TYPE_PANEL
? ash::TYPE_APP_PANEL
: ash::TYPE_PLATFORM_APP;
- ash::LauncherID id = model->next_id();
+ ash::ShelfID id = model->next_id();
id_to_window_[id] = new_window;
SkBitmap icon_bitmap;
@@ -123,7 +123,7 @@ void WindowWatcher::OnWindowAdded(aura::Window* new_window) {
scoped_ptr<ShelfItemDelegate> delegate(
new WindowWatcherShelfItemDelegate(id, this));
manager->SetShelfItemDelegate(id, delegate.Pass());
- SetLauncherIDForWindow(id, new_window);
+ SetShelfIDForWindow(id, new_window);
}
void WindowWatcher::OnWillRemoveWindow(aura::Window* window) {
« no previous file with comments | « ash/shell/window_watcher.h ('k') | ash/shell/window_watcher_shelf_item_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698