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 cadf12152e244d0393caa96ea84060cea702dce9..cde765daccebdc5b3aa6d9fde84afd1142c067f7 100644 |
--- a/ui/events/platform/x11/x11_event_source_libevent.cc |
+++ b/ui/events/platform/x11/x11_event_source_libevent.cc |
@@ -137,6 +137,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); |
} |