зеркало из https://github.com/mozilla/pjs.git
Bug 270889 - Change params for initEmbedding() to use java.io.File and custom class. Backout lazy discovery of interface info (no longer needed). Better distribute methods in XPCOM and GeckoEmbed classes. r=darin.
Original committer: pedemont%us.ibm.com Original revision: 1.11 Original date: 2004/12/17 22:20:56
This commit is contained in:
Родитель
b8e59dcc01
Коммит
521f7020a0
|
@ -41,6 +41,7 @@
|
|||
#include "jni.h"
|
||||
#include "xptcall.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsString.h"
|
||||
|
||||
#ifdef DEBUG_pedemonte
|
||||
#define LOG(x) printf x
|
||||
|
@ -86,7 +87,7 @@ public:
|
|||
~JavaXPCOMInstance();
|
||||
|
||||
nsISupports* GetInstance() { return mInstance; }
|
||||
nsIInterfaceInfo* InterfaceInfo();
|
||||
nsIInterfaceInfo* InterfaceInfo() { return mIInfo; }
|
||||
|
||||
private:
|
||||
nsISupports* mInstance;
|
||||
|
@ -118,4 +119,15 @@ nsresult GetIIDForMethodParam(nsIInterfaceInfo *iinfo,
|
|||
PRBool isFullVariantArray,
|
||||
nsID &result);
|
||||
|
||||
/*******************************
|
||||
* JNI helper functions
|
||||
*******************************/
|
||||
// java.lang.String to nsAString/nsACString
|
||||
nsAString* jstring_to_nsAString(JNIEnv* env, jstring aString);
|
||||
nsACString* jstring_to_nsACString(JNIEnv* env, jstring aString);
|
||||
|
||||
// java.io.File to nsILocalFile
|
||||
nsresult File_to_nsILocalFile(JNIEnv* env, jobject aFile,
|
||||
nsILocalFile** aLocalFile);
|
||||
|
||||
#endif // _nsJavaXPCOMBindingUtils_h_
|
||||
|
|
Загрузка…
Ссылка в новой задаче