mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1186467 - Rewrite NativeJSContainer to use new native JNI scheme; r=snorp
This patch makes NativeJSContainer use per-instance native methods. NativeJSContainer is also updated to use smart JNI reference classes.
This commit is contained in:
parent
cf40f969b5
commit
ff569cc4b6
@ -1066,9 +1066,7 @@ AndroidBridge::HandleGeckoMessage(JSContext* cx, JS::HandleObject object)
|
||||
{
|
||||
ALOG_BRIDGE("%s", __PRETTY_FUNCTION__);
|
||||
|
||||
JNIEnv* const env = GetJNIEnv();
|
||||
auto message = Object::LocalRef::Adopt(env,
|
||||
mozilla::widget::CreateNativeJSContainer(env, cx, object));
|
||||
auto message = mozilla::widget::CreateNativeJSContainer(cx, object);
|
||||
GeckoAppShell::HandleGeckoMessageWrapper(message);
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -6,13 +6,14 @@
|
||||
#ifndef NativeJSObject_h__
|
||||
#define NativeJSObject_h__
|
||||
|
||||
#include <jni.h>
|
||||
#include "GeneratedJNIWrappers.h"
|
||||
#include "jsapi.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace widget {
|
||||
|
||||
jobject CreateNativeJSContainer(JNIEnv* env, JSContext* cx, JS::HandleObject object);
|
||||
NativeJSContainer::LocalRef CreateNativeJSContainer(
|
||||
JSContext* cx, JS::HandleObject object);
|
||||
|
||||
} // namespace widget
|
||||
} // namespace mozilla
|
||||
|
Loading…
Reference in New Issue
Block a user