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