summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/fpdfxfa
diff options
context:
space:
mode:
authorjinming_wang <jinming_wang@foxitsoftware.com>2016-03-18 16:35:40 +0800
committerjinming_wang <jinming_wang@foxitsoftware.com>2016-03-18 16:35:40 +0800
commita1cef70c08a16e2b9d7ec14987a8b20660d83534 (patch)
treebaf5d5e71a2d33fca8793288e97e77a28a00f6ac /fpdfsdk/include/fpdfxfa
parent900323a8857ce0d9f6a57e535cd864b0f649bb9c (diff)
downloadpdfium-a1cef70c08a16e2b9d7ec14987a8b20660d83534.tar.xz
Trigger page view event when re-layout is finished
BUG=pdfium:401 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1758553003 .
Diffstat (limited to 'fpdfsdk/include/fpdfxfa')
-rw-r--r--fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h b/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h
index 55310e5615..5186fe51ab 100644
--- a/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h
+++ b/fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h
@@ -204,6 +204,13 @@ class CPDFXFA_Document : public IXFA_DocProvider {
void _ClearChangeMark();
private:
+ enum LoadStatus {
+ FXFA_LOADSTATUS_PRELOAD = 0,
+ FXFA_LOADSTATUS_LOADING,
+ FXFA_LOADSTATUS_LOADED,
+ FXFA_LOADSTATUS_CLOSING,
+ FXFA_LOADSTATUS_CLOSED
+ };
void CloseXFADoc(IXFA_DocHandler* pDoc) {
if (pDoc) {
pDoc->CloseDoc(m_pXFADoc);
@@ -221,6 +228,8 @@ class CPDFXFA_Document : public IXFA_DocProvider {
CPDFXFA_App* m_pApp;
IJS_Context* m_pJSContext;
CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList;
+ LoadStatus m_nLoadStatus;
+ int m_nPageCount;
};
#endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_