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

Unified Diff: ui/aura/mus/window_tree_client.cc

Issue 2650833002: Set focusibility correctly when initializing a window in mus+ash. (Closed)
Patch Set: 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
Index: ui/aura/mus/window_tree_client.cc
diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
index d5cef1fae1c448b7cc621187bf7ab32de56a5eb9..f0b90e87191c91fb96c0fa7f7ce1a4d8127a508c 100644
--- a/ui/aura/mus/window_tree_client.cc
+++ b/ui/aura/mus/window_tree_client.cc
@@ -1449,6 +1449,10 @@ void WindowTreeClient::WmCreateTopLevelWindow(
window_manager_internal_client_->OnWmCreatedTopLevelWindow(
change_id, WindowMus::Get(window)->server_id());
}
+ auto activatable_iter =
sky 2017/01/23 21:28:29 The WindowManagerDelegate should be responsible fo
Hadi 2017/01/24 18:42:32 Done. Implementation of WindowManagerDelegate::OnW
+ properties.find(ui::mojom::WindowManager::kActivatable_InitProperty);
+ if (activatable_iter != properties.end())
+ SetCanFocus(window, mojo::ConvertTo<bool>(activatable_iter->second));
}
void WindowTreeClient::WmClientJankinessChanged(ClientSpecificId client_id,

Powered by Google App Engine
This is Rietveld 408576698