| // Copyright 2005 Google Inc. |
| // This class actually wraps Java objects |
| class DispWrapper : public KJS::JSObject { |
| // dispObj MUST be a global ref |
| DispWrapper(jobject dispObj); |
| // implementations of JSObject methods |
| const KJS::ClassInfo *classInfo() const { return &info; } |
| virtual bool getOwnPropertySlot(KJS::ExecState*, const KJS::Identifier&, KJS::PropertySlot&); |
| virtual bool canPut(KJS::ExecState*, const KJS::Identifier&) const; |
| virtual void put(KJS::ExecState*, const KJS::Identifier&, KJS::JSValue*, int); |
| virtual bool deleteProperty(KJS::ExecState*, const KJS::Identifier&); |
| virtual KJS::JSValue *defaultValue(KJS::ExecState*, KJS::JSType) const; |
| virtual bool implementsCall() const; |
| virtual KJS::JSValue *callAsFunction(KJS::ExecState*, KJS::JSObject*, const KJS::List&); |
| static const KJS::ClassInfo info; |
| static KJS::JSValue* getter(KJS::ExecState*, KJS::JSObject*, const KJS::Identifier&, const KJS::PropertySlot&); |
| inline jobject DispWrapper::getDispObj() { |