JSTestCallbackFunctionWithTypedefs.h [plain text]
#pragma once
#include "IDLTypes.h"
#include "JSCallbackData.h"
#include "TestCallbackFunctionWithTypedefs.h"
#include <wtf/Forward.h>
namespace WebCore {
class JSTestCallbackFunctionWithTypedefs final : public TestCallbackFunctionWithTypedefs {
public:
static Ref<JSTestCallbackFunctionWithTypedefs> create(JSC::JSObject* callback, JSDOMGlobalObject* globalObject)
{
return adoptRef(*new JSTestCallbackFunctionWithTypedefs(callback, globalObject));
}
virtual ScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); }
virtual ~JSTestCallbackFunctionWithTypedefs();
JSCallbackDataStrong* callbackData() { return m_data; }
CallbackResult<typename IDLVoid::ImplementationType> handleEvent(typename IDLSequence<IDLNullable<IDLLong>>::ParameterType sequenceArg, typename IDLLong::ParameterType longArg) override;
private:
JSTestCallbackFunctionWithTypedefs(JSC::JSObject*, JSDOMGlobalObject*);
JSCallbackDataStrong* m_data;
};
JSC::JSValue toJS(TestCallbackFunctionWithTypedefs&);
inline JSC::JSValue toJS(TestCallbackFunctionWithTypedefs* impl) { return impl ? toJS(*impl) : JSC::jsNull(); }
}