ladybird/Userland/Libraries/LibWeb/Bindings/Wrapper.h
Andreas Kling f6c61940f6 LibWeb: Add PlatformObject class
This represents the "platform object" concept from the IDL spec, which
refers to an object that implements an IDL interface.
2022-09-06 00:27:09 +02:00

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);
};
}