| 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_CPDFSDK_FORMFILLENVIRONMENT_H_ | 7 #ifndef FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ |
| 8 #define FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ | 8 #define FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present. | 206 CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present. |
| 207 IJS_Runtime* GetJSRuntime(); // Creates if not present. | 207 IJS_Runtime* GetJSRuntime(); // Creates if not present. |
| 208 CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present. | 208 CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present. |
| 209 CPDFSDK_InterForm* GetInterForm(); // Creates if not present. | 209 CPDFSDK_InterForm* GetInterForm(); // Creates if not present. |
| 210 | 210 |
| 211 private: | 211 private: |
| 212 std::unique_ptr<CPDFSDK_AnnotHandlerMgr> m_pAnnotHandlerMgr; | 212 std::unique_ptr<CPDFSDK_AnnotHandlerMgr> m_pAnnotHandlerMgr; |
| 213 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; | 213 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; |
| 214 std::unique_ptr<IJS_Runtime> m_pJSRuntime; | 214 std::unique_ptr<IJS_Runtime> m_pJSRuntime; |
| 215 FPDF_FORMFILLINFO* const m_pInfo; | 215 FPDF_FORMFILLINFO* const m_pInfo; |
| 216 std::map<UnderlyingPageType*, std::unique_ptr<CPDFSDK_PageView>> m_pageMap; | |
| 217 std::unique_ptr<CPDFSDK_InterForm> m_pInterForm; | 216 std::unique_ptr<CPDFSDK_InterForm> m_pInterForm; |
| 218 CPDFSDK_Annot::ObservedPtr m_pFocusAnnot; | 217 CPDFSDK_Annot::ObservedPtr m_pFocusAnnot; |
| 219 UnderlyingDocumentType* m_pUnderlyingDoc; | 218 UnderlyingDocumentType* m_pUnderlyingDoc; |
| 220 std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller; | 219 std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller; |
| 221 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; | 220 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; |
| 222 bool m_bChangeMask; | 221 bool m_bChangeMask; |
| 223 bool m_bBeingDestroyed; | 222 bool m_bBeingDestroyed; |
| 223 |
| 224 // Must be destroyed first. |
| 225 std::map<UnderlyingPageType*, std::unique_ptr<CPDFSDK_PageView>> m_pageMap; |
| 224 }; | 226 }; |
| 225 | 227 |
| 226 #endif // FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ | 228 #endif // FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ |
| OLD | NEW |