Bug 1116589 - Use templated JNI classes in generated bindings; r=snorp

This commit is contained in:
Jim Chen
2015-01-09 19:33:57 -05:00
parent 277ad8ae08
commit 60b2a7d4b1
59 changed files with 4728 additions and 4688 deletions

View File

@@ -255,7 +255,7 @@ public class GeckoAppShell
// Initialization methods
public static native void registerJavaUiThread();
public static native void nativeInit();
public static native void nativeInit(ClassLoader clsLoader);
// helper methods
public static native void onResume();
@@ -339,8 +339,8 @@ public class GeckoAppShell
};
Looper.myQueue().addIdleHandler(idleHandler);
// run gecko -- it will spawn its own thread
GeckoAppShell.nativeInit();
// Initialize AndroidBridge.
nativeInit(GeckoAppShell.class.getClassLoader());
// First argument is the .apk path
String combinedArgs = apkPath + " -greomni " + apkPath;