#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "ui/gtk/wayland/gtk_ui_platform_wayland.h"
#include "base/command_line.h"
#include "base/environment.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/logging.h"
#include "ui/base/glib/glib_cast.h"
#include "ui/events/event_utils.h"
#include "ui/gtk/gtk_compat.h"
#include "ui/gtk/gtk_util.h"
#include "ui/gtk/input_method_context_impl_gtk.h"
#include "ui/linux/linux_ui_delegate.h"
namespace gtk {
GtkUiPlatformWayland::GtkUiPlatformWayland() { … }
GtkUiPlatformWayland::~GtkUiPlatformWayland() = default;
void GtkUiPlatformWayland::OnInitialized(GtkWidget* widget) { … }
GdkKeymap* GtkUiPlatformWayland::GetGdkKeymap() { … }
GdkModifierType GtkUiPlatformWayland::GetGdkKeyEventState(
const ui::KeyEvent& key_event) { … }
int GtkUiPlatformWayland::GetGdkKeyEventGroup(const ui::KeyEvent& key_event) { … }
GdkWindow* GtkUiPlatformWayland::GetGdkWindow(
gfx::AcceleratedWidget window_id) { … }
bool GtkUiPlatformWayland::SetGtkWidgetTransientFor(
GtkWidget* widget,
gfx::AcceleratedWidget parent) { … }
void GtkUiPlatformWayland::ClearTransientFor(gfx::AcceleratedWidget parent) { … }
void GtkUiPlatformWayland::ShowGtkWindow(GtkWindow* window) { … }
GdkDisplay* GtkUiPlatformWayland::GetDefaultGdkDisplay() { … }
void GtkUiPlatformWayland::OnHandleSetTransient(GtkWidget* widget,
const std::string& handle) { … }
std::unique_ptr<ui::LinuxInputMethodContext>
GtkUiPlatformWayland::CreateInputMethodContext(
ui::LinuxInputMethodContextDelegate* delegate) const { … }
bool GtkUiPlatformWayland::IncludeFontScaleInDeviceScale() const { … }
}