#ifndef JSTestCallback_h
#define JSTestCallback_h
#if ENABLE(DATABASE)
#include "JSCallbackData.h"
#include "TestCallback.h"
#include <wtf/Forward.h>
namespace WebCore {
class JSTestCallback : public TestCallback {
public:
static PassRefPtr<JSTestCallback> create(JSC::JSObject* callback, JSDOMGlobalObject* globalObject)
{
return adoptRef(new JSTestCallback(callback, globalObject));
}
virtual ~JSTestCallback();
virtual bool callbackWithClass1Param(ScriptExecutionContext*, Class1* class1Param);
virtual bool callbackWithClass2Param(ScriptExecutionContext*, Class2* class2Param, const String& strArg);
COMPILE_ASSERT(false) virtual int callbackWithNonBoolReturnType(ScriptExecutionContext*, Class3* class3Param);
virtual int customCallback(ScriptExecutionContext*, Class5* class5Param, Class6* class6Param);
private:
JSTestCallback(JSC::JSObject* callback, JSDOMGlobalObject*);
JSCallbackData* m_data;
RefPtr<DOMWrapperWorld> m_isolatedWorld;
};
}
#endif // ENABLE(DATABASE)
#endif