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

Side by Side Diff: fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp

Issue 1799773002: Move fpdfsdk/src up to fpdfsdk/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master 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 | « fpdfsdk/fpdfxfa/fpdfxfa_app.cpp ('k') | fpdfsdk/fpdfxfa/fpdfxfa_page.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 "core/include/fpdfapi/cpdf_array.h" 7 #include "core/include/fpdfapi/cpdf_array.h"
8 #include "core/include/fpdfapi/cpdf_document.h" 8 #include "core/include/fpdfapi/cpdf_document.h"
9 #include "core/include/fpdfapi/cpdf_string.h" 9 #include "core/include/fpdfapi/cpdf_string.h"
10 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" 10 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h"
(...skipping 26 matching lines...) Expand all
37 #endif 37 #endif
38 38
39 CPDFXFA_Document::CPDFXFA_Document(CPDF_Document* pPDFDoc, 39 CPDFXFA_Document::CPDFXFA_Document(CPDF_Document* pPDFDoc,
40 CPDFXFA_App* pProvider) 40 CPDFXFA_App* pProvider)
41 : m_iDocType(DOCTYPE_PDF), 41 : m_iDocType(DOCTYPE_PDF),
42 m_pPDFDoc(pPDFDoc), 42 m_pPDFDoc(pPDFDoc),
43 m_pSDKDoc(nullptr), 43 m_pSDKDoc(nullptr),
44 m_pXFADoc(nullptr), 44 m_pXFADoc(nullptr),
45 m_pXFADocView(nullptr), 45 m_pXFADocView(nullptr),
46 m_pApp(pProvider), 46 m_pApp(pProvider),
47 m_pJSContext(nullptr) { 47 m_pJSContext(nullptr) {}
48 }
49 48
50 CPDFXFA_Document::~CPDFXFA_Document() { 49 CPDFXFA_Document::~CPDFXFA_Document() {
51 if (m_pXFADoc) { 50 if (m_pXFADoc) {
52 IXFA_App* pApp = m_pApp->GetXFAApp(); 51 IXFA_App* pApp = m_pApp->GetXFAApp();
53 if (pApp) { 52 if (pApp) {
54 IXFA_DocHandler* pDocHandler = pApp->GetDocHandler(); 53 IXFA_DocHandler* pDocHandler = pApp->GetDocHandler();
55 if (pDocHandler) { 54 if (pDocHandler) {
56 CloseXFADoc(pDocHandler); 55 CloseXFADoc(pDocHandler);
57 } 56 }
58 } 57 }
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 pAcc->GetSize()); 692 pAcc->GetSize());
694 delete pAcc; 693 delete pAcc;
695 } 694 }
696 } 695 }
697 } 696 }
698 if (!fileWrite.Flush()) { 697 if (!fileWrite.Flush()) {
699 // Ignoring flush error. 698 // Ignoring flush error.
700 } 699 }
701 } 700 }
702 void CPDFXFA_Document::ImportData(IXFA_Doc* hDoc, 701 void CPDFXFA_Document::ImportData(IXFA_Doc* hDoc,
703 const CFX_WideStringC& wsFilePath) { 702 const CFX_WideStringC& wsFilePath) {}
704 }
705 703
706 void CPDFXFA_Document::GotoURL(IXFA_Doc* hDoc, 704 void CPDFXFA_Document::GotoURL(IXFA_Doc* hDoc,
707 const CFX_WideStringC& bsURL, 705 const CFX_WideStringC& bsURL,
708 FX_BOOL bAppend) { 706 FX_BOOL bAppend) {
709 if (hDoc != m_pXFADoc) 707 if (hDoc != m_pXFADoc)
710 return; 708 return;
711 709
712 if (m_iDocType != DOCTYPE_DYNAMIC_XFA) 710 if (m_iDocType != DOCTYPE_DYNAMIC_XFA)
713 return; 711 return;
714 712
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 } 1247 }
1250 1248
1251 return _GetHValueByName(szPropName, hValue, 1249 return _GetHValueByName(szPropName, hValue,
1252 m_pSDKDoc->GetEnv()->GetJSRuntime()); 1250 m_pSDKDoc->GetEnv()->GetJSRuntime());
1253 } 1251 }
1254 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, 1252 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name,
1255 FXJSE_HVALUE hValue, 1253 FXJSE_HVALUE hValue,
1256 IJS_Runtime* runTime) { 1254 IJS_Runtime* runTime) {
1257 return runTime->GetHValueByName(utf8Name, hValue); 1255 return runTime->GetHValueByName(utf8Name, hValue);
1258 } 1256 }
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/fpdfxfa_app.cpp ('k') | fpdfsdk/fpdfxfa/fpdfxfa_page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698