Remove mouse event code from IPDFSDK_AnnotHandler.

Add the equivalent methods to CPDFSDK_Annot instead. Then make the
IPDFSDK_AnnotHandler overrides CPDFSDK_Annot overrides, and remove the
pass-through via CPDFSDK_AnnotHandlerMgr.

Also just delete IPDFSDK_AnnotHandler::OnRButtonDblClk(), which has no
callers.

Change-Id: Idffd84296628e34d62b7020535227cf97564380d
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/92331
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/fpdfsdk/cpdfsdk_widget.h b/fpdfsdk/cpdfsdk_widget.h
index a1d1ffb..321f41f 100644
--- a/fpdfsdk/cpdfsdk_widget.h
+++ b/fpdfsdk/cpdfsdk_widget.h
@@ -137,6 +137,25 @@
   CFX_Color GetFillPWLColor() const;
 
  private:
+  // CPDFSDK_Annot::UnsafeInputHandlers:
+  void OnMouseEnter(Mask<FWL_EVENTFLAG> nFlags) override;
+  void OnMouseExit(Mask<FWL_EVENTFLAG> nFlags) override;
+  bool OnLButtonDown(Mask<FWL_EVENTFLAG> nFlags,
+                     const CFX_PointF& point) override;
+  bool OnLButtonUp(Mask<FWL_EVENTFLAG> nFlags,
+                   const CFX_PointF& point) override;
+  bool OnLButtonDblClk(Mask<FWL_EVENTFLAG> nFlags,
+                       const CFX_PointF& point) override;
+  bool OnMouseMove(Mask<FWL_EVENTFLAG> nFlags,
+                   const CFX_PointF& point) override;
+  bool OnMouseWheel(Mask<FWL_EVENTFLAG> nFlags,
+                    const CFX_PointF& point,
+                    const CFX_Vector& delta) override;
+  bool OnRButtonDown(Mask<FWL_EVENTFLAG> nFlags,
+                     const CFX_PointF& point) override;
+  bool OnRButtonUp(Mask<FWL_EVENTFLAG> nFlags,
+                   const CFX_PointF& point) override;
+
   CFFL_InteractiveFormFiller* GetInteractiveFormFiller();
 
 #ifdef PDF_ENABLE_XFA