#include "ui/gtk/x/gtk_ui_platform_x11.h"
#include "base/check.h"
#include "base/environment.h"
#include "ui/base/x/x11_util.h"
#include "ui/events/event_constants.h"
#include "ui/events/event_utils.h"
#include "ui/events/platform/x11/x11_event_source.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/x/atom_cache.h"
#include "ui/gfx/x/xlib_support.h"
#include "ui/gfx/x/xproto.h"
#include "ui/gtk/gtk_compat.h"
#include "ui/gtk/gtk_util.h"
#include "ui/gtk/input_method_context_impl_gtk.h"
#include "ui/gtk/x/gtk_event_loop_x11.h"
#include "ui/linux/linux_ui_delegate.h"
namespace gtk {
GtkUiPlatformX11::GtkUiPlatformX11() : … { … }
GtkUiPlatformX11::~GtkUiPlatformX11() = default;
void GtkUiPlatformX11::OnInitialized(GtkWidget* widget) { … }
GdkKeymap* GtkUiPlatformX11::GetGdkKeymap() { … }
GdkModifierType GtkUiPlatformX11::GetGdkKeyEventState(
const ui::KeyEvent& key_event) { … }
int GtkUiPlatformX11::GetGdkKeyEventGroup(const ui::KeyEvent& key_event) { … }
GdkWindow* GtkUiPlatformX11::GetGdkWindow(gfx::AcceleratedWidget window_id) { … }
bool GtkUiPlatformX11::SetGtkWidgetTransientFor(GtkWidget* widget,
gfx::AcceleratedWidget parent) { … }
void GtkUiPlatformX11::ClearTransientFor(gfx::AcceleratedWidget parent) { … }
GdkDisplay* GtkUiPlatformX11::GetGdkDisplay() { … }
void GtkUiPlatformX11::ShowGtkWindow(GtkWindow* window) { … }
std::unique_ptr<ui::LinuxInputMethodContext>
GtkUiPlatformX11::CreateInputMethodContext(
ui::LinuxInputMethodContextDelegate* delegate) const { … }
bool GtkUiPlatformX11::IncludeFontScaleInDeviceScale() const { … }
}