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

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

Issue 1652533002: Add tests for CBA_AnnotIterator. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: static_cast. 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 std::unique_ptr<IJS_Runtime> m_pJSRuntime; 221 std::unique_ptr<IJS_Runtime> m_pJSRuntime;
222 FPDF_FORMFILLINFO* const m_pInfo; 222 FPDF_FORMFILLINFO* const m_pInfo;
223 CPDFSDK_Document* m_pSDKDoc; 223 CPDFSDK_Document* m_pSDKDoc;
224 UnderlyingDocumentType* const m_pUnderlyingDoc; 224 UnderlyingDocumentType* const m_pUnderlyingDoc;
225 std::unique_ptr<CFFL_IFormFiller> m_pIFormFiller; 225 std::unique_ptr<CFFL_IFormFiller> m_pIFormFiller;
226 std::unique_ptr<IFX_SystemHandler> m_pSysHandler; 226 std::unique_ptr<IFX_SystemHandler> m_pSysHandler;
227 }; 227 };
228 228
229 class CPDFSDK_Document { 229 class CPDFSDK_Document {
230 public: 230 public:
231 static CPDFSDK_Document* FromFPDFFormHandle(FPDF_FORMHANDLE hHandle);
232
231 CPDFSDK_Document(UnderlyingDocumentType* pDoc, CPDFDoc_Environment* pEnv); 233 CPDFSDK_Document(UnderlyingDocumentType* pDoc, CPDFDoc_Environment* pEnv);
232 ~CPDFSDK_Document(); 234 ~CPDFSDK_Document();
233 235
234 CPDFSDK_InterForm* GetInterForm(); 236 CPDFSDK_InterForm* GetInterForm();
235 237
236 // Gets the document object for the next layer down; for master this is 238 // Gets the document object for the next layer down; for master this is
237 // a CPDF_Document, but for XFA it is a CPDFXFA_Document. 239 // a CPDF_Document, but for XFA it is a CPDFXFA_Document.
238 UnderlyingDocumentType* GetUnderlyingDocument() const { 240 UnderlyingDocumentType* GetUnderlyingDocument() const {
239 return GetPDFDocument(); 241 return GetPDFDocument();
240 } 242 }
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 } 435 }
434 436
435 if (nStartPos < m) 437 if (nStartPos < m)
436 QuickSort(nStartPos, m, bAscend, pCompare); 438 QuickSort(nStartPos, m, bAscend, pCompare);
437 if (nStopPos > m) 439 if (nStopPos > m)
438 QuickSort(m, nStopPos, bAscend, pCompare); 440 QuickSort(m, nStopPos, bAscend, pCompare);
439 } 441 }
440 }; 442 };
441 443
442 #endif // FPDFSDK_INCLUDE_FSDK_MGR_H_ 444 #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