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

Unified Diff: ash/shell/window_watcher_shelf_item_delegate.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/window_watcher_shelf_item_delegate.h ('k') | ash/test/launcher_item_delegate_manager_test_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_watcher_shelf_item_delegate.cc
diff --git a/ash/shell/window_watcher_launcher_item_delegate.cc b/ash/shell/window_watcher_shelf_item_delegate.cc
similarity index 47%
rename from ash/shell/window_watcher_launcher_item_delegate.cc
rename to ash/shell/window_watcher_shelf_item_delegate.cc
index 76e39fd3f9d6c81a81d0d930079b6c9aeb7085bf..ecb4308c944db9b9b7f16f2858e7b3a7f668a170 100644
--- a/ash/shell/window_watcher_launcher_item_delegate.cc
+++ b/ash/shell/window_watcher_shelf_item_delegate.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/shell/window_watcher_launcher_item_delegate.h"
+#include "ash/shell/window_watcher_shelf_item_delegate.h"
#include "ash/shell/window_watcher.h"
#include "ash/wm/window_util.h"
@@ -11,47 +11,45 @@
namespace ash {
namespace shell {
-WindowWatcherLauncherItemDelegate::WindowWatcherLauncherItemDelegate(
- ash::LauncherID id,
- ash::shell::WindowWatcher* watcher)
- : id_(id),
- watcher_(watcher) {
+WindowWatcherShelfItemDelegate::WindowWatcherShelfItemDelegate(
+ LauncherID id,
+ WindowWatcher* watcher)
+ : id_(id), watcher_(watcher) {
DCHECK_GT(id_, 0);
DCHECK(watcher_);
}
-WindowWatcherLauncherItemDelegate::~WindowWatcherLauncherItemDelegate() {
+WindowWatcherShelfItemDelegate::~WindowWatcherShelfItemDelegate() {
}
-bool WindowWatcherLauncherItemDelegate::ItemSelected(const ui::Event& event) {
+bool WindowWatcherShelfItemDelegate::ItemSelected(const ui::Event& event) {
aura::Window* window = watcher_->GetWindowByID(id_);
if (window->type() == aura::client::WINDOW_TYPE_PANEL)
- ash::wm::MoveWindowToEventRoot(window, event);
+ wm::MoveWindowToEventRoot(window, event);
window->Show();
- ash::wm::ActivateWindow(window);
+ wm::ActivateWindow(window);
return false;
}
-base::string16 WindowWatcherLauncherItemDelegate::GetTitle() {
+base::string16 WindowWatcherShelfItemDelegate::GetTitle() {
return watcher_->GetWindowByID(id_)->title();
}
-ui::MenuModel* WindowWatcherLauncherItemDelegate::CreateContextMenu(
+ui::MenuModel* WindowWatcherShelfItemDelegate::CreateContextMenu(
aura::Window* root_window) {
return NULL;
}
-ash::LauncherMenuModel*
-WindowWatcherLauncherItemDelegate::CreateApplicationMenu(
+ShelfMenuModel* WindowWatcherShelfItemDelegate::CreateApplicationMenu(
int event_flags) {
return NULL;
}
-bool WindowWatcherLauncherItemDelegate::IsDraggable() {
+bool WindowWatcherShelfItemDelegate::IsDraggable() {
return true;
}
-bool WindowWatcherLauncherItemDelegate::ShouldShowTooltip() {
+bool WindowWatcherShelfItemDelegate::ShouldShowTooltip() {
return true;
}
« no previous file with comments | « ash/shell/window_watcher_shelf_item_delegate.h ('k') | ash/test/launcher_item_delegate_manager_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698