blob: 73252c63b1200343f5d3b55f7da8aab7b4c0b99e [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GTK_GTK_UI_PLATFORM_STUB_H_
#define UI_GTK_GTK_UI_PLATFORM_STUB_H_
#include "ui/gtk/gtk_ui_platform.h"
namespace gtk {
class GtkUiPlatformStub : public GtkUiPlatform {
public:
GtkUiPlatformStub();
GtkUiPlatformStub(const GtkUiPlatformStub&) = delete;
GtkUiPlatformStub& operator=(const GtkUiPlatformStub&) = delete;
~GtkUiPlatformStub() override;
// GtkUiPlatform:
void OnInitialized(GtkWidget* widget) override;
GdkKeymap* GetGdkKeymap() override;
GdkModifierType GetGdkKeyEventState(const ui::KeyEvent& key_event) override;
int GetGdkKeyEventGroup(const ui::KeyEvent& key_event) override;
GdkWindow* GetGdkWindow(gfx::AcceleratedWidget window_id) override;
bool SetGtkWidgetTransientFor(GtkWidget* widget,
gfx::AcceleratedWidget parent) override;
void ClearTransientFor(gfx::AcceleratedWidget parent) override;
void ShowGtkWindow(GtkWindow* window) override;
std::unique_ptr<ui::LinuxInputMethodContext> CreateInputMethodContext(
ui::LinuxInputMethodContextDelegate* delegate) const override;
bool IncludeFontScaleInDeviceScale() const override;
};
} // namespace gtk
#endif // UI_GTK_GTK_UI_PLATFORM_STUB_H_