diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-10-21 07:00:00 -0700 |
commit | 9364f22aed35e1a1e9d07c121510f80be3ab0502 (patch) | |
tree | d49911209b132da58d838efa852daf28d516df21 /JavaScriptCore/bindings/objc | |
parent | 87eb0cb35bad8784770ebc807e6c982432e47107 (diff) | |
download | external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.zip external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.gz external_webkit-9364f22aed35e1a1e9d07c121510f80be3ab0502.tar.bz2 |
Initial Contribution
Diffstat (limited to 'JavaScriptCore/bindings/objc')
-rw-r--r-- | JavaScriptCore/bindings/objc/objc_runtime.h | 3 | ||||
-rw-r--r-- | JavaScriptCore/bindings/objc/objc_runtime.mm | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/JavaScriptCore/bindings/objc/objc_runtime.h b/JavaScriptCore/bindings/objc/objc_runtime.h index 74bc49e..1151d53 100644 --- a/JavaScriptCore/bindings/objc/objc_runtime.h +++ b/JavaScriptCore/bindings/objc/objc_runtime.h @@ -103,7 +103,8 @@ public: const ClassInfo *classInfo() const { return &info; } virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&); - virtual void put(ExecState*, const Identifier& propertyName, JSValue*); + virtual bool canPut(ExecState *exec, const Identifier &propertyName) const; + virtual void put(ExecState *exec, const Identifier &propertyName, JSValue *value, int attr = None); virtual bool implementsCall() const; virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args); virtual bool deleteProperty(ExecState *exec, const Identifier &propertyName); diff --git a/JavaScriptCore/bindings/objc/objc_runtime.mm b/JavaScriptCore/bindings/objc/objc_runtime.mm index 14877b4..ec0b41f 100644 --- a/JavaScriptCore/bindings/objc/objc_runtime.mm +++ b/JavaScriptCore/bindings/objc/objc_runtime.mm @@ -211,10 +211,16 @@ bool ObjcFallbackObjectImp::getOwnPropertySlot(ExecState*, const Identifier&, Pr return true; } -void ObjcFallbackObjectImp::put(ExecState*, const Identifier&, JSValue*) +void ObjcFallbackObjectImp::put(ExecState*, const Identifier&, JSValue*, int) { } +bool ObjcFallbackObjectImp::canPut(ExecState*, const Identifier&) const +{ + return false; +} + + JSType ObjcFallbackObjectImp::type() const { id targetObject = _instance->getObject(); |