Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2377)

Unified Diff: fpdfsdk/include/fsdk_mgr.h

Issue 1712763003: Hook up FFI_PageEvent. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | public/fpdf_formfill.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/include/fsdk_mgr.h
diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h
index b6944ec80ba47ff2f8077c43f1f7da6076fabd9d..1e2620a19227482da2ad2fc326821428e9937e62 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
« no previous file with comments | « no previous file | public/fpdf_formfill.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698