/*
 * Copyright (c) 2026-present, the Ladybird developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <AK/Platform.h>
#include <LibGfx/Forward.h>
#include <LibWebView/Forward.h>

class QWidget;
class QColor;
namespace Gfx {

class Color;

}

namespace Ladybird {

#if defined(AK_OS_MACOS)
void set_rounded_window_corners(QWidget&, bool enabled, double radius, QColor const& background_color);
void set_appkit_window_resizable(QWidget&, bool enabled);
void install_always_active_window_control_hover_tracking(QWidget&, void (*hover_changed)(QWidget*));
void install_appkit_event_capture();
void make_appkit_window_first_responder(QWidget&);
bool start_appkit_window_drag(QWidget&);
void show_appkit_dictionary_lookup(QWidget&, WebView::DictionaryLookup const&, Gfx::IntPoint);
Gfx::Color appkit_web_inactive_selection_color();
Gfx::Color appkit_web_inactive_selection_text_color();
#endif

}
