зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1285570 - Update auto-generated bindings; r=me
This commit is contained in:
Родитель
247c8dadf2
Коммит
1ea9e5b8da
|
@ -77,6 +77,25 @@ Java_org_mozilla_gecko_GeckoAppShell_reportJavaCrash(JNIEnv * arg0, jclass arg1,
|
|||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef void (*Java_org_mozilla_gecko_GeckoAppShell_notifyUriVisited_t)(JNIEnv *, jclass, jstring);
|
||||
static Java_org_mozilla_gecko_GeckoAppShell_notifyUriVisited_t f_Java_org_mozilla_gecko_GeckoAppShell_notifyUriVisited;
|
||||
extern "C" NS_EXPORT void MOZ_JNICALL
|
||||
Java_org_mozilla_gecko_GeckoAppShell_notifyUriVisited(JNIEnv * arg0, jclass arg1, jstring arg2) {
|
||||
if (!f_Java_org_mozilla_gecko_GeckoAppShell_notifyUriVisited) {
|
||||
arg0->ThrowNew(arg0->FindClass("java/lang/UnsupportedOperationException"),
|
||||
"JNI Function called before it was loaded");
|
||||
return ;
|
||||
}
|
||||
f_Java_org_mozilla_gecko_GeckoAppShell_notifyUriVisited(arg0, arg1, arg2);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef JNI_BINDINGS
|
||||
xul_dlsym("Java_org_mozilla_gecko_GeckoAppShell_notifyUriVisited", &f_Java_org_mozilla_gecko_GeckoAppShell_notifyUriVisited);
|
||||
#endif
|
||||
|
||||
#ifdef JNI_STUBS
|
||||
|
||||
typedef void (*Java_org_mozilla_gecko_GeckoAppShell_notifyBatteryChange_t)(JNIEnv *, jclass, jdouble, jboolean, jdouble);
|
||||
static Java_org_mozilla_gecko_GeckoAppShell_notifyBatteryChange_t f_Java_org_mozilla_gecko_GeckoAppShell_notifyBatteryChange;
|
||||
extern "C" NS_EXPORT void MOZ_JNICALL
|
||||
|
|
|
@ -55,7 +55,7 @@ template<class Impl>
|
|||
class GeckoAppShell::Natives : public mozilla::jni::NativeImpl<GeckoAppShell, Impl>
|
||||
{
|
||||
public:
|
||||
static const JNINativeMethod methods[4];
|
||||
static const JNINativeMethod methods[5];
|
||||
};
|
||||
|
||||
template<class Impl>
|
||||
|
@ -65,6 +65,10 @@ const JNINativeMethod GeckoAppShell::Natives<Impl>::methods[] = {
|
|||
mozilla::jni::NativeStub<GeckoAppShell::NotifyObservers_t, Impl>
|
||||
::template Wrap<&Impl::NotifyObservers>),
|
||||
|
||||
mozilla::jni::MakeNativeMethod<GeckoAppShell::NotifyUriVisited_t>(
|
||||
mozilla::jni::NativeStub<GeckoAppShell::NotifyUriVisited_t, Impl>
|
||||
::template Wrap<&Impl::NotifyUriVisited>),
|
||||
|
||||
mozilla::jni::MakeNativeMethod<GeckoAppShell::OnLocationChanged_t>(
|
||||
mozilla::jni::NativeStub<GeckoAppShell::OnLocationChanged_t, Impl>
|
||||
::template Wrap<&Impl::OnLocationChanged>),
|
||||
|
|
|
@ -573,6 +573,9 @@ auto GeckoAppShell::NotifyDefaultPrevented(bool a0) -> void
|
|||
return mozilla::jni::Method<NotifyDefaultPrevented_t>::Call(GeckoAppShell::Context(), nullptr, a0);
|
||||
}
|
||||
|
||||
constexpr char GeckoAppShell::NotifyUriVisited_t::name[];
|
||||
constexpr char GeckoAppShell::NotifyUriVisited_t::signature[];
|
||||
|
||||
constexpr char GeckoAppShell::NotifyWakeLockChanged_t::name[];
|
||||
constexpr char GeckoAppShell::NotifyWakeLockChanged_t::signature[];
|
||||
|
||||
|
|
|
@ -1198,6 +1198,20 @@ public:
|
|||
|
||||
static auto NotifyDefaultPrevented(bool) -> void;
|
||||
|
||||
struct NotifyUriVisited_t {
|
||||
typedef GeckoAppShell Owner;
|
||||
typedef void ReturnType;
|
||||
typedef void SetterType;
|
||||
typedef mozilla::jni::Args<
|
||||
mozilla::jni::String::Param> Args;
|
||||
static constexpr char name[] = "notifyUriVisited";
|
||||
static constexpr char signature[] =
|
||||
"(Ljava/lang/String;)V";
|
||||
static const bool isStatic = true;
|
||||
static const mozilla::jni::ExceptionMode exceptionMode =
|
||||
mozilla::jni::ExceptionMode::ABORT;
|
||||
};
|
||||
|
||||
struct NotifyWakeLockChanged_t {
|
||||
typedef GeckoAppShell Owner;
|
||||
typedef void ReturnType;
|
||||
|
|
Загрузка…
Ссылка в новой задаче