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

Unified Diff: ui/views/mus/native_widget_mus.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
« services/ui/ws/window_tree.cc ('K') | « ui/views/mus/native_widget_mus.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index 96e1152550ed51fd2f174643fd47fb5fc6dd7770..f9b76817368e9177d6a9f600bd157d2447f150b3 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -499,7 +499,8 @@ class NativeWidgetMus::MusCaptureClient
NativeWidgetMus::NativeWidgetMus(internal::NativeWidgetDelegate* delegate,
shell::Connector* connector,
ui::Window* window,
- ui::mojom::SurfaceType surface_type)
+ ui::mojom::SurfaceType surface_type,
+ bool accept_events)
: window_(window),
last_cursor_(ui::mojom::Cursor::CURSOR_NULL),
native_widget_delegate_(delegate),
@@ -543,6 +544,8 @@ NativeWidgetMus::NativeWidgetMus(internal::NativeWidgetDelegate* delegate,
}
aura::Env::GetInstance()->set_context_factory(default_context_factory);
+
+ if (accept_events == false) window_->SetAcceptEvents(false);
sky 2016/07/06 16:21:25 nit: in general we don't use single line condition
riajiang 2016/07/08 17:59:59 Done.
}
NativeWidgetMus::~NativeWidgetMus() {
« services/ui/ws/window_tree.cc ('K') | « ui/views/mus/native_widget_mus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698