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

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

Issue 2353303004: Make creation of CPDFSDK_Document clearer (Closed)
Patch Set: Review updates Created 4 years, 2 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/include/fpdfxfa_doc.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_CPDFSDK_ENVIRONMENT_H_ 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_
8 #define FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_ 8 #define FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 CFFL_InteractiveFormFiller* GetInteractiveFormFiller(); 404 CFFL_InteractiveFormFiller* GetInteractiveFormFiller();
405 CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present. 405 CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present.
406 IJS_Runtime* GetJSRuntime(); // Creates if not present. 406 IJS_Runtime* GetJSRuntime(); // Creates if not present.
407 CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present. 407 CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present.
408 408
409 private: 409 private:
410 std::unique_ptr<CPDFSDK_AnnotHandlerMgr> m_pAnnotHandlerMgr; 410 std::unique_ptr<CPDFSDK_AnnotHandlerMgr> m_pAnnotHandlerMgr;
411 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; 411 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler;
412 std::unique_ptr<IJS_Runtime> m_pJSRuntime; 412 std::unique_ptr<IJS_Runtime> m_pJSRuntime;
413 FPDF_FORMFILLINFO* const m_pInfo; 413 FPDF_FORMFILLINFO* const m_pInfo;
414 // Ownership of |m_pSDKDoc| depends on if this is XFA. If we're in XFA then
415 // the object is owned by the CPDFXFA_Document. In non-xfa then we own
416 // the pointer.
414 CPDFSDK_Document* m_pSDKDoc; 417 CPDFSDK_Document* m_pSDKDoc;
415 UnderlyingDocumentType* const m_pUnderlyingDoc; 418 UnderlyingDocumentType* const m_pUnderlyingDoc;
416 std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller; 419 std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller;
417 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; 420 std::unique_ptr<CFX_SystemHandler> m_pSysHandler;
418 }; 421 };
419 422
420 #endif // FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_ 423 #endif // FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698