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

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

Issue 2184103003: arc: Implement proper Arc window activation for task moving to front. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/arc_app_window_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
index 497a50e9cfaff4db00e99b6d34b7d475544d6b06..550dbdbd3b3704106b85881f41f3e7051d529fb9 100644
--- a/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc
@@ -463,6 +463,16 @@ void ArcAppWindowLauncherController::OnTaskSetActive(int32_t task_id) {
}
}
+void ArcAppWindowLauncherController::OnTaskMovedToFront(int32_t task_id) {
+ TaskIdToAppWindow::const_iterator app_it =
+ task_id_to_app_window_.find(task_id);
+ if (app_it == task_id_to_app_window_.end())
+ return;
+ if (app_it->second->IsActive())
+ return;
+ app_it->second->Activate();
+}
+
void ArcAppWindowLauncherController::OnTaskOrientationLockRequested(
int32_t task_id,
const arc::mojom::OrientationLock orientation_lock) {

Powered by Google App Engine
This is Rietveld 408576698