123456789101112131415161718192021222324252627282930313233 |
- // Copyright 2022 The Chromium Authors. All rights reserved.
- // 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;
- };
- } // namespace gtk
- #endif // UI_GTK_GTK_UI_PLATFORM_STUB_H_
|