diff --git a/widget/android/GeneratedJNINatives.h b/widget/android/GeneratedJNINatives.h index 5e6db3bccaad..1a1c581d037d 100644 --- a/widget/android/GeneratedJNINatives.h +++ b/widget/android/GeneratedJNINatives.h @@ -155,6 +155,21 @@ const JNINativeMethod GeckoNetworkManager::Natives::methods[] = { ::template Wrap<&Impl::OnStatusChanged>) }; +template +class GeckoScreenOrientation::Natives : public mozilla::jni::NativeImpl +{ +public: + static const JNINativeMethod methods[1]; +}; + +template +const JNINativeMethod GeckoScreenOrientation::Natives::methods[] = { + + mozilla::jni::MakeNativeMethod( + mozilla::jni::NativeStub + ::template Wrap<&Impl::OnOrientationChange>) +}; + template class GeckoSmsManager::Natives : public mozilla::jni::NativeImpl { diff --git a/widget/android/GeneratedJNIWrappers.cpp b/widget/android/GeneratedJNIWrappers.cpp index a47b6bfd0f8b..2b164691bde5 100644 --- a/widget/android/GeneratedJNIWrappers.cpp +++ b/widget/android/GeneratedJNIWrappers.cpp @@ -915,6 +915,12 @@ constexpr char GeckoNetworkManager::OnConnectionChanged_t::signature[]; constexpr char GeckoNetworkManager::OnStatusChanged_t::name[]; constexpr char GeckoNetworkManager::OnStatusChanged_t::signature[]; +const char GeckoScreenOrientation::name[] = + "org/mozilla/gecko/GeckoScreenOrientation"; + +constexpr char GeckoScreenOrientation::OnOrientationChange_t::name[]; +constexpr char GeckoScreenOrientation::OnOrientationChange_t::signature[]; + const char GeckoSmsManager::name[] = "org/mozilla/gecko/GeckoSmsManager"; diff --git a/widget/android/GeneratedJNIWrappers.h b/widget/android/GeneratedJNIWrappers.h index 8f3639558d70..67fe8ac8ea9e 100644 --- a/widget/android/GeneratedJNIWrappers.h +++ b/widget/android/GeneratedJNIWrappers.h @@ -2095,6 +2095,33 @@ public: template class Natives; }; +class GeckoScreenOrientation : public mozilla::jni::ObjectBase +{ +public: + static const char name[]; + + explicit GeckoScreenOrientation(const Context& ctx) : ObjectBase(ctx) {} + + struct OnOrientationChange_t { + typedef GeckoScreenOrientation Owner; + typedef void ReturnType; + typedef void SetterType; + typedef mozilla::jni::Args< + int16_t, + int16_t> Args; + static constexpr char name[] = "onOrientationChange"; + static constexpr char signature[] = + "(SS)V"; + static const bool isStatic = true; + static const mozilla::jni::ExceptionMode exceptionMode = + mozilla::jni::ExceptionMode::ABORT; + }; + + static const bool isMultithreaded = false; + + template class Natives; +}; + class GeckoSmsManager : public mozilla::jni::ObjectBase { public: