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

Unified Diff: ash/mus/window_manager.cc

Issue 2650833002: Set focusibility correctly when initializing a window in mus+ash. (Closed)
Patch Set: addressed feedback. Created 3 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/mus/window_manager.h ('k') | mash/simple_wm/simple_wm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager.cc
diff --git a/ash/mus/window_manager.cc b/ash/mus/window_manager.cc
index 8d7f21ed199732b9a745f33942fefce63c5022a2..8ef14a1046f117d1c972bf0704c521d36de9cd84 100644
--- a/ash/mus/window_manager.cc
+++ b/ash/mus/window_manager.cc
@@ -321,6 +321,13 @@ bool WindowManager::OnWmSetProperty(
name == ui::mojom::WindowManager::kWindowTitle_Property;
}
+void WindowManager::OnWmSetCanFocus(aura::Window* window, bool can_focus) {
+ NonClientFrameController* non_client_frame_controller =
+ NonClientFrameController::Get(window);
+ if (non_client_frame_controller)
+ non_client_frame_controller->set_can_activate(can_focus);
+}
+
aura::Window* WindowManager::OnWmCreateTopLevelWindow(
ui::mojom::WindowType window_type,
std::map<std::string, std::vector<uint8_t>>* properties) {
« no previous file with comments | « ash/mus/window_manager.h ('k') | mash/simple_wm/simple_wm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698