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

Side by Side Diff: fpdfsdk/fpdf_ext.cpp

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/cpdfsdk_xfawidgethandler.cpp ('k') | fpdfsdk/fpdfdoc_unittest.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 #include "public/fpdf_ext.h" 7 #include "public/fpdf_ext.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "core/fpdfapi/cpdf_modulemgr.h" 11 #include "core/fpdfapi/cpdf_modulemgr.h"
12 #include "core/fpdfapi/parser/cpdf_array.h" 12 #include "core/fpdfapi/parser/cpdf_array.h"
13 #include "core/fpdfapi/parser/cpdf_document.h" 13 #include "core/fpdfapi/parser/cpdf_document.h"
14 #include "core/fpdfdoc/cpdf_annot.h" 14 #include "core/fpdfdoc/cpdf_annot.h"
15 #include "core/fpdfdoc/cpdf_interform.h" 15 #include "core/fpdfdoc/cpdf_interform.h"
16 #include "core/fpdfdoc/cpdf_metadata.h" 16 #include "core/fpdfdoc/cpdf_metadata.h"
17 #include "core/fxcrt/fx_basic.h" 17 #include "core/fxcrt/fx_basic.h"
18 #include "core/fxcrt/fx_memory.h" 18 #include "core/fxcrt/fx_memory.h"
19 #include "core/fxcrt/fx_xml.h" 19 #include "core/fxcrt/fx_xml.h"
20 #include "fpdfsdk/fsdk_define.h" 20 #include "fpdfsdk/fsdk_define.h"
21 #include "third_party/base/ptr_util.h" 21 #include "third_party/base/ptr_util.h"
22 22
23 #ifdef PDF_ENABLE_XFA 23 #ifdef PDF_ENABLE_XFA
24 #include "fpdfsdk/fpdfxfa/cpdfxfa_document.h" 24 #include "fpdfsdk/fpdfxfa/cpdfxfa_context.h"
25 #endif // PDF_ENABLE_XFA 25 #endif // PDF_ENABLE_XFA
26 26
27 FX_BOOL FPDF_UnSupportError(int nError) { 27 FX_BOOL FPDF_UnSupportError(int nError) {
28 CFSDK_UnsupportInfo_Adapter* pAdapter = 28 CFSDK_UnsupportInfo_Adapter* pAdapter =
29 CPDF_ModuleMgr::Get()->GetUnsupportInfoAdapter(); 29 CPDF_ModuleMgr::Get()->GetUnsupportInfoAdapter();
30 if (!pAdapter) 30 if (!pAdapter)
31 return FALSE; 31 return FALSE;
32 32
33 UNSUPPORT_INFO* info = static_cast<UNSUPPORT_INFO*>(pAdapter->GetUnspInfo()); 33 UNSUPPORT_INFO* info = static_cast<UNSUPPORT_INFO*>(pAdapter->GetUnspInfo());
34 if (info && info->FSDK_UnSupport_Handler) 34 if (info && info->FSDK_UnSupport_Handler)
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 return PAGEMODE_USETHUMBS; 191 return PAGEMODE_USETHUMBS;
192 if (strPageMode.EqualNoCase("FullScreen")) 192 if (strPageMode.EqualNoCase("FullScreen"))
193 return PAGEMODE_FULLSCREEN; 193 return PAGEMODE_FULLSCREEN;
194 if (strPageMode.EqualNoCase("UseOC")) 194 if (strPageMode.EqualNoCase("UseOC"))
195 return PAGEMODE_USEOC; 195 return PAGEMODE_USEOC;
196 if (strPageMode.EqualNoCase("UseAttachments")) 196 if (strPageMode.EqualNoCase("UseAttachments"))
197 return PAGEMODE_USEATTACHMENTS; 197 return PAGEMODE_USEATTACHMENTS;
198 198
199 return PAGEMODE_UNKNOWN; 199 return PAGEMODE_UNKNOWN;
200 } 200 }
OLDNEW
« no previous file with comments | « fpdfsdk/cpdfsdk_xfawidgethandler.cpp ('k') | fpdfsdk/fpdfdoc_unittest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698