added IID accessor, changed GetJavaClass() to have a JNIEnv* parameter.

git-svn-id: svn://10.0.0.236/trunk@27789 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com
1999-04-16 02:08:15 +00:00
parent b181169ce3
commit 0f4244e2d0
2 changed files with 22 additions and 22 deletions

View File

@@ -37,6 +37,14 @@
#include "nsIPlugin.h"
#include "jni.h" // standard JVM API
#define NS_ILIVECONNECTPLUGIN_IID \
{ /* cf134df0-a1bc-11d1-85b1-00805f0e4dfe */ \
0xcf134df0, \
0xa1bc, \
0x11d1, \
{0x85, 0xb1, 0x00, 0x80, 0x5f, 0x0e, 0x4d, 0xfe} \
}
/**
* The nsILiveConnectPlugin interface defines additional entry points that a
* plugin developer needs to implement in order for the plugin to support
@@ -45,8 +53,9 @@
* Plugin developers requiring this capability should implement this interface
* in addition to the basic nsIPlugin interface.
*/
class nsILiveConnectPlugin : public nsIPlugin {
class nsILiveConnectPlugin : public nsISupports {
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ILIVECONNECTPLUGIN_IID)
/**
* Returns the class of the Java instance to be associated with the
@@ -58,18 +67,9 @@ public:
* @result - NS_OK if this operation was successful
*/
NS_IMETHOD
GetJavaClass(jclass *resultingClass) = 0;
GetJavaClass(JNIEnv* env, jclass *resultingClass) = 0;
};
#define NS_ILIVECONNECTPLUGIN_IID \
{ /* cf134df0-a1bc-11d1-85b1-00805f0e4dfe */ \
0xcf134df0, \
0xa1bc, \
0x11d1, \
{0x85, 0xb1, 0x00, 0x80, 0x5f, 0x0e, 0x4d, 0xfe} \
}
////////////////////////////////////////////////////////////////////////////////
#endif /* nsILiveConnectPlugin_h__ */