blob: 5c096eb51065d752f731c2af89101590f1f5b871 [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.
#include "ui/gtk/gtk_ui_platform_stub.h"
#include "base/functional/callback.h"
#include "ui/base/ime/linux/linux_input_method_context.h"
namespace gtk {
GtkUiPlatformStub::GtkUiPlatformStub() = default;
GtkUiPlatformStub::~GtkUiPlatformStub() = default;
void GtkUiPlatformStub::OnInitialized() {}
GdkWindow* GtkUiPlatformStub::GetGdkWindow(gfx::AcceleratedWidget window_id) {
return nullptr;
}
bool GtkUiPlatformStub::SetGtkWidgetTransientFor(
GtkWidget* widget,
gfx::AcceleratedWidget parent) {
return false;
}
void GtkUiPlatformStub::ClearTransientFor(gfx::AcceleratedWidget parent) {}
void GtkUiPlatformStub::ShowGtkWindow(GtkWindow* window) {
gtk_window_present(window);
}
std::unique_ptr<ui::LinuxInputMethodContext>
GtkUiPlatformStub::CreateInputMethodContext(
ui::LinuxInputMethodContextDelegate* delegate) const {
return nullptr;
}
bool GtkUiPlatformStub::IncludeFontScaleInDeviceScale() const {
return false;
}
bool GtkUiPlatformStub::IncludeScaleInCursorSize() const {
return false;
}
} // namespace gtk