Index: services/ui/ws/window_tree.cc |
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc |
index a32eec9bcd3393b4b683a8d93e3ce6d0960e448a..2ea2f29129dd5817d45bb288b8aca338fb22435e 100644 |
--- a/services/ui/ws/window_tree.cc |
+++ b/services/ui/ws/window_tree.cc |
@@ -347,6 +347,13 @@ bool WindowTree::SetFocus(const ClientWindowId& window_id) { |
return success; |
} |
+void WindowTree::SetAcceptEvents(Id transport_window_id, bool accept_events) { |
+ ServerWindow* window = |
+ GetWindowByClientId(ClientWindowId(transport_window_id)); |
sky
2016/07/06 16:21:25
nit: spacing should be 4 here. Run git cl format t
riajiang
2016/07/08 17:59:59
Done.
|
+ if (window) |
+ window->SetAcceptEvents(accept_events); |
sky
2016/07/06 16:21:25
You should also make sure the client can actually
riajiang
2016/07/08 17:59:59
Done.
|
+} |
+ |
bool WindowTree::Embed(const ClientWindowId& window_id, |
mojom::WindowTreeClientPtr client, |
uint32_t flags) { |