Bug 1292323 - Update WrapForJNI usages; r=snorp

Replace old flags in WrapForJNI usages with new flags. The calledFrom
and dispatchTo flags are set based on whether the method is native or
non-native, and how the method is used.

Also fix testEventDipatcher to respect NativeJSObject's calledFrom =
"gekco" flag, by moving a test to Gecko thread.
This commit is contained in:
Jim Chen
2016-08-12 23:15:52 -04:00
parent d88b6c6fe2
commit 7db9a1b7e6
38 changed files with 283 additions and 272 deletions

View File

@@ -64,7 +64,7 @@ nsScreenAndroid::GetPixelDepth(int32_t *aPixelDepth)
return NS_ERROR_FAILURE;
}
*aPixelDepth = java::GeckoAppShell::GetScreenDepthWrapper();
*aPixelDepth = java::GeckoAppShell::GetScreenDepth();
return NS_OK;
}