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

Unified Diff: ui/aura/window_tree_host_x11.h

Issue 2319933002: X11: Remove calls to XSelectInput (Closed)
Patch Set: 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/aura/window_tree_host_x11.h
diff --git a/ui/aura/window_tree_host_x11.h b/ui/aura/window_tree_host_x11.h
index f209e10bdba49a8d8800cd4f028d60a4871707ad..eb34c7e83bbc892509ccf6b15cce98b977dd0d04 100644
--- a/ui/aura/window_tree_host_x11.h
+++ b/ui/aura/window_tree_host_x11.h
@@ -24,6 +24,7 @@ typedef XID Window;
namespace ui {
class MouseEvent;
+class XScopedEventSelector;
}
namespace aura {
@@ -52,6 +53,8 @@ class AURA_EXPORT WindowTreeHostX11 : public WindowTreeHost,
void MoveCursorToNative(const gfx::Point& location) override;
void OnCursorVisibilityChangedNative(bool show) override;
+ void DisableInput();
Daniel Erat 2016/09/07 22:58:36 nit: please add a brief comment describing what th
Tom (Use chromium acct) 2016/09/07 23:31:16 Done.
+
protected:
// Called when X Configure Notify event is recevied.
virtual void OnConfigureNotify();
@@ -79,6 +82,9 @@ class AURA_EXPORT WindowTreeHostX11 : public WindowTreeHost,
XDisplay* xdisplay_;
::Window xwindow_;
+ // Events selected on |xwindow_|.
+ std::unique_ptr<ui::XScopedEventSelector> xwindow_events_;
+
// The native root window.
::Window x_root_window_;

Powered by Google App Engine
This is Rietveld 408576698