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

Unified Diff: ui/events/platform/x11/x11_event_source_libevent.cc

Issue 1723303002: Implement GLX for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to use #define 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
« no previous file with comments | « ui/events/platform/x11/x11_event_source_libevent.h ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/platform/x11/x11_event_source_libevent.cc
diff --git a/ui/events/platform/x11/x11_event_source_libevent.cc b/ui/events/platform/x11/x11_event_source_libevent.cc
index 4d877aea7e54f96dfd2f73136669bc890035c5e8..708ab4104a4d9dc4821b50414e1d6f094950805d 100644
--- a/ui/events/platform/x11/x11_event_source_libevent.cc
+++ b/ui/events/platform/x11/x11_event_source_libevent.cc
@@ -7,6 +7,8 @@
#include <X11/Xlib.h>
#include <X11/extensions/XInput2.h>
+#include <memory>
+
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "ui/events/event.h"
@@ -137,6 +139,12 @@ X11EventSourceLibevent::X11EventSourceLibevent(XDisplay* display)
X11EventSourceLibevent::~X11EventSourceLibevent() {}
+// static
+X11EventSourceLibevent* X11EventSourceLibevent::GetInstance() {
+ return static_cast<X11EventSourceLibevent*>(
+ PlatformEventSource::GetInstance());
+}
+
void X11EventSourceLibevent::AddXEventDispatcher(XEventDispatcher* dispatcher) {
dispatchers_xevent_.AddObserver(dispatcher);
}
« no previous file with comments | « ui/events/platform/x11/x11_event_source_libevent.h ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698