diff options
Diffstat (limited to 'Source/WebCore/bridge/jni/v8/JavaInstanceV8.h')
-rw-r--r-- | Source/WebCore/bridge/jni/v8/JavaInstanceV8.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/WebCore/bridge/jni/v8/JavaInstanceV8.h b/Source/WebCore/bridge/jni/v8/JavaInstanceV8.h index 8ee3195..b1150f8 100644 --- a/Source/WebCore/bridge/jni/v8/JavaInstanceV8.h +++ b/Source/WebCore/bridge/jni/v8/JavaInstanceV8.h @@ -30,6 +30,7 @@ #if ENABLE(JAVA_BRIDGE) #include "JNIUtility.h" +#include "JavaValueV8.h" #include "JobjectWrapper.h" #include "npruntime.h" @@ -43,6 +44,8 @@ namespace JSC { namespace Bindings { class JavaClass; +class JavaField; +class JavaMethod; class JavaInstance : public RefCounted<JavaInstance> { public: @@ -50,9 +53,10 @@ public: virtual ~JavaInstance(); JavaClass* getClass() const; - - bool invokeMethod(const char* name, const NPVariant* args, int argsCount, NPVariant* result); - + // args must be an array of length greater than or equal to the number of + // arguments expected by the method. + JavaValue invokeMethod(const JavaMethod*, JavaValue* args); + JavaValue getField(const JavaField*); jobject javaInstance() const { return m_instance->m_instance; } // These functions are called before and after the main entry points into |