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

Side by Side Diff: fpdfsdk/include/fsdk_mgr.h

Issue 1652543003: Merge to XFA: Add tests for CBA_AnnotIterator. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 10 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 | « BUILD.gn ('k') | fpdfsdk/src/fpdfformfill.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_INCLUDE_FSDK_MGR_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_MGR_H_
8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_ 8 #define FPDFSDK_INCLUDE_FSDK_MGR_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 std::unique_ptr<IJS_Runtime> m_pJSRuntime; 473 std::unique_ptr<IJS_Runtime> m_pJSRuntime;
474 FPDF_FORMFILLINFO* const m_pInfo; 474 FPDF_FORMFILLINFO* const m_pInfo;
475 CPDFSDK_Document* m_pSDKDoc; 475 CPDFSDK_Document* m_pSDKDoc;
476 UnderlyingDocumentType* const m_pUnderlyingDoc; 476 UnderlyingDocumentType* const m_pUnderlyingDoc;
477 std::unique_ptr<CFFL_IFormFiller> m_pIFormFiller; 477 std::unique_ptr<CFFL_IFormFiller> m_pIFormFiller;
478 std::unique_ptr<IFX_SystemHandler> m_pSysHandler; 478 std::unique_ptr<IFX_SystemHandler> m_pSysHandler;
479 }; 479 };
480 480
481 class CPDFSDK_Document { 481 class CPDFSDK_Document {
482 public: 482 public:
483 static CPDFSDK_Document* FromFPDFFormHandle(FPDF_FORMHANDLE hHandle);
484
483 CPDFSDK_Document(UnderlyingDocumentType* pDoc, CPDFDoc_Environment* pEnv); 485 CPDFSDK_Document(UnderlyingDocumentType* pDoc, CPDFDoc_Environment* pEnv);
484 ~CPDFSDK_Document(); 486 ~CPDFSDK_Document();
485 487
486 CPDFSDK_InterForm* GetInterForm(); 488 CPDFSDK_InterForm* GetInterForm();
487 489
488 // Gets the document object for the next layer down; for master this is 490 // Gets the document object for the next layer down; for master this is
489 // a CPDF_Document, but for XFA it is a CPDFXFA_Document. 491 // a CPDF_Document, but for XFA it is a CPDFXFA_Document.
490 UnderlyingDocumentType* GetUnderlyingDocument() const { 492 UnderlyingDocumentType* GetUnderlyingDocument() const {
491 #ifdef PDF_ENABLE_XFA 493 #ifdef PDF_ENABLE_XFA
492 return GetXFADocument(); 494 return GetXFADocument();
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 } 734 }
733 735
734 if (nStartPos < m) 736 if (nStartPos < m)
735 QuickSort(nStartPos, m, bAscend, pCompare); 737 QuickSort(nStartPos, m, bAscend, pCompare);
736 if (nStopPos > m) 738 if (nStopPos > m)
737 QuickSort(m, nStopPos, bAscend, pCompare); 739 QuickSort(m, nStopPos, bAscend, pCompare);
738 } 740 }
739 }; 741 };
740 742
741 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 743 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | fpdfsdk/src/fpdfformfill.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698