JSOptionConstructor.h [plain text]
#ifndef JSOptionConstructor_h
#define JSOptionConstructor_h
#include "JSDOMBinding.h"
#include "JSDocument.h"
#include <wtf/RefPtr.h>
namespace WebCore {
class JSOptionConstructor : public DOMConstructorWithDocument {
public:
typedef DOMConstructorWithDocument Base;
static JSOptionConstructor* create(JSC::ExecState* exec, JSC::Structure* structure, JSDOMGlobalObject* globalObject)
{
JSOptionConstructor* constructor = new (JSC::allocateCell<JSOptionConstructor>(*exec->heap())) JSOptionConstructor(structure, globalObject);
constructor->finishCreation(exec, globalObject);
return constructor;
}
static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
{
return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
}
static const JSC::ClassInfo s_info;
private:
JSOptionConstructor(JSC::Structure*, JSDOMGlobalObject*);
void finishCreation(JSC::ExecState*, JSDOMGlobalObject*);
static JSC::ConstructType getConstructData(JSC::JSCell*, JSC::ConstructData&);
};
}
#endif // JSOptionConstructor_h