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 cf0e3d648f709df2ee8cff9f19cae457862fb291..23f3b4af25513e74b555095dc5ccea526ec0780f 100644 |
--- a/ui/events/platform/x11/x11_event_source_libevent.cc |
+++ b/ui/events/platform/x11/x11_event_source_libevent.cc |
@@ -136,6 +136,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); |
} |