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

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

Issue 1857893002: Cleanup the FF Handler proxy methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « fpdfsdk/fsdk_baseform.cpp ('k') | xfa.gyp » ('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>
11 11
12 #include "public/fpdfview.h" 12 #include "public/fpdfview.h"
13 #include "xfa/include/fxfa/fxfa.h" 13 #include "xfa/include/fxfa/fxfa.h"
14 #include "xfa/include/fxfa/xfa_ffdoc.h"
14 #include "xfa/include/fxfa/xfa_ffdochandler.h" 15 #include "xfa/include/fxfa/xfa_ffdochandler.h"
15 16
16 class CPDFXFA_App; 17 class CPDFXFA_App;
17 class CPDFXFA_Document; 18 class CPDFXFA_Document;
18 class CPDFXFA_Page; 19 class CPDFXFA_Page;
19 class CPDFSDK_Document; 20 class CPDFSDK_Document;
20 class CPDFDoc_Environment; 21 class CPDFDoc_Environment;
21 class IJS_Runtime; 22 class IJS_Runtime;
22 class IJS_Context; 23 class IJS_Context;
23 class CXFA_FFDocHandler; 24 class CXFA_FFDocHandler;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void _ClearChangeMark(); 206 void _ClearChangeMark();
206 207
207 private: 208 private:
208 enum LoadStatus { 209 enum LoadStatus {
209 FXFA_LOADSTATUS_PRELOAD = 0, 210 FXFA_LOADSTATUS_PRELOAD = 0,
210 FXFA_LOADSTATUS_LOADING, 211 FXFA_LOADSTATUS_LOADING,
211 FXFA_LOADSTATUS_LOADED, 212 FXFA_LOADSTATUS_LOADED,
212 FXFA_LOADSTATUS_CLOSING, 213 FXFA_LOADSTATUS_CLOSING,
213 FXFA_LOADSTATUS_CLOSED 214 FXFA_LOADSTATUS_CLOSED
214 }; 215 };
216
215 void CloseXFADoc(CXFA_FFDocHandler* pDoc) { 217 void CloseXFADoc(CXFA_FFDocHandler* pDoc) {
216 if (pDoc) { 218 if (pDoc) {
217 pDoc->CloseDoc(m_pXFADoc); 219 m_pXFADoc->CloseDoc();
218 pDoc->ReleaseDoc(m_pXFADoc); 220 delete m_pXFADoc;
219 m_pXFADoc = NULL; 221 m_pXFADoc = nullptr;
220 m_pXFADocView = NULL; 222 m_pXFADocView = nullptr;
221 } 223 }
222 } 224 }
223 225
224 int m_iDocType; 226 int m_iDocType;
225 CPDF_Document* m_pPDFDoc; 227 CPDF_Document* m_pPDFDoc;
226 CPDFSDK_Document* m_pSDKDoc; 228 CPDFSDK_Document* m_pSDKDoc;
227 CXFA_FFDoc* m_pXFADoc; 229 CXFA_FFDoc* m_pXFADoc;
228 CXFA_FFDocView* m_pXFADocView; 230 CXFA_FFDocView* m_pXFADocView;
229 CPDFXFA_App* m_pApp; 231 CPDFXFA_App* m_pApp;
230 IJS_Context* m_pJSContext; 232 IJS_Context* m_pJSContext;
231 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList; 233 CFX_ArrayTemplate<CPDFXFA_Page*> m_XFAPageList;
232 LoadStatus m_nLoadStatus; 234 LoadStatus m_nLoadStatus;
233 int m_nPageCount; 235 int m_nPageCount;
234 }; 236 };
235 237
236 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_ 238 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_DOC_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_baseform.cpp ('k') | xfa.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698