JSTestSerializationIndirectInheritance.h [plain text]
#pragma once
#include "JSDOMWrapper.h"
#include "JSTestSerializationInherit.h"
#include "TestSerializationIndirectInheritance.h"
namespace WebCore {
class JSTestSerializationIndirectInheritance : public JSTestSerializationInherit {
public:
using Base = JSTestSerializationInherit;
using DOMWrapped = TestSerializationIndirectInheritance;
static JSTestSerializationIndirectInheritance* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestSerializationIndirectInheritance>&& impl)
{
JSTestSerializationIndirectInheritance* ptr = new (NotNull, JSC::allocateCell<JSTestSerializationIndirectInheritance>(globalObject->vm().heap)) JSTestSerializationIndirectInheritance(structure, *globalObject, WTFMove(impl));
ptr->finishCreation(globalObject->vm());
return ptr;
}
static JSC::JSObject* createPrototype(JSC::VM&, JSDOMGlobalObject&);
static JSC::JSObject* prototype(JSC::VM&, JSDOMGlobalObject&);
DECLARE_INFO;
static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
{
return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
}
static JSC::JSValue getConstructor(JSC::VM&, const JSC::JSGlobalObject*);
TestSerializationIndirectInheritance& wrapped() const
{
return static_cast<TestSerializationIndirectInheritance&>(Base::wrapped());
}
protected:
JSTestSerializationIndirectInheritance(JSC::Structure*, JSDOMGlobalObject&, Ref<TestSerializationIndirectInheritance>&&);
void finishCreation(JSC::VM&);
};
template<> struct JSDOMWrapperConverterTraits<TestSerializationIndirectInheritance> {
using WrapperClass = JSTestSerializationIndirectInheritance;
using ToWrappedReturnType = TestSerializationIndirectInheritance*;
};
}