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

Unified Diff: chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc

Issue 2791803002: mash: Move LauncherItemController to ash, rename ShelfItemDelegate. (Closed)
Patch Set: Sync and rebase. Created 3 years, 8 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
Index: chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
index 073168392a3e14c6bde609586dd9f6580bf44dd8..9778ab27fd42e9efbf308b434d952ddcfaba9d34 100644
--- a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
@@ -16,10 +16,8 @@
#include "ui/wm/core/window_animations.h"
AppWindowLauncherItemController::AppWindowLauncherItemController(
- const ash::AppLaunchId& app_launch_id,
- ChromeLauncherController* controller)
- : LauncherItemController(app_launch_id, controller),
- observed_windows_(this) {}
+ const ash::AppLaunchId& app_launch_id)
+ : ash::ShelfItemDelegate(app_launch_id), observed_windows_(this) {}
AppWindowLauncherItemController::~AppWindowLauncherItemController() {}
@@ -132,14 +130,14 @@ void AppWindowLauncherItemController::OnWindowPropertyChanged(
} else {
status = ash::STATUS_RUNNING;
}
- launcher_controller()->SetItemStatus(shelf_id(), status);
+ ChromeLauncherController::instance()->SetItemStatus(shelf_id(), status);
}
}
ash::ShelfAction AppWindowLauncherItemController::ShowAndActivateOrMinimize(
ui::BaseWindow* app_window) {
// Either show or minimize windows when shown from the launcher.
- return launcher_controller()->ActivateWindowOrMinimizeIfActive(
+ return ChromeLauncherController::instance()->ActivateWindowOrMinimizeIfActive(
app_window, GetAppMenuItems(ui::EF_NONE).size() == 1);
}

Powered by Google App Engine
This is Rietveld 408576698