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

Unified Diff: ui/views/widget/desktop_aura/x11_desktop_handler.h

Issue 2319933002: X11: Remove calls to XSelectInput (Closed)
Patch Set: Comments Created 4 years, 3 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: ui/views/widget/desktop_aura/x11_desktop_handler.h
diff --git a/ui/views/widget/desktop_aura/x11_desktop_handler.h b/ui/views/widget/desktop_aura/x11_desktop_handler.h
index 63ddf5af726a6587568c437731ba36d089c81ae4..06d78ba89412365329cb89ad7b74270479f0e976 100644
--- a/ui/views/widget/desktop_aura/x11_desktop_handler.h
+++ b/ui/views/widget/desktop_aura/x11_desktop_handler.h
@@ -26,6 +26,10 @@ namespace base {
template <typename T> struct DefaultSingletonTraits;
}
+namespace ui {
+class XScopedEventSelector;
+}
+
namespace views {
// A singleton that owns global objects related to the desktop and listens for
@@ -69,6 +73,9 @@ class VIEWS_EXPORT X11DesktopHandler : public ui::PlatformEventDispatcher,
// The native root window.
::Window x_root_window_;
+ // Events selected on x_root_window_.
+ std::unique_ptr<ui::XScopedEventSelector> x_root_window_events_;
+
ui::X11AtomCache atom_cache_;
base::ObserverList<X11DesktopHandlerObserver> observers_;
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ('k') | ui/views/widget/desktop_aura/x11_desktop_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698