Index: services/ui/ws/window_tree.cc |
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc |
index 7b677590017f2841d671284be29e16e733644c25..e24a531070e9ff5bb747918bbcd8b56568e68f87 100644 |
--- a/services/ui/ws/window_tree.cc |
+++ b/services/ui/ws/window_tree.cc |
@@ -347,6 +347,14 @@ bool WindowTree::SetFocus(const ClientWindowId& window_id) { |
return success; |
} |
+void WindowTree::SetCanAcceptEvents(Id transport_window_id, |
+ bool can_accept_events) { |
+ ServerWindow* window = |
+ GetWindowByClientId(ClientWindowId(transport_window_id)); |
+ if (window && access_policy_->CanSetAcceptEvents(window)) |
+ window->set_can_accept_events(can_accept_events); |
sadrul
2016/07/12 17:32:33
Add a TODO here to check that there aren't any ent
riajiang
2016/07/12 18:46:40
Done.
|
+} |
+ |
bool WindowTree::Embed(const ClientWindowId& window_id, |
mojom::WindowTreeClientPtr client, |
uint32_t flags) { |