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_XPCOMEventTargetWrappers_h
#define mozilla_java_XPCOMEventTargetWrappers_h
#ifndef MOZ_PREPROCESSOR
#include "mozilla/jni/Refs.h"
#endif
namespace mozilla {
namespace java {
class XPCOMEventTarget : public mozilla::jni::ObjectBase<XPCOMEventTarget>
{
public:
static constexpr char name[] =
"org/mozilla/gecko/util/XPCOMEventTarget";
explicit XPCOMEventTarget(const Context& ctx) : ObjectBase<XPCOMEventTarget>(ctx) {}
class JNIRunnable;
struct New_t {
typedef XPCOMEventTarget Owner;
typedef XPCOMEventTarget::LocalRef ReturnType;
typedef XPCOMEventTarget::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "<init>";
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::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// XPCOMEventTarget()
static auto New() -> XPCOMEventTarget::LocalRef;
struct AssertNotOnLauncherThread_t {
typedef XPCOMEventTarget Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "assertNotOnLauncherThread";
static constexpr char signature[] =
"()V";
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 void assertNotOnLauncherThread()
static auto AssertNotOnLauncherThread() -> void;
struct AssertOnLauncherThread_t {
typedef XPCOMEventTarget Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "assertOnLauncherThread";
static constexpr char signature[] =
"()V";
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 void assertOnLauncherThread()
static auto AssertOnLauncherThread() -> void;
// Suggested header signature for native method:
// void DispatchNative(mozilla::java::XPCOMEventTarget::JNIRunnable::Param);
struct DispatchNative_t {
typedef XPCOMEventTarget Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "dispatchNative";
static constexpr char signature[] =
"(Lorg/mozilla/gecko/util/XPCOMEventTarget$JNIRunnable;)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;
};
// Suggested header signature for native method:
// void DisposeNative();
struct DisposeNative_t {
typedef XPCOMEventTarget Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "disposeNative";
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::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
struct Execute_t {
typedef XPCOMEventTarget Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "execute";
static constexpr char signature[] =
"(Ljava/lang/Runnable;)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 execute(Runnable)
auto Execute(mozilla::jni::Object::Param) const -> void;
struct GetTarget_t {
typedef XPCOMEventTarget Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param> Args;
static constexpr char name[] = "getTarget";
static constexpr char signature[] =
"(Ljava/lang/String;)Lorg/mozilla/gecko/util/IXPCOMEventTarget;";
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 IXPCOMEventTarget getTarget(String)
static auto GetTarget(mozilla::jni::String::Param) -> mozilla::jni::Object::LocalRef;
// Suggested header signature for native method:
// bool IsOnCurrentThread();
struct IsOnCurrentThread_t {
typedef XPCOMEventTarget Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "isOnCurrentThread";
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;
};
struct LauncherThread_t {
typedef XPCOMEventTarget Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "launcherThread";
static constexpr char signature[] =
"()Lorg/mozilla/gecko/util/IXPCOMEventTarget;";
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 IXPCOMEventTarget launcherThread()
static auto LauncherThread() -> mozilla::jni::Object::LocalRef;
struct MainThread_t {
typedef XPCOMEventTarget Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mainThread";
static constexpr char signature[] =
"()Lorg/mozilla/gecko/util/IXPCOMEventTarget;";
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 IXPCOMEventTarget mainThread()
static auto MainThread() -> mozilla::jni::Object::LocalRef;
struct ResolveAndDispatch_t {
typedef XPCOMEventTarget Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "resolveAndDispatch";
static constexpr char signature[] =
"(Ljava/lang/String;Ljava/lang/Runnable;)V";
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 void resolveAndDispatch(String, Runnable)
static auto ResolveAndDispatch(mozilla::jni::String::Param, mozilla::jni::Object::Param) -> void;
// Suggested header signature for native method:
// static void ResolveAndDispatchNative(mozilla::jni::String::Param, mozilla::jni::Object::Param);
struct ResolveAndDispatchNative_t {
typedef XPCOMEventTarget Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "resolveAndDispatchNative";
static constexpr char signature[] =
"(Ljava/lang/String;Ljava/lang/Runnable;)V";
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;
};
struct RunOnLauncherThread_t {
typedef XPCOMEventTarget Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "runOnLauncherThread";
static constexpr char signature[] =
"(Ljava/lang/Runnable;)V";
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 void runOnLauncherThread(Runnable)
static auto RunOnLauncherThread(mozilla::jni::Object::Param) -> void;
struct SetTarget_t {
typedef XPCOMEventTarget Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::String::Param,
XPCOMEventTarget::Param> Args;
static constexpr char name[] = "setTarget";
static constexpr char signature[] =
"(Ljava/lang/String;Lorg/mozilla/gecko/util/XPCOMEventTarget;)V";
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 void setTarget(String, XPCOMEventTarget)
static auto SetTarget(mozilla::jni::String::Param, XPCOMEventTarget::Param) -> void;
struct MLauncherThread_t {
typedef XPCOMEventTarget Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mLauncherThread";
static constexpr char signature[] =
"Lorg/mozilla/gecko/util/IXPCOMEventTarget;";
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 auto MLauncherThread() -> mozilla::jni::Object::LocalRef;
static auto MLauncherThread(mozilla::jni::Object::Param) -> void;
struct MMainThread_t {
typedef XPCOMEventTarget Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mMainThread";
static constexpr char signature[] =
"Lorg/mozilla/gecko/util/IXPCOMEventTarget;";
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 auto MMainThread() -> mozilla::jni::Object::LocalRef;
static auto MMainThread(mozilla::jni::Object::Param) -> void;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
template<class Impl> class Natives;
};
class XPCOMEventTarget::JNIRunnable : public mozilla::jni::ObjectBase<JNIRunnable>
{
public:
static constexpr char name[] =
"org/mozilla/gecko/util/XPCOMEventTarget$JNIRunnable";
explicit JNIRunnable(const Context& ctx) : ObjectBase<JNIRunnable>(ctx) {}
struct New_t {
typedef JNIRunnable Owner;
typedef JNIRunnable::LocalRef ReturnType;
typedef JNIRunnable::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "<init>";
static constexpr char signature[] =
"(Ljava/lang/Runnable;)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;
};
// JNIRunnable(Runnable)
static auto New(mozilla::jni::Object::Param) -> JNIRunnable::LocalRef;
struct Run_t {
typedef JNIRunnable Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "run";
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::ANY;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
// void run()
auto Run() const -> void;
struct MInner_t {
typedef JNIRunnable Owner;
typedef mozilla::jni::Object::LocalRef ReturnType;
typedef mozilla::jni::Object::Param SetterType;
typedef mozilla::jni::Args<> Args;
static constexpr char name[] = "mInner";
static constexpr char signature[] =
"Ljava/lang/Runnable;";
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;
};
auto MInner() const -> mozilla::jni::Object::LocalRef;
auto MInner(mozilla::jni::Object::Param) const -> void;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
} /* java */
} /* mozilla */
#endif // mozilla_java_XPCOMEventTargetWrappers_h