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

Unified Diff: ui/views/mus/mus_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/views/mus/mus_client.cc
diff --git a/ui/views/mus/mus_client.cc b/ui/views/mus/mus_client.cc
index 2a73231972a333202e7dd245ed9ec78d49577652..e06c27fea7321837f5514dc13edcbb93027c8064 100644
--- a/ui/views/mus/mus_client.cc
+++ b/ui/views/mus/mus_client.cc
@@ -151,6 +151,9 @@ MusClient::ConfigurePropertiesFromParams(
mojo::ConvertTo<std::vector<uint8_t>>(
static_cast<int32_t>(init_params.type));
+ properties[ui::mojom::WindowManager::kActivatable_InitProperty] =
+ mojo::ConvertTo<std::vector<uint8_t>>(init_params.CanActivate());
sadrul 2017/01/24 17:34:49 Instead of introducing a property for this, can mu
Hadi 2017/01/24 18:42:33 WindowTree::SetCanFocus() needs window_id, but I t
sadrul 2017/01/25 05:31:40 The window-id is set pretty early on in the client
+
if (!init_params.bounds.IsEmpty()) {
properties[ui::mojom::WindowManager::kBounds_InitProperty] =
mojo::ConvertTo<std::vector<uint8_t>>(init_params.bounds);

Powered by Google App Engine
This is Rietveld 408576698