top level:
[WebKit-https.git] / JavaScriptGlue / JSValueWrapper.h
index 6ce469e9fbe1be121756eac254bd2c6851fd5712..4851accacb5503a7e4dd78ccbfccf743a224fdf3 100644 (file)
@@ -1,3 +1,5 @@
+// -*- mode: c++; c-basic-offset: 4 -*-
+
 #ifndef __JSValueWrapper_h
 #define __JSValueWrapper_h
 
 #include "JSObject.h"
 
 class JSValueWrapper {
-       public:
-               JSValueWrapper(const Value& inValue, ExecState *inExec);
-               virtual ~JSValueWrapper();
-
-               Value& GetValue();
-               ExecState* GetExecState() const;
-       
-               ProtectedValue fValue;
-               ExecState* fExec;
-
-               static void GetJSObectCallBacks(JSObjectCallBacks& callBacks);
-                       
-       private:
-               static void JSObjectDispose(void* data);
-               static CFArrayRef JSObjectCopyPropertyNames(void* data);
-               static JSObjectRef JSObjectCopyProperty(void* data, CFStringRef propertyName);
-               static void JSObjectSetProperty(void* data, CFStringRef propertyName, JSObjectRef jsValue);
-               static JSObjectRef JSObjectCallFunction(void* data, JSObjectRef thisObj, CFArrayRef args);
-               static CFTypeRef JSObjectCopyCFValue(void* data);
-               static void JSObjectMark(void* data);
+public:
+    JSValueWrapper(ValueImp *inValue, ExecState *inExec);
+    virtual ~JSValueWrapper();
+    
+    ValueImp *GetValue();
+    ExecState* GetExecState() const;
+    
+    ProtectedPtr<ValueImp> fValue;
+    ExecState* fExec;
+    
+    static void GetJSObectCallBacks(JSObjectCallBacks& callBacks);
+    
+private:
+    static void JSObjectDispose(void* data);
+    static CFArrayRef JSObjectCopyPropertyNames(void* data);
+    static JSObjectRef JSObjectCopyProperty(void* data, CFStringRef propertyName);
+    static void JSObjectSetProperty(void* data, CFStringRef propertyName, JSObjectRef jsValue);
+    static JSObjectRef JSObjectCallFunction(void* data, JSObjectRef thisObj, CFArrayRef args);
+    static CFTypeRef JSObjectCopyCFValue(void* data);
+    static void JSObjectMark(void* data);
 };
 
 
-#endif
\ No newline at end of file
+#endif