summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_annothandlermgr.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-04 20:59:40 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-04 20:59:40 +0000
commitce6eb642dbaf96fc2a9d4e97a205a0a12e7154a4 (patch)
tree57f218f05a38bc0ebf93f295bffa24a4d3a610f9 /fpdfsdk/cpdfsdk_annothandlermgr.cpp
parentd8ac668fad0211b5d8055866f835d38315d5dabb (diff)
downloadpdfium-ce6eb642dbaf96fc2a9d4e97a205a0a12e7154a4.tar.xz
CPDFSDK_AnnotHandlerMgr::Annot_OnCreate() is not called.
Also Annot_OnLButtonDblClk() and Annot_OnKeyUp(). Change-Id: I0a5984fc89f73f507af520c5cf5afb115b1886ce Reviewed-on: https://pdfium-review.googlesource.com/c/43490 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/cpdfsdk_annothandlermgr.cpp')
-rw-r--r--fpdfsdk/cpdfsdk_annothandlermgr.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/fpdfsdk/cpdfsdk_annothandlermgr.cpp b/fpdfsdk/cpdfsdk_annothandlermgr.cpp
index 15ebfaacb4..0d1359512e 100644
--- a/fpdfsdk/cpdfsdk_annothandlermgr.cpp
+++ b/fpdfsdk/cpdfsdk_annothandlermgr.cpp
@@ -63,15 +63,6 @@ void CPDFSDK_AnnotHandlerMgr::ReleaseAnnot(CPDFSDK_Annot* pAnnot) {
pAnnotHandler->ReleaseAnnot(pAnnot);
}
-void CPDFSDK_AnnotHandlerMgr::Annot_OnCreate(CPDFSDK_Annot* pAnnot) {
- CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot();
-
- CPDFSDK_DateTime curTime;
- pPDFAnnot->GetAnnotDict()->SetNewFor<CPDF_String>(
- "M", curTime.ToPDFDateTimeString(), false);
- pPDFAnnot->GetAnnotDict()->SetNewFor<CPDF_Number>("F", 0);
-}
-
void CPDFSDK_AnnotHandlerMgr::Annot_OnLoad(CPDFSDK_Annot* pAnnot) {
ASSERT(pAnnot);
GetAnnotHandler(pAnnot)->OnLoad(pAnnot);
@@ -155,16 +146,6 @@ bool CPDFSDK_AnnotHandlerMgr::Annot_OnLButtonUp(
->OnLButtonUp(pPageView, pAnnot, nFlags, point);
}
-bool CPDFSDK_AnnotHandlerMgr::Annot_OnLButtonDblClk(
- CPDFSDK_PageView* pPageView,
- CPDFSDK_Annot::ObservedPtr* pAnnot,
- uint32_t nFlags,
- const CFX_PointF& point) {
- ASSERT(*pAnnot);
- return GetAnnotHandler(pAnnot->Get())
- ->OnLButtonDblClk(pPageView, pAnnot, nFlags, point);
-}
-
bool CPDFSDK_AnnotHandlerMgr::Annot_OnMouseMove(
CPDFSDK_PageView* pPageView,
CPDFSDK_Annot::ObservedPtr* pAnnot,
@@ -250,12 +231,6 @@ bool CPDFSDK_AnnotHandlerMgr::Annot_OnKeyDown(CPDFSDK_Annot* pAnnot,
return GetAnnotHandler(pAnnot)->OnKeyDown(pAnnot, nKeyCode, nFlag);
}
-bool CPDFSDK_AnnotHandlerMgr::Annot_OnKeyUp(CPDFSDK_Annot* pAnnot,
- int nKeyCode,
- int nFlag) {
- return false;
-}
-
bool CPDFSDK_AnnotHandlerMgr::Annot_OnSetFocus(
CPDFSDK_Annot::ObservedPtr* pAnnot,
uint32_t nFlag) {