Bug 1416316 - 4. Update comments and bindings; r=me
MozReview-Commit-ID: 9CBe7Iej1D8
--- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/GeckoDisplay.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/GeckoDisplay.java
@@ -11,63 +11,61 @@ import android.view.Surface;
/**
* Displays implement this interface to provide GeckoSession
* with a Surface for displaying content.
*/
public interface GeckoDisplay {
/**
* Displays notify GeckoSession of changes to its Surface through this interface that
* GeckoSession implements. To ensure drawing only happens on a valid Surface,
- * GeckoSession will only use the provided Surface after
- * {@link #surfaceChanged(Surface, int, int) surfaceChanged} is called and
- * before {@link #surfaceDestroyed() surfaceDestroyed} returns.
+ * GeckoSession will only use the provided Surface after {@link
+ * #surfaceChanged(Surface, int, int)} is called and before {@link
+ * #surfaceDestroyed()} returns.
*/
interface Listener {
/**
- * The display's Surface has been created or changed. Must be called on the
- * application main thread. GeckoSession may block this call to ensure the Surface
- * is valid while resuming drawing.
+ * Required callback. The display's Surface has been created or changed. Must be
+ * called on the application main thread. GeckoSession may block this call to
+ * ensure the Surface is valid while resuming drawing.
*
* @param surface The new Surface.
* @param width New width of the Surface.
* @param height New height of the Surface.
*/
void surfaceChanged(Surface surface, int width, int height);
/**
- * The display's Surface has been destroyed. Must be called on the application
- * main thread. GeckoSession may block this call to ensure the Surface is valid
- * while pausing drawing.
+ * Required callback. The display's Surface has been destroyed. Must be called on
+ * the application main thread. GeckoSession may block this call to ensure the
+ * Surface is valid while pausing drawing.
*/
void surfaceDestroyed();
/**
- * The display's coordinates on the screen has changed. Must be called on the
- * application main thread.
+ * Optional callback. The display's coordinates on the screen has changed. Must be
+ * called on the application main thread.
*
* @param left The X coordinate of the display on the screen, in screen pixels.
* @param top The Y coordinate of the display on the screen, in screen pixels.
*/
void screenOriginChanged(int left, int top);
}
/**
* Get the current listener attached to this display. Must be called on the
* application main thread.
*
* @return Current listener or null if there is no listener.
*/
Listener getListener();
/**
- * Set a new listener attached to this display. Must be called on the
- * application main thread. When attaching a new listener, and there is an
- * existing valid Surface, the display must call {@link
- * Listener#screenOriginChanged(int, int) screenOriginChanged} and {@link
- * Listener#surfaceChanged(Surface, int, int) surfaceChanged} on the new
- * listener. Similarly, when detaching a previous listener, and there is an
- * existing valid Surface, the display must call {@link
- * Listener#surfaceDestroyed() surfaceDestroyed} on the previous listener.
+ * Set a new listener attached to this display. Must be called on the application main
+ * thread. When attaching a new listener, and there is an existing valid Surface, the
+ * display must call {@link Listener#surfaceChanged(Surface, int, int)} (and other
+ * optional callbacks, if implemented) on the new listener. Similarly, when detaching
+ * a previous listener, and there is an existing valid Surface, the display must call
+ * {@link Listener#surfaceDestroyed()} on the previous listener.
*
* @param listener New listener or null if detaching previous listener.
*/
void setListener(Listener listener);
}
--- a/mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerSession.java
+++ b/mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerSession.java
@@ -299,19 +299,19 @@ public class LayerSession {
ThreadUtils.assertOnUiThread();
getClientToSurfaceMatrix(matrix);
matrix.postTranslate(-mViewportLeft, -mViewportTop);
}
/**
* Get the bounds of the client area in client coordinates. The returned top-left
- * coordinates are always (0, 0). Use the matrix from
- * #getClientToSurfaceMatrix(Matrix) or #getClientToScreenMatrix(Matrix) to map
- * these bounds to surface or screen coordinates, respectively.
+ * coordinates are always (0, 0). Use the matrix from {@link
+ * #getClientToSurfaceMatrix(Matrix)} or {@link #getClientToScreenMatrix(Matrix)} to
+ * map these bounds to surface or screen coordinates, respectively.
*
* @param rect RectF to be replaced by the client bounds in client coordinates.
* @see getSurfaceBounds(Rect)
*/
public void getClientBounds(@NonNull final RectF rect) {
ThreadUtils.assertOnUiThread();
rect.set(0.0f, 0.0f, (float) mWidth / mViewportZoom,
--- a/widget/android/GeneratedJNINatives.h
+++ b/widget/android/GeneratedJNINatives.h
@@ -381,19 +381,19 @@ class LayerSession::Compositor::Natives
{
public:
static const JNINativeMethod methods[13];
};
template<class Impl>
const JNINativeMethod LayerSession::Compositor::Natives<Impl>::methods[] = {
- mozilla::jni::MakeNativeMethod<LayerSession::Compositor::AttachToJava_t>(
- mozilla::jni::NativeStub<LayerSession::Compositor::AttachToJava_t, Impl>
- ::template Wrap<&Impl::AttachToJava>),
+ mozilla::jni::MakeNativeMethod<LayerSession::Compositor::AttachNPZC_t>(
+ mozilla::jni::NativeStub<LayerSession::Compositor::AttachNPZC_t, Impl>
+ ::template Wrap<&Impl::AttachNPZC>),
mozilla::jni::MakeNativeMethod<LayerSession::Compositor::CreateCompositor_t>(
mozilla::jni::NativeStub<LayerSession::Compositor::CreateCompositor_t, Impl>
::template Wrap<&Impl::CreateCompositor>),
mozilla::jni::MakeNativeMethod<LayerSession::Compositor::DisposeNative_t>(
mozilla::jni::NativeStub<LayerSession::Compositor::DisposeNative_t, Impl>
::template Wrap<&Impl::DisposeNative>),
--- a/widget/android/GeneratedJNIWrappers.cpp
+++ b/widget/android/GeneratedJNIWrappers.cpp
@@ -1254,18 +1254,18 @@ auto GeckoSurfaceTexture::UpdateTexImage
}
const char LayerSession::name[] =
"org/mozilla/gecko/gfx/LayerSession";
const char LayerSession::Compositor::name[] =
"org/mozilla/gecko/gfx/LayerSession$Compositor";
-constexpr char LayerSession::Compositor::AttachToJava_t::name[];
-constexpr char LayerSession::Compositor::AttachToJava_t::signature[];
+constexpr char LayerSession::Compositor::AttachNPZC_t::name[];
+constexpr char LayerSession::Compositor::AttachNPZC_t::signature[];
constexpr char LayerSession::Compositor::CreateCompositor_t::name[];
constexpr char LayerSession::Compositor::CreateCompositor_t::signature[];
constexpr char LayerSession::Compositor::DisposeNative_t::name[];
constexpr char LayerSession::Compositor::DisposeNative_t::signature[];
constexpr char LayerSession::Compositor::EnableLayerUpdateNotifications_t::name[];
@@ -1285,16 +1285,24 @@ auto LayerSession::Compositor::OnComposi
constexpr char LayerSession::Compositor::OnCompositorDetached_t::name[];
constexpr char LayerSession::Compositor::OnCompositorDetached_t::signature[];
auto LayerSession::Compositor::OnCompositorDetached() const -> void
{
return mozilla::jni::Method<OnCompositorDetached_t>::Call(Compositor::mCtx, nullptr);
}
+constexpr char LayerSession::Compositor::OnSelectionCaretDrag_t::name[];
+constexpr char LayerSession::Compositor::OnSelectionCaretDrag_t::signature[];
+
+auto LayerSession::Compositor::OnSelectionCaretDrag(bool a0) const -> void
+{
+ return mozilla::jni::Method<OnSelectionCaretDrag_t>::Call(Compositor::mCtx, nullptr, a0);
+}
+
constexpr char LayerSession::Compositor::RecvScreenPixels_t::name[];
constexpr char LayerSession::Compositor::RecvScreenPixels_t::signature[];
auto LayerSession::Compositor::RecvScreenPixels(int32_t a0, int32_t a1, mozilla::jni::IntArray::Param a2) const -> void
{
return mozilla::jni::Method<RecvScreenPixels_t>::Call(Compositor::mCtx, nullptr, a0, a1, a2);
}
@@ -1325,16 +1333,32 @@ constexpr char LayerSession::Compositor:
constexpr char LayerSession::Compositor::SetPinned_t::signature[];
constexpr char LayerSession::Compositor::SyncPauseCompositor_t::name[];
constexpr char LayerSession::Compositor::SyncPauseCompositor_t::signature[];
constexpr char LayerSession::Compositor::SyncResumeResizeCompositor_t::name[];
constexpr char LayerSession::Compositor::SyncResumeResizeCompositor_t::signature[];
+constexpr char LayerSession::Compositor::UpdateOverscrollOffset_t::name[];
+constexpr char LayerSession::Compositor::UpdateOverscrollOffset_t::signature[];
+
+auto LayerSession::Compositor::UpdateOverscrollOffset(float a0, float a1) const -> void
+{
+ return mozilla::jni::Method<UpdateOverscrollOffset_t>::Call(Compositor::mCtx, nullptr, a0, a1);
+}
+
+constexpr char LayerSession::Compositor::UpdateOverscrollVelocity_t::name[];
+constexpr char LayerSession::Compositor::UpdateOverscrollVelocity_t::signature[];
+
+auto LayerSession::Compositor::UpdateOverscrollVelocity(float a0, float a1) const -> void
+{
+ return mozilla::jni::Method<UpdateOverscrollVelocity_t>::Call(Compositor::mCtx, nullptr, a0, a1);
+}
+
constexpr char LayerSession::Compositor::UpdateRootFrameMetrics_t::name[];
constexpr char LayerSession::Compositor::UpdateRootFrameMetrics_t::signature[];
auto LayerSession::Compositor::UpdateRootFrameMetrics(float a0, float a1, float a2) const -> void
{
return mozilla::jni::Method<UpdateRootFrameMetrics_t>::Call(Compositor::mCtx, nullptr, a0, a1, a2);
}
@@ -1347,45 +1371,37 @@ constexpr char LayerView::GetCompositor_
auto LayerView::GetCompositor() const -> mozilla::jni::Object::LocalRef
{
return mozilla::jni::Method<GetCompositor_t>::Call(LayerView::mCtx, nullptr);
}
const char NativePanZoomController::name[] =
"org/mozilla/gecko/gfx/NativePanZoomController";
-constexpr char NativePanZoomController::Destroy_t::name[];
-constexpr char NativePanZoomController::Destroy_t::signature[];
-
-auto NativePanZoomController::Destroy() const -> void
-{
- return mozilla::jni::Method<Destroy_t>::Call(NativePanZoomController::mCtx, nullptr);
-}
-
constexpr char NativePanZoomController::DisposeNative_t::name[];
constexpr char NativePanZoomController::DisposeNative_t::signature[];
constexpr char NativePanZoomController::HandleMotionEvent_t::name[];
constexpr char NativePanZoomController::HandleMotionEvent_t::signature[];
constexpr char NativePanZoomController::HandleMouseEvent_t::name[];
constexpr char NativePanZoomController::HandleMouseEvent_t::signature[];
constexpr char NativePanZoomController::HandleScrollEvent_t::name[];
constexpr char NativePanZoomController::HandleScrollEvent_t::signature[];
constexpr char NativePanZoomController::SetIsLongpressEnabled_t::name[];
constexpr char NativePanZoomController::SetIsLongpressEnabled_t::signature[];
-constexpr char NativePanZoomController::OnSelectionDragState_t::name[];
-constexpr char NativePanZoomController::OnSelectionDragState_t::signature[];
-
-auto NativePanZoomController::OnSelectionDragState(bool a0) const -> void
+constexpr char NativePanZoomController::SetAttached_t::name[];
+constexpr char NativePanZoomController::SetAttached_t::signature[];
+
+auto NativePanZoomController::SetAttached(bool a0) const -> void
{
- return mozilla::jni::Method<OnSelectionDragState_t>::Call(NativePanZoomController::mCtx, nullptr, a0);
+ return mozilla::jni::Method<SetAttached_t>::Call(NativePanZoomController::mCtx, nullptr, a0);
}
constexpr char NativePanZoomController::SynthesizeNativeMouseEvent_t::name[];
constexpr char NativePanZoomController::SynthesizeNativeMouseEvent_t::signature[];
auto NativePanZoomController::SynthesizeNativeMouseEvent(int32_t a0, int32_t a1, int32_t a2) const -> void
{
return mozilla::jni::Method<SynthesizeNativeMouseEvent_t>::Call(NativePanZoomController::mCtx, nullptr, a0, a1, a2);
@@ -1394,32 +1410,16 @@ auto NativePanZoomController::Synthesize
constexpr char NativePanZoomController::SynthesizeNativeTouchPoint_t::name[];
constexpr char NativePanZoomController::SynthesizeNativeTouchPoint_t::signature[];
auto NativePanZoomController::SynthesizeNativeTouchPoint(int32_t a0, int32_t a1, int32_t a2, int32_t a3, double a4, int32_t a5) const -> void
{
return mozilla::jni::Method<SynthesizeNativeTouchPoint_t>::Call(NativePanZoomController::mCtx, nullptr, a0, a1, a2, a3, a4, a5);
}
-constexpr char NativePanZoomController::UpdateOverscrollOffset_t::name[];
-constexpr char NativePanZoomController::UpdateOverscrollOffset_t::signature[];
-
-auto NativePanZoomController::UpdateOverscrollOffset(float a0, float a1) const -> void
-{
- return mozilla::jni::Method<UpdateOverscrollOffset_t>::Call(NativePanZoomController::mCtx, nullptr, a0, a1);
-}
-
-constexpr char NativePanZoomController::UpdateOverscrollVelocity_t::name[];
-constexpr char NativePanZoomController::UpdateOverscrollVelocity_t::signature[];
-
-auto NativePanZoomController::UpdateOverscrollVelocity(float a0, float a1) const -> void
-{
- return mozilla::jni::Method<UpdateOverscrollVelocity_t>::Call(NativePanZoomController::mCtx, nullptr, a0, a1);
-}
-
const char StackScroller::name[] =
"org/mozilla/gecko/gfx/StackScroller";
constexpr char StackScroller::New_t::name[];
constexpr char StackScroller::New_t::signature[];
auto StackScroller::New(mozilla::jni::Object::Param a0, StackScroller::LocalRef* a1) -> nsresult
{
--- a/widget/android/GeneratedJNIWrappers.h
+++ b/widget/android/GeneratedJNIWrappers.h
@@ -3809,23 +3809,23 @@ public:
class LayerSession::Compositor : public mozilla::jni::ObjectBase<Compositor>
{
public:
static const char name[];
explicit Compositor(const Context& ctx) : ObjectBase<Compositor>(ctx) {}
- struct AttachToJava_t {
+ struct AttachNPZC_t {
typedef Compositor Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
mozilla::jni::Object::Param> Args;
- static constexpr char name[] = "attachToJava";
+ static constexpr char name[] = "attachNPZC";
static constexpr char signature[] =
"(Lorg/mozilla/gecko/gfx/NativePanZoomController;)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 =
@@ -3941,16 +3941,36 @@ public:
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::UI;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto OnCompositorDetached() const -> void;
+ struct OnSelectionCaretDrag_t {
+ typedef Compositor Owner;
+ typedef void ReturnType;
+ typedef void SetterType;
+ typedef mozilla::jni::Args<
+ bool> Args;
+ static constexpr char name[] = "onSelectionCaretDrag";
+ static constexpr char signature[] =
+ "(Z)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::UI;
+ static const mozilla::jni::DispatchTarget dispatchTarget =
+ mozilla::jni::DispatchTarget::CURRENT;
+ };
+
+ auto OnSelectionCaretDrag(bool) const -> void;
+
struct RecvScreenPixels_t {
typedef Compositor Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t,
int32_t,
mozilla::jni::IntArray::Param> Args;
@@ -4130,16 +4150,58 @@ public:
static const mozilla::jni::ExceptionMode exceptionMode =
mozilla::jni::ExceptionMode::ABORT;
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::UI;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
+ struct UpdateOverscrollOffset_t {
+ typedef Compositor Owner;
+ typedef void ReturnType;
+ typedef void SetterType;
+ typedef mozilla::jni::Args<
+ float,
+ float> Args;
+ static constexpr char name[] = "updateOverscrollOffset";
+ static constexpr char signature[] =
+ "(FF)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::UI;
+ static const mozilla::jni::DispatchTarget dispatchTarget =
+ mozilla::jni::DispatchTarget::CURRENT;
+ };
+
+ auto UpdateOverscrollOffset(float, float) const -> void;
+
+ struct UpdateOverscrollVelocity_t {
+ typedef Compositor Owner;
+ typedef void ReturnType;
+ typedef void SetterType;
+ typedef mozilla::jni::Args<
+ float,
+ float> Args;
+ static constexpr char name[] = "updateOverscrollVelocity";
+ static constexpr char signature[] =
+ "(FF)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::UI;
+ static const mozilla::jni::DispatchTarget dispatchTarget =
+ mozilla::jni::DispatchTarget::CURRENT;
+ };
+
+ auto UpdateOverscrollVelocity(float, float) const -> void;
+
struct UpdateRootFrameMetrics_t {
typedef Compositor Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
float,
float,
float> Args;
@@ -4196,50 +4258,31 @@ public:
class NativePanZoomController : public mozilla::jni::ObjectBase<NativePanZoomController>
{
public:
static const char name[];
explicit NativePanZoomController(const Context& ctx) : ObjectBase<NativePanZoomController>(ctx) {}
- struct Destroy_t {
- typedef NativePanZoomController Owner;
- typedef void ReturnType;
- typedef void SetterType;
- typedef mozilla::jni::Args<> Args;
- static constexpr char name[] = "destroy";
- 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::UI;
- static const mozilla::jni::DispatchTarget dispatchTarget =
- mozilla::jni::DispatchTarget::CURRENT;
- };
-
- auto Destroy() const -> void;
-
struct DisposeNative_t {
typedef NativePanZoomController 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::UI;
static const mozilla::jni::DispatchTarget dispatchTarget =
- mozilla::jni::DispatchTarget::GECKO_PRIORITY;
+ mozilla::jni::DispatchTarget::GECKO;
};
struct HandleMotionEvent_t {
typedef NativePanZoomController Owner;
typedef bool ReturnType;
typedef bool SetterType;
typedef mozilla::jni::Args<
int32_t,
@@ -4324,52 +4367,52 @@ public:
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 OnSelectionDragState_t {
+ struct SetAttached_t {
typedef NativePanZoomController Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
bool> Args;
- static constexpr char name[] = "onSelectionDragState";
+ static constexpr char name[] = "setAttached";
static constexpr char signature[] =
"(Z)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;
- };
-
- auto OnSelectionDragState(bool) const -> void;
+ mozilla::jni::CallingThread::UI;
+ static const mozilla::jni::DispatchTarget dispatchTarget =
+ mozilla::jni::DispatchTarget::CURRENT;
+ };
+
+ auto SetAttached(bool) const -> void;
struct SynthesizeNativeMouseEvent_t {
typedef NativePanZoomController Owner;
typedef void ReturnType;
typedef void SetterType;
typedef mozilla::jni::Args<
int32_t,
int32_t,
int32_t> Args;
static constexpr char name[] = "synthesizeNativeMouseEvent";
static constexpr char signature[] =
"(III)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;
+ mozilla::jni::CallingThread::UI;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto SynthesizeNativeMouseEvent(int32_t, int32_t, int32_t) const -> void;
struct SynthesizeNativeTouchPoint_t {
typedef NativePanZoomController Owner;
@@ -4384,65 +4427,23 @@ public:
int32_t> Args;
static constexpr char name[] = "synthesizeNativeTouchPoint";
static constexpr char signature[] =
"(IIIIDI)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;
+ mozilla::jni::CallingThread::UI;
static const mozilla::jni::DispatchTarget dispatchTarget =
mozilla::jni::DispatchTarget::CURRENT;
};
auto SynthesizeNativeTouchPoint(int32_t, int32_t, int32_t, int32_t, double, int32_t) const -> void;
- struct UpdateOverscrollOffset_t {
- typedef NativePanZoomController Owner;
- typedef void ReturnType;
- typedef void SetterType;
- typedef mozilla::jni::Args<
- float,
- float> Args;
- static constexpr char name[] = "updateOverscrollOffset";
- static constexpr char signature[] =
- "(FF)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;
- };
-
- auto UpdateOverscrollOffset(float, float) const -> void;
-
- struct UpdateOverscrollVelocity_t {
- typedef NativePanZoomController Owner;
- typedef void ReturnType;
- typedef void SetterType;
- typedef mozilla::jni::Args<
- float,
- float> Args;
- static constexpr char name[] = "updateOverscrollVelocity";
- static constexpr char signature[] =
- "(FF)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;
- };
-
- auto UpdateOverscrollVelocity(float, float) const -> void;
-
static const mozilla::jni::CallingThread callingThread =
mozilla::jni::CallingThread::ANY;
template<class Impl> class Natives;
};
class StackScroller : public mozilla::jni::ObjectBase<StackScroller>
{