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

Unified Diff: ui/views/mus/desktop_window_tree_host_mus.cc

Issue 2667073002: mash: changes can_accept_events to an enum (Closed)
Patch Set: merge 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/mus/test_window_tree.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/desktop_window_tree_host_mus.cc
diff --git a/ui/views/mus/desktop_window_tree_host_mus.cc b/ui/views/mus/desktop_window_tree_host_mus.cc
index ff395d1b49d101ddcbd9c6c5bd2a0250e10a0764..1b834c7d3f6e6de2308c696d833aabc0d0019bc0 100644
--- a/ui/views/mus/desktop_window_tree_host_mus.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus.cc
@@ -295,8 +295,10 @@ void DesktopWindowTreeHostMus::Init(aura::Window* content_window,
params.parent->GetHost()->window(), window());
}
- if (!params.accept_events)
- aura::WindowPortMus::Get(window())->SetCanAcceptEvents(false);
+ if (!params.accept_events) {
+ aura::WindowPortMus::Get(window())->SetEventTargetingPolicy(
+ ui::mojom::EventTargetingPolicy::NONE);
+ }
}
void DesktopWindowTreeHostMus::OnNativeWidgetCreated(
« no previous file with comments | « ui/aura/test/mus/test_window_tree.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698