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

Unified Diff: message_loop/message_loop.cc

Issue 1921183002: Add a mechanism to extend a libevent based message pump. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/domokit/base@master
Patch Set: added test case Created 4 years, 7 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 | « message_loop/message_loop.h ('k') | message_loop/message_pump_libevent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: message_loop/message_loop.cc
diff --git a/message_loop/message_loop.cc b/message_loop/message_loop.cc
index 6bd6730cde34752a3e7db50ee8d2f153379013da..bd8e47673f1f8cc5a9934de6be3a386d74ef0831 100644
--- a/message_loop/message_loop.cc
+++ b/message_loop/message_loop.cc
@@ -708,6 +708,17 @@ bool MessageLoopForUI::WatchFileDescriptor(
}
#endif
+#if defined(USE_X11)
+void MessageLoopForUI::SetEventSource(
+ MessagePumpLibevent::EventSource* event_source) {
+ static_cast<MessagePumpLibevent*>(pump_.get())->SetEventSource(event_source);
+}
+
+void MessageLoopForUI::ClearEventSource() {
+ static_cast<MessagePumpLibevent*>(pump_.get())->ClearEventSource();
+}
+#endif
+
#endif // !defined(OS_NACL)
//------------------------------------------------------------------------------
« no previous file with comments | « message_loop/message_loop.h ('k') | message_loop/message_pump_libevent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698