JSTestCallbackFunctionWithTypedefs.h [plain text]
#pragma once
#include "ActiveDOMCallback.h"
#include "JSCallbackData.h"
#include "TestCallbackFunctionWithTypedefs.h"
#include <wtf/Forward.h>
namespace WebCore {
class JSTestCallbackFunctionWithTypedefs : public TestCallbackFunctionWithTypedefs, public ActiveDOMCallback {
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; }
virtual bool handleEvent(Vector<int32_t> sequenceArg, int32_t longArg);
private:
JSTestCallbackFunctionWithTypedefs(JSC::JSObject*, JSDOMGlobalObject*);
JSCallbackDataStrong* m_data;
};
JSC::JSValue toJS(TestCallbackFunctionWithTypedefs&);
inline JSC::JSValue toJS(TestCallbackFunctionWithTypedefs* impl) { return impl ? toJS(*impl) : JSC::jsNull(); }
}