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

Unified Diff: ash/test/test_shelf_delegate.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/test/test_shelf_delegate.h ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_shelf_delegate.cc
diff --git a/ash/test/test_shelf_delegate.cc b/ash/test/test_shelf_delegate.cc
index 1f46e68afd2a96e4671fb7b242ec4e05276f0238..e32561081f77a1d22a6fb8553847eb87a814317c 100644
--- a/ash/test/test_shelf_delegate.cc
+++ b/ash/test/test_shelf_delegate.cc
@@ -29,18 +29,18 @@ TestShelfDelegate::~TestShelfDelegate() {
instance_ = NULL;
}
-void TestShelfDelegate::AddLauncherItem(aura::Window* window) {
- AddLauncherItem(window, STATUS_CLOSED);
+void TestShelfDelegate::AddShelfItem(aura::Window* window) {
+ AddShelfItem(window, STATUS_CLOSED);
}
-void TestShelfDelegate::AddLauncherItem(aura::Window* window,
- ShelfItemStatus status) {
- LauncherItem item;
+void TestShelfDelegate::AddShelfItem(aura::Window* window,
+ ShelfItemStatus status) {
+ ShelfItem item;
if (window->type() == ui::wm::WINDOW_TYPE_PANEL)
item.type = TYPE_APP_PANEL;
else
item.type = TYPE_PLATFORM_APP;
- LauncherID id = model_->next_id();
+ ShelfID id = model_->next_id();
item.status = status;
model_->Add(item);
window->AddObserver(this);
@@ -50,11 +50,11 @@ void TestShelfDelegate::AddLauncherItem(aura::Window* window,
// |manager| owns TestShelfItemDelegate.
scoped_ptr<ShelfItemDelegate> delegate(new TestShelfItemDelegate(window));
manager->SetShelfItemDelegate(id, delegate.Pass());
- SetLauncherIDForWindow(id, window);
+ SetShelfIDForWindow(id, window);
}
-void TestShelfDelegate::RemoveLauncherItemForWindow(aura::Window* window) {
- LauncherID id = GetLauncherIDForWindow(window);
+void TestShelfDelegate::RemoveShelfItemForWindow(aura::Window* window) {
+ ShelfID id = GetShelfIDForWindow(window);
if (id == 0)
return;
int index = model_->ItemIndexByID(id);
@@ -64,7 +64,7 @@ void TestShelfDelegate::RemoveLauncherItemForWindow(aura::Window* window) {
}
void TestShelfDelegate::OnWindowDestroying(aura::Window* window) {
- RemoveLauncherItemForWindow(window);
+ RemoveShelfItemForWindow(window);
}
void TestShelfDelegate::OnWindowHierarchyChanging(
@@ -73,7 +73,7 @@ void TestShelfDelegate::OnWindowHierarchyChanging(
// to another display or container. If the window does not have a new parent
// then remove the shelf item.
if (!params.new_parent)
- RemoveLauncherItemForWindow(params.target);
+ RemoveShelfItemForWindow(params.target);
}
void TestShelfDelegate::OnShelfCreated(Shelf* shelf) {
@@ -82,11 +82,11 @@ void TestShelfDelegate::OnShelfCreated(Shelf* shelf) {
void TestShelfDelegate::OnShelfDestroyed(Shelf* shelf) {
}
-LauncherID TestShelfDelegate::GetLauncherIDForAppID(const std::string& app_id) {
+ShelfID TestShelfDelegate::GetShelfIDForAppID(const std::string& app_id) {
return 0;
}
-const std::string& TestShelfDelegate::GetAppIDForLauncherID(LauncherID id) {
+const std::string& TestShelfDelegate::GetAppIDForShelfID(ShelfID id) {
return base::EmptyString();
}
« no previous file with comments | « ash/test/test_shelf_delegate.h ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698