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

Unified Diff: services/ui/ws/window_tree.cc

Issue 2118383002: mus: Disregard windows that explicitly set can_accept_events to be false when sending events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Only set accept_events when it's false Created 4 years, 5 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: 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) {

Powered by Google App Engine
This is Rietveld 408576698