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

Unified Diff: ui/views/mus/mus_client.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 | « ui/aura/test/aura_test_base.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2e23362a94c80b3ec662622ef9ecd2b1fa94a4c4 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::kFocusable_InitProperty] =
+ mojo::ConvertTo<std::vector<uint8_t>>(init_params.CanActivate());
+
if (!init_params.bounds.IsEmpty()) {
properties[ui::mojom::WindowManager::kBounds_InitProperty] =
mojo::ConvertTo<std::vector<uint8_t>>(init_params.bounds);
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698