#include "ui/events/platform/x11/x11_event_watcher_glib.h"
#include <glib.h>
#include "base/memory/raw_ptr.h"
namespace ui {
namespace {
struct GLibX11Source : public GSource { … };
gboolean XSourcePrepare(GSource* source, gint* timeout_ms) { … }
gboolean XSourceCheck(GSource* source) { … }
gboolean XSourceDispatch(GSource* source,
GSourceFunc unused_func,
gpointer data) { … }
void XSourceFinalize(GSource* source) { … }
GSourceFuncs XSourceFuncs = …;
}
X11EventWatcherGlib::X11EventWatcherGlib(X11EventSource* source)
: … { … }
X11EventWatcherGlib::~X11EventWatcherGlib() { … }
void X11EventWatcherGlib::StartWatching() { … }
void X11EventWatcherGlib::StopWatching() { … }
}