24 #ifndef QSCRIPTGLOBALOBJECT_P_H 25 #define QSCRIPTGLOBALOBJECT_P_H 38 #include <QtCore/qobjectdefs.h> 40 #include "JSGlobalObject.h" 52 virtual JSC::UString
className()
const {
return "global"; }
55 const JSC::Identifier& propertyName,
58 const JSC::Identifier& propertyName,
59 JSC::PropertyDescriptor&);
60 virtual void put(JSC::ExecState* exec,
const JSC::Identifier& propertyName,
61 JSC::JSValue, JSC::PutPropertySlot&);
62 virtual void putWithAttributes(JSC::ExecState* exec,
const JSC::Identifier& propertyName,
63 JSC::JSValue value,
unsigned attributes);
65 const JSC::Identifier& propertyName);
67 JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties);
68 virtual void defineGetter(JSC::ExecState*,
const JSC::Identifier& propertyName, JSC::JSObject* getterFunction,
unsigned attributes = 0);
69 virtual void defineSetter(JSC::ExecState*,
const JSC::Identifier& propertyName, JSC::JSObject* setterFunction,
unsigned attributes = 0);
70 virtual JSC::JSValue
lookupGetter(JSC::ExecState*,
const JSC::Identifier& propertyName);
71 virtual JSC::JSValue
lookupSetter(JSC::ExecState*,
const JSC::Identifier& propertyName);
81 JSC::JSGlobalObject *
object)
82 :
JSC::JSObject(sid), originalGlobalObject(object)
87 {
return originalGlobalObject->className(); }
90 markStack.append(originalGlobalObject);
91 JSC::JSObject::markChildren(markStack);
94 const JSC::Identifier& propertyName,
95 JSC::PropertySlot& slot)
96 {
return originalGlobalObject->JSC::JSGlobalObject::getOwnPropertySlot(exec, propertyName, slot); }
98 const JSC::Identifier& propertyName,
99 JSC::PropertyDescriptor& descriptor)
100 {
return originalGlobalObject->JSC::JSGlobalObject::getOwnPropertyDescriptor(exec, propertyName, descriptor); }
101 virtual void put(JSC::ExecState* exec,
const JSC::Identifier& propertyName,
102 JSC::JSValue value, JSC::PutPropertySlot& slot)
103 { originalGlobalObject->JSC::JSGlobalObject::put(exec, propertyName, value, slot); }
104 virtual void putWithAttributes(JSC::ExecState* exec,
const JSC::Identifier& propertyName, JSC::JSValue value,
unsigned attributes)
105 { originalGlobalObject->JSC::JSGlobalObject::putWithAttributes(exec, propertyName, value, attributes); }
107 const JSC::Identifier& propertyName)
108 {
return originalGlobalObject->JSC::JSGlobalObject::deleteProperty(exec, propertyName); }
109 virtual void getOwnPropertyNames(JSC::ExecState* exec, JSC::PropertyNameArray& propertyNames, JSC::EnumerationMode mode = JSC::ExcludeDontEnumProperties)
110 { originalGlobalObject->JSC::JSGlobalObject::getOwnPropertyNames(exec, propertyNames, mode); }
111 virtual void defineGetter(JSC::ExecState* exec,
const JSC::Identifier& propertyName, JSC::JSObject* getterFunction,
unsigned attributes)
112 { originalGlobalObject->JSC::JSGlobalObject::defineGetter(exec, propertyName, getterFunction, attributes); }
113 virtual void defineSetter(JSC::ExecState* exec,
const JSC::Identifier& propertyName, JSC::JSObject* setterFunction,
unsigned attributes)
114 { originalGlobalObject->JSC::JSGlobalObject::defineSetter(exec, propertyName, setterFunction, attributes); }
115 virtual JSC::JSValue
lookupGetter(JSC::ExecState* exec,
const JSC::Identifier& propertyName)
116 {
return originalGlobalObject->JSC::JSGlobalObject::lookupGetter(exec, propertyName); }
117 virtual JSC::JSValue
lookupSetter(JSC::ExecState* exec,
const JSC::Identifier& propertyName)
118 {
return originalGlobalObject->JSC::JSGlobalObject::lookupSetter(exec, propertyName); }
#define QT_END_NAMESPACE
This macro expands to.
virtual bool getOwnPropertySlot(JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertySlot &)
virtual void putWithAttributes(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue value, unsigned attributes)
virtual void defineSetter(JSC::ExecState *, const JSC::Identifier &propertyName, JSC::JSObject *setterFunction, unsigned attributes=0)
virtual void defineGetter(JSC::ExecState *, const JSC::Identifier &propertyName, JSC::JSObject *getterFunction, unsigned attributes=0)
virtual JSC::JSValue lookupSetter(JSC::ExecState *exec, const JSC::Identifier &propertyName)
virtual void getOwnPropertyNames(JSC::ExecState *exec, JSC::PropertyNameArray &propertyNames, JSC::EnumerationMode mode=JSC::ExcludeDontEnumProperties)
virtual bool getOwnPropertySlot(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::PropertySlot &slot)
virtual bool getOwnPropertyDescriptor(JSC::ExecState *, const JSC::Identifier &propertyName, JSC::PropertyDescriptor &)
virtual void put(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue, JSC::PutPropertySlot &)
virtual bool getOwnPropertyDescriptor(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::PropertyDescriptor &descriptor)
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual ~OriginalGlobalObjectProxy()
virtual JSC::JSValue lookupGetter(JSC::ExecState *, const JSC::Identifier &propertyName)
virtual JSC::UString className() const
virtual void defineSetter(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSObject *setterFunction, unsigned attributes)
virtual JSC::JSValue lookupSetter(JSC::ExecState *, const JSC::Identifier &propertyName)
virtual void put(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue value, JSC::PutPropertySlot &slot)
virtual void putWithAttributes(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue value, unsigned attributes)
OriginalGlobalObjectProxy(WTF::PassRefPtr< JSC::Structure > sid, JSC::JSGlobalObject *object)
virtual bool deleteProperty(JSC::ExecState *exec, const JSC::Identifier &propertyName)
JSC::JSObject * customGlobalObject
JSC::JSGlobalObject * originalGlobalObject
virtual void defineGetter(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSObject *getterFunction, unsigned attributes)
virtual JSC::UString className() const
virtual void markChildren(JSC::MarkStack &)
virtual JSC::JSValue lookupGetter(JSC::ExecState *exec, const JSC::Identifier &propertyName)
virtual void markChildren(JSC::MarkStack &markStack)
virtual void getOwnPropertyNames(JSC::ExecState *, JSC::PropertyNameArray &, JSC::EnumerationMode mode=JSC::ExcludeDontEnumProperties)
virtual bool deleteProperty(JSC::ExecState *, const JSC::Identifier &propertyName)