#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/gtk/x/gtk_event_loop_x11.h"
#include <xcb/xcb.h>
#include <xcb/xproto.h>
#include "base/functional/bind.h"
#include "ui/base/x/x11_util.h"
#include "ui/gfx/x/event.h"
#include "ui/gtk/gtk_compat.h"
namespace gtk {
namespace {
x11::KeyButMask BuildXkbStateFromGdkEvent(unsigned int state,
unsigned char group) { … }
x11::Event ConvertGdkEventToKeyEvent(GdkEvent* gdk_event) { … }
void ProcessGdkEvent(GdkEvent* gdk_event) { … }
}
GtkEventLoopX11::GtkEventLoopX11(GtkWidget* widget) { … }
GtkEventLoopX11::~GtkEventLoopX11() { … }
gboolean GtkEventLoopX11::OnEvent(GdkSurface* surface, GdkEvent* gdk_event) { … }
void GtkEventLoopX11::DispatchGdkEvent(GdkEvent* gdk_event, gpointer) { … }
}