mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
30 lines
791 B
C++
30 lines
791 B
C++
/*
|
|
* Copyright (c) 2024, Shannon Booth <shannon@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibJS/Runtime/Realm.h>
|
|
#include <LibWeb/Bindings/HostDefined.h>
|
|
#include <LibWeb/Forward.h>
|
|
#include <LibWeb/HTML/Scripting/SyntheticRealmSettings.h>
|
|
|
|
namespace Web::Bindings {
|
|
|
|
struct SyntheticHostDefined : public HostDefined {
|
|
SyntheticHostDefined(HTML::SyntheticRealmSettings synthetic_realm_settings, JS::NonnullGCPtr<Intrinsics> intrinsics)
|
|
: HostDefined(intrinsics)
|
|
, synthetic_realm_settings(move(synthetic_realm_settings))
|
|
{
|
|
}
|
|
|
|
virtual ~SyntheticHostDefined() override = default;
|
|
virtual void visit_edges(JS::Cell::Visitor& visitor) override;
|
|
|
|
HTML::SyntheticRealmSettings synthetic_realm_settings;
|
|
};
|
|
|
|
}
|