Copy as Markdown
Other Tools
// GENERATED CODE
// Generated by the Java program at /build/annotationProcessors at compile time
// from annotations on Java methods. To update, change the annotations on the
// corresponding Java methods and rerun the build. Manually updating this file
// will cause your build to fail.
#ifndef mozilla_java_GeckoRuntimeWrappers_h
#define mozilla_java_GeckoRuntimeWrappers_h
#ifndef MOZ_PREPROCESSOR
#include "mozilla/jni/Refs.h"
#endif
namespace mozilla {
namespace java {
class GeckoRuntime : public mozilla::jni::ObjectBase<GeckoRuntime>
{
public:
static constexpr char name[] =
"org/mozilla/geckoview/GeckoRuntime";
explicit GeckoRuntime(const Context& ctx) : ObjectBase<GeckoRuntime>(ctx) {}
struct GetInstance_t {
typedef GeckoRuntime Owner;
typedef GeckoRuntime::LocalRef ReturnType;
typedef GeckoRuntime::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getInstance";
static constexpr char signature[] =
"()Lorg/mozilla/geckoview/GeckoRuntime;";
static const bool isStatic = true;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// static GeckoRuntime getInstance()
static auto GetInstance() -> GeckoRuntime::LocalRef;
struct GetWebNotificationDelegate_t {
typedef GeckoRuntime Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "getWebNotificationDelegate";
static constexpr char signature[] =
"()Lorg/mozilla/geckoview/WebNotificationDelegate;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// WebNotificationDelegate getWebNotificationDelegate()
auto GetWebNotificationDelegate() const -> mozilla::jni::Object::LocalRef;
struct LockScreenOrientation_t {
typedef GeckoRuntime Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<
int32_t> Args;
static constexpr char name[] = "lockScreenOrientation";
static constexpr char signature[] =
"(I)Lorg/mozilla/geckoview/GeckoResult;";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::GECKO;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// GeckoResult lockScreenOrientation(int)
auto LockScreenOrientation(int32_t) const -> mozilla::jni::Object::LocalRef;
struct NotifyOnClose_t {
typedef GeckoRuntime Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "notifyOnClose";
static constexpr char signature[] =
"(Lorg/mozilla/geckoview/WebNotification;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void notifyOnClose(WebNotification)
auto NotifyOnClose(mozilla::jni::Object::Param) const -> void;
struct NotifyOnShow_t {
typedef GeckoRuntime Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "notifyOnShow";
static constexpr char signature[] =
"(Lorg/mozilla/geckoview/WebNotification;)V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void notifyOnShow(WebNotification)
auto NotifyOnShow(mozilla::jni::Object::Param) const -> void;
struct TextScaleFactor_t {
typedef GeckoRuntime Owner;
typedef float ReturnType;
typedef float SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "textScaleFactor";
static constexpr char signature[] =
"()F";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// float textScaleFactor()
auto TextScaleFactor() const -> float;
struct UnlockScreenOrientation_t {
typedef GeckoRuntime Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "unlockScreenOrientation";
static constexpr char signature[] =
"()V";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::GECKO;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void unlockScreenOrientation()
auto UnlockScreenOrientation() const -> void;
struct UsesDarkTheme_t {
typedef GeckoRuntime Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "usesDarkTheme";
static constexpr char signature[] =
"()Z";
static const bool isStatic = false;
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// boolean usesDarkTheme()
auto UsesDarkTheme() const -> bool;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
} /* java */
} /* mozilla */
#endif // mozilla_java_GeckoRuntimeWrappers_h