Truly independent web browser
/*
* Copyright (c) 2025, Tim Flynn <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Utf16String.h>
#include <LibJS/Runtime/Value.h>
#include <LibWeb/Export.h>
#include <LibWeb/Internals/InternalsBase.h>
namespace Web::Internals {
class WEB_API WebUI final : public InternalsBase {
WEB_WRAPPABLE(WebUI, InternalsBase);
GC_DECLARE_ALLOCATOR(WebUI);
public:
static GC::Ref<WebUI> create(HTML::Window&);
virtual ~WebUI() override;
void send_message(Utf16String const& name, JS::Value data);
private:
explicit WebUI(HTML::Window&);
};
}