mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
f6c61940f6
This represents the "platform object" concept from the IDL spec, which refers to an object that implements an IDL interface.
27 lines
472 B
C++
27 lines
472 B
C++
/*
|
|
* Copyright (c) 2020-2022, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Weakable.h>
|
|
#include <LibWeb/Bindings/PlatformObject.h>
|
|
#include <LibWeb/Forward.h>
|
|
|
|
namespace Web::Bindings {
|
|
|
|
class Wrapper
|
|
: public PlatformObject
|
|
, public Weakable<Wrapper> {
|
|
JS_OBJECT(Wrapper, PlatformObject);
|
|
|
|
public:
|
|
virtual ~Wrapper() override;
|
|
|
|
protected:
|
|
explicit Wrapper(Object& prototype);
|
|
};
|
|
|
|
}
|