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_GeckoResultWrappers_h
#define mozilla_java_GeckoResultWrappers_h
#ifndef MOZ_PREPROCESSOR
#include "mozilla/jni/Refs.h"
#endif
namespace mozilla {
namespace java {
class GeckoResult : public mozilla::jni::ObjectBase<GeckoResult>
{
public:
static constexpr char name[] =
"org/mozilla/geckoview/GeckoResult";
explicit GeckoResult(const Context& ctx) : ObjectBase<GeckoResult>(ctx) {}
class GeckoCallback;
struct New_t {
typedef GeckoResult Owner;
typedef GeckoResult::LocalRef ReturnType;
typedef GeckoResult::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;
};
// GeckoResult()
static auto New() -> GeckoResult::LocalRef;
struct Complete_t {
typedef GeckoResult Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "complete";
static constexpr char signature[] =
"(Ljava/lang/Object;)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 complete(Object)
auto Complete(mozilla::jni::Object::Param) const -> void;
struct CompleteExceptionally_t {
typedef GeckoResult Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Throwable::Param> Args;
static constexpr char name[] = "completeExceptionally";
static constexpr char signature[] =
"(Ljava/lang/Throwable;)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 completeExceptionally(Throwable)
auto CompleteExceptionally(mozilla::jni::Throwable::Param) const -> void;
struct FromException_t {
typedef GeckoResult Owner;
typedef GeckoResult::LocalRef ReturnType;
typedef GeckoResult::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Throwable::Param> Args;
static constexpr char name[] = "fromException";
static constexpr char signature[] =
"(Ljava/lang/Throwable;)Lorg/mozilla/geckoview/GeckoResult;";
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 GeckoResult fromException(Throwable)
static auto FromException(mozilla::jni::Throwable::Param) -> GeckoResult::LocalRef;
struct FromValue_t {
typedef GeckoResult Owner;
typedef GeckoResult::LocalRef ReturnType;
typedef GeckoResult::Param SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "fromValue";
static constexpr char signature[] =
"(Ljava/lang/Object;)Lorg/mozilla/geckoview/GeckoResult;";
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 GeckoResult fromValue(Object)
static auto FromValue(mozilla::jni::Object::Param) -> GeckoResult::LocalRef;
struct NativeThen_t {
typedef GeckoResult Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param,
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "nativeThen";
static constexpr char signature[] =
"(Lorg/mozilla/geckoview/GeckoResult$GeckoCallback;Lorg/mozilla/geckoview/GeckoResult$GeckoCallback;)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 nativeThen(GeckoCallback, GeckoCallback)
auto NativeThen(mozilla::jni::Object::Param, mozilla::jni::Object::Param) const -> void;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
};
class GeckoResult::GeckoCallback : public mozilla::jni::ObjectBase<GeckoCallback>
{
public:
static constexpr char name[] =
"org/mozilla/geckoview/GeckoResult$GeckoCallback";
explicit GeckoCallback(const Context& ctx) : ObjectBase<GeckoCallback>(ctx) {}
struct New_t {
typedef GeckoCallback Owner;
typedef GeckoCallback::LocalRef ReturnType;
typedef GeckoCallback::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;
};
// GeckoCallback()
static auto New() -> GeckoCallback::LocalRef;
// Suggested header signature for native method:
// void Call(mozilla::jni::Object::Param);
struct Call_t {
typedef GeckoCallback Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
static constexpr char name[] = "call";
static constexpr char signature[] =
"(Ljava/lang/Object;)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 GeckoCallback 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;
};
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
template<class Impl> class Natives;
};
} /* java */
} /* mozilla */
#endif // mozilla_java_GeckoResultWrappers_h