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

Unified Diff: ash/mus/user_window_controller_impl.cc

Issue 2138483002: mash: Implement restore on item click. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skip the redundant check 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
« no previous file with comments | « ash/mus/user_window_controller_impl.h ('k') | ash/public/interfaces/user_window_controller.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/user_window_controller_impl.cc
diff --git a/ash/mus/user_window_controller_impl.cc b/ash/mus/user_window_controller_impl.cc
index ba64ffb28ace09ad43fa964046a5aac559bf2750..365acc74aa83aaa9ac68c40f14f83e07abdb849f 100644
--- a/ash/mus/user_window_controller_impl.cc
+++ b/ash/mus/user_window_controller_impl.cc
@@ -197,10 +197,12 @@ void UserWindowControllerImpl::AddUserWindowObserver(
user_window_observer_->OnUserWindowObserverAdded(std::move(user_windows));
}
-void UserWindowControllerImpl::FocusUserWindow(uint32_t window_id) {
+void UserWindowControllerImpl::ActivateUserWindow(uint32_t window_id) {
::ui::Window* window = GetUserWindowById(window_id);
- if (window)
+ if (window) {
+ window->SetVisible(true);
window->SetFocus();
+ }
}
} // namespace mus
« no previous file with comments | « ash/mus/user_window_controller_impl.h ('k') | ash/public/interfaces/user_window_controller.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698