JSInjectedScriptHost.h [plain text]
#pragma once
#include "JSDestructibleObject.h"
namespace Inspector {
class InjectedScriptHost;
class JSInjectedScriptHost : public JSC::JSDestructibleObject {
public:
typedef JSC::JSDestructibleObject Base;
static const unsigned StructureFlags = Base::StructureFlags;
DECLARE_INFO;
static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
{
return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
}
static JSInjectedScriptHost* create(JSC::VM& vm, JSC::Structure* structure, Ref<InjectedScriptHost>&& impl)
{
JSInjectedScriptHost* instance = new (NotNull, JSC::allocateCell<JSInjectedScriptHost>(vm.heap)) JSInjectedScriptHost(vm, structure, WTFMove(impl));
instance->finishCreation(vm);
return instance;
}
static JSC::JSObject* createPrototype(JSC::VM&, JSC::JSGlobalObject*);
static void destroy(JSC::JSCell*);
InjectedScriptHost& impl() const { return m_wrapped; }
JSC::JSValue evaluate(JSC::ExecState*) const;
JSC::JSValue evaluateWithScopeExtension(JSC::ExecState*);
JSC::JSValue internalConstructorName(JSC::ExecState*);
JSC::JSValue isHTMLAllCollection(JSC::ExecState*);
JSC::JSValue subtype(JSC::ExecState*);
JSC::JSValue functionDetails(JSC::ExecState*);
JSC::JSValue getInternalProperties(JSC::ExecState*);
JSC::JSValue proxyTargetValue(JSC::ExecState*);
JSC::JSValue weakMapSize(JSC::ExecState*);
JSC::JSValue weakMapEntries(JSC::ExecState*);
JSC::JSValue weakSetSize(JSC::ExecState*);
JSC::JSValue weakSetEntries(JSC::ExecState*);
JSC::JSValue iteratorEntries(JSC::ExecState*);
protected:
void finishCreation(JSC::VM&);
private:
JSInjectedScriptHost(JSC::VM&, JSC::Structure*, Ref<InjectedScriptHost>&&);
Ref<InjectedScriptHost> m_wrapped;
};
}