From 0f4244e2d044481dec52da17dea478070254b465 Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Fri, 16 Apr 1999 02:08:15 +0000 Subject: [PATCH] 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 --- .../plugin/base/public/nsILiveConnectPlugin.h | 22 +++++++++---------- .../plugin/public/nsILiveConnectPlugin.h | 22 +++++++++---------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/mozilla/modules/plugin/base/public/nsILiveConnectPlugin.h b/mozilla/modules/plugin/base/public/nsILiveConnectPlugin.h index e35ffafc42b..642d7539292 100644 --- a/mozilla/modules/plugin/base/public/nsILiveConnectPlugin.h +++ b/mozilla/modules/plugin/base/public/nsILiveConnectPlugin.h @@ -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__ */ diff --git a/mozilla/modules/plugin/public/nsILiveConnectPlugin.h b/mozilla/modules/plugin/public/nsILiveConnectPlugin.h index e35ffafc42b..642d7539292 100644 --- a/mozilla/modules/plugin/public/nsILiveConnectPlugin.h +++ b/mozilla/modules/plugin/public/nsILiveConnectPlugin.h @@ -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__ */