ladybird/Libraries/LibWeb/Internals/InternalsBase.h
2025-08-23 16:04:36 -06:00

29 lines
588 B
C++

/*
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/Export.h>
#include <LibWeb/Forward.h>
namespace Web::Internals {
class WEB_API InternalsBase : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(InternalsBase, Bindings::PlatformObject);
GC_DECLARE_ALLOCATOR(InternalsBase);
public:
virtual ~InternalsBase() override;
protected:
explicit InternalsBase(JS::Realm&);
HTML::Window& window() const;
Page& page() const;
};
}