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

Side by Side Diff: fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h

Issue 1758553003: Trigger page view event when re-layout is finished (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | fpdfsdk/include/fsdk_mgr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ 7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_
8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ 8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_
9 9
10 #include <vector> 10 #include <vector>
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 CFX_WideString& csSubject, 201 CFX_WideString& csSubject,
202 CFX_WideString& csMsg); 202 CFX_WideString& csMsg);
203 FX_BOOL _ExportSubmitFile(FPDF_FILEHANDLER* ppFileHandler, 203 FX_BOOL _ExportSubmitFile(FPDF_FILEHANDLER* ppFileHandler,
204 int fileType, 204 int fileType,
205 FPDF_DWORD encodeType, 205 FPDF_DWORD encodeType,
206 FPDF_DWORD flag = 0x01111111); 206 FPDF_DWORD flag = 0x01111111);
207 void _ToXFAContentFlags(CFX_WideString csSrcContent, FPDF_DWORD& flag); 207 void _ToXFAContentFlags(CFX_WideString csSrcContent, FPDF_DWORD& flag);
208 void _ClearChangeMark(); 208 void _ClearChangeMark();
209 209
210 private: 210 private:
211 enum LoadStatus {
212 FXFA_LOADSTATUS_PRELOAD = 0,
213 FXFA_LOADSTATUS_LOADING,
214 FXFA_LOADSTATUS_LOADED,
215 FXFA_LOADSTATUS_CLOSING,
216 FXFA_LOADSTATUS_CLOSED
217 };
211 void CloseXFADoc(IXFA_DocHandler* pDoc) { 218 void CloseXFADoc(IXFA_DocHandler* pDoc) {
212 if (pDoc) { 219 if (pDoc) {
213 pDoc->CloseDoc(m_pXFADoc); 220 pDoc->CloseDoc(m_pXFADoc);
214 pDoc->ReleaseDoc(m_pXFADoc); 221 pDoc->ReleaseDoc(m_pXFADoc);
215 m_pXFADoc = NULL; 222 m_pXFADoc = NULL;
216 m_pXFADocView = NULL; 223 m_pXFADocView = NULL;
217 } 224 }
218 } 225 }
219 226
220 int m_iDocType; 227 int m_iDocType;
221 CPDF_Document* m_pPDFDoc; 228 CPDF_Document* m_pPDFDoc;
222 CPDFSDK_Document* m_pSDKDoc; 229 CPDFSDK_Document* m_pSDKDoc;
223 IXFA_Doc* m_pXFADoc; 230 IXFA_Doc* m_pXFADoc;
224 IXFA_DocView* m_pXFADocView; 231 IXFA_DocView* m_pXFADocView;
225 CPDFXFA_App* m_pApp; 232 CPDFXFA_App* m_pApp;
226 IJS_Context* m_pJSContext; 233 IJS_Context* m_pJSContext;
227 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; 234 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList;
235 LoadStatus m_nLoadStatus;
236 int m_nPageCount;
228 }; 237 };
229 238
230 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ 239 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/include/fsdk_mgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698