X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..refs/heads/master:/inspector/JSInjectedScriptHost.h diff --git a/inspector/JSInjectedScriptHost.h b/inspector/JSInjectedScriptHost.h index dc23568..8689151 100644 --- a/inspector/JSInjectedScriptHost.h +++ b/inspector/JSInjectedScriptHost.h @@ -26,10 +26,12 @@ #ifndef JSInjectedScriptHost_h #define JSInjectedScriptHost_h -#if ENABLE(INSPECTOR) - #include "JSDestructibleObject.h" +namespace JSC { +class WeakMapData; +} + namespace Inspector { class InjectedScriptHost; @@ -37,6 +39,7 @@ class InjectedScriptHost; class JSInjectedScriptHost : public JSC::JSDestructibleObject { public: typedef JSC::JSDestructibleObject Base; + static const unsigned StructureFlags = Base::StructureFlags; DECLARE_INFO; @@ -64,13 +67,16 @@ public: // Functions. JSC::JSValue internalConstructorName(JSC::ExecState*); JSC::JSValue isHTMLAllCollection(JSC::ExecState*); - JSC::JSValue type(JSC::ExecState*); + JSC::JSValue subtype(JSC::ExecState*); JSC::JSValue functionDetails(JSC::ExecState*); JSC::JSValue getInternalProperties(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: - static const unsigned StructureFlags = Base::StructureFlags; - void finishCreation(JSC::VM&); private: @@ -85,6 +91,4 @@ JSInjectedScriptHost* toJSInjectedScriptHost(JSC::JSValue); } // namespace Inspector -#endif // ENABLE(INSPECTOR) - #endif // !defined(JSInjectedScriptHost_h)