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.

git-svn-id: svn://10.0.0.236/trunk@166837 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pedemont%us.ibm.com
2004-12-17 22:20:56 +00:00
parent 47c61b3e43
commit c647dcab36
5 changed files with 163 additions and 5 deletions

View File

@@ -38,10 +38,18 @@
package org.mozilla.xpcom;
import java.lang.reflect.*;
import java.io.*;
public final class XPCOM {
public static native nsIServiceManager initXPCOM(File aMozBinDirectory, AppFileLocProvider aAppFileLocProvider);
public static native void shutdownXPCOM(nsIServiceManager aServMgr);
public static native nsIServiceManager getServiceManager();
public static native nsIComponentManager getComponentManager();
public static native nsIComponentRegistrar getComponentRegistrar();
public static native nsILocalFile newLocalFile(String aPath, boolean followLinks);
// Calling functions used by Java stub classes
public static native void CallXPCOMMethodVoid(Object thisObj, int fnNumber, Object[] params);
public static native boolean CallXPCOMMethodBool(Object thisObj, int fnNumber, Object[] params);
@@ -115,4 +123,6 @@ public final class XPCOM {
return iid;
}
}