forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgtk_ui_platform_stub.h
35 lines (28 loc) · 1.28 KB
/
gtk_ui_platform_stub.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// 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;
std::unique_ptr<ui::LinuxInputMethodContext> CreateInputMethodContext(
ui::LinuxInputMethodContextDelegate* delegate) const override;
};
} // namespace gtk
#endif // UI_GTK_GTK_UI_PLATFORM_STUB_H_