| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |