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

Side by Side Diff: fpdfsdk/fsdk_define.h

Issue 2469813004: Rename CPDFXFA_Document to CPDFXFA_Context (Closed)
Patch Set: Merge to master Created 4 years, 1 month 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/fpdfxfa/cxfa_fwladaptertimermgr.h ('k') | fpdfsdk/javascript/app.cpp » ('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_FSDK_DEFINE_H_ 7 #ifndef FPDFSDK_FSDK_DEFINE_H_
8 #define FPDFSDK_FSDK_DEFINE_H_ 8 #define FPDFSDK_FSDK_DEFINE_H_
9 9
10 #include "core/fpdfapi/parser/cpdf_parser.h" 10 #include "core/fpdfapi/parser/cpdf_parser.h"
11 #include "core/fxge/fx_dib.h" 11 #include "core/fxge/fx_dib.h"
12 #include "public/fpdfview.h" 12 #include "public/fpdfview.h"
13 13
14 #ifdef PDF_ENABLE_XFA 14 #ifdef PDF_ENABLE_XFA
15 #include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" 15 #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h"
16 #endif // PDF_ENABLE_XFA 16 #endif // PDF_ENABLE_XFA
17 17
18 #ifdef _WIN32 18 #ifdef _WIN32
19 #include <math.h> 19 #include <math.h>
20 #include <tchar.h> 20 #include <tchar.h>
21 #endif 21 #endif
22 22
23 class CPDF_Annot; 23 class CPDF_Annot;
24 class CPDF_Page; 24 class CPDF_Page;
25 class CPDF_PageRenderContext; 25 class CPDF_PageRenderContext;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 }; 64 };
65 #endif // PDF_ENABLE_XFA 65 #endif // PDF_ENABLE_XFA
66 66
67 // Object types for public FPDF_ types; these correspond to next layer down 67 // Object types for public FPDF_ types; these correspond to next layer down
68 // from fpdfsdk. For master, these are CPDF_ types, but for XFA, these are 68 // from fpdfsdk. For master, these are CPDF_ types, but for XFA, these are
69 // CPDFXFA_ types. 69 // CPDFXFA_ types.
70 #ifndef PDF_ENABLE_XFA 70 #ifndef PDF_ENABLE_XFA
71 using UnderlyingDocumentType = CPDF_Document; 71 using UnderlyingDocumentType = CPDF_Document;
72 using UnderlyingPageType = CPDF_Page; 72 using UnderlyingPageType = CPDF_Page;
73 #else // PDF_ENABLE_XFA 73 #else // PDF_ENABLE_XFA
74 using UnderlyingDocumentType = CPDFXFA_Document; 74 using UnderlyingDocumentType = CPDFXFA_Context;
75 using UnderlyingPageType = CPDFXFA_Page; 75 using UnderlyingPageType = CPDFXFA_Page;
76 #endif // PDF_ENABLE_XFA 76 #endif // PDF_ENABLE_XFA
77 77
78 // Conversions to/from underlying types. 78 // Conversions to/from underlying types.
79 UnderlyingDocumentType* UnderlyingFromFPDFDocument(FPDF_DOCUMENT doc); 79 UnderlyingDocumentType* UnderlyingFromFPDFDocument(FPDF_DOCUMENT doc);
80 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc); 80 FPDF_DOCUMENT FPDFDocumentFromUnderlying(UnderlyingDocumentType* doc);
81 81
82 UnderlyingPageType* UnderlyingFromFPDFPage(FPDF_PAGE page); 82 UnderlyingPageType* UnderlyingFromFPDFPage(FPDF_PAGE page);
83 83
84 // Conversions to/from FPDF_ types. 84 // Conversions to/from FPDF_ types.
(...skipping 15 matching lines...) Expand all
100 int rotate, 100 int rotate,
101 int flags, 101 int flags,
102 FX_BOOL bNeedToRestore, 102 FX_BOOL bNeedToRestore,
103 IFSDK_PAUSE_Adapter* pause); 103 IFSDK_PAUSE_Adapter* pause);
104 104
105 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); 105 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code);
106 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); 106 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot);
107 void ProcessParseError(CPDF_Parser::Error err); 107 void ProcessParseError(CPDF_Parser::Error err);
108 108
109 #endif // FPDFSDK_FSDK_DEFINE_H_ 109 #endif // FPDFSDK_FSDK_DEFINE_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/cxfa_fwladaptertimermgr.h ('k') | fpdfsdk/javascript/app.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698