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

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

Issue 2092343002: Touch HUD app for mustash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change window manager connection unittest to original 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
« no previous file with comments | « ui/views/mus/native_widget_mus.h ('k') | ui/views/mus/window_manager_connection.h » ('j') | 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..66bd4334d41a84c5e35aed8cc9e7bceb099e9740 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);
+
+ window_->SetAcceptEvents(accept_events);
}
NativeWidgetMus::~NativeWidgetMus() {
« no previous file with comments | « ui/views/mus/native_widget_mus.h ('k') | ui/views/mus/window_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698