From 84e5a12f186a00bf37a26cc13965f65c25561bd1 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 19 Feb 2016 14:25:10 -0800 Subject: Hook up FFI_PageEvent. BUG=pdfium:401 R=jun_fang@foxitsoftware.com, tsepez@chromium.org Review URL: https://codereview.chromium.org/1712763003 . --- fpdfsdk/include/fsdk_mgr.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'fpdfsdk/include/fsdk_mgr.h') diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h index b6944ec80b..1e2620a192 100644 --- a/fpdfsdk/include/fsdk_mgr.h +++ b/fpdfsdk/include/fsdk_mgr.h @@ -232,8 +232,6 @@ class CPDFDoc_Environment final { wsURL = CFX_WideString(); } - void FFI_PageEvent(FPDF_PAGE page, FPDF_DWORD flag) {} - void FFI_GetPageViewRect(FPDF_PAGE page, FS_RECTF& dstRect) { if (m_pInfo && m_pInfo->FFI_GetPageViewRect) { double left; @@ -405,9 +403,10 @@ class CPDFDoc_Environment final { } return L""; } - void FFI_PageEvent(int iPageIndex, int iEventType) const { - // Todo: call a call-back function when it's implemented - // in applicaiton's side. + + void FFI_PageEvent(int iPageIndex, FX_DWORD dwEventType) const { + if (m_pInfo && m_pInfo->FFI_PageEvent) + m_pInfo->FFI_PageEvent(m_pInfo, iPageIndex, dwEventType); } #endif // PDF_ENABLE_XFA -- cgit v1.2.3