Chromium Code Reviews| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 155 CFX_SystemHandler* GetSysHandler() const { return m_pSysHandler.get(); } | 155 CFX_SystemHandler* GetSysHandler() const { return m_pSysHandler.get(); } |
| 156 FPDF_FORMFILLINFO* GetFormFillInfo() const { return m_pInfo; } | 156 FPDF_FORMFILLINFO* GetFormFillInfo() const { return m_pInfo; } |
| 157 | 157 |
| 158 // Creates if not present. | 158 // Creates if not present. |
| 159 CFFL_InteractiveFormFiller* GetInteractiveFormFiller(); | 159 CFFL_InteractiveFormFiller* GetInteractiveFormFiller(); |
| 160 CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present. | 160 CPDFSDK_AnnotHandlerMgr* GetAnnotHandlerMgr(); // Creates if not present. |
| 161 IJS_Runtime* GetJSRuntime(); // Creates if not present. | 161 IJS_Runtime* GetJSRuntime(); // Creates if not present. |
| 162 CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present. | 162 CPDFSDK_ActionHandler* GetActionHander(); // Creates if not present. |
| 163 | 163 |
| 164 private: | 164 private: |
| 165 std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller; | |
|
dsinclair
2016/10/11 14:13:26
What does this need to be destroyed after, everyth
Lei Zhang
2016/10/11 19:38:28
I did this quickly last night. I think it needs to
| |
| 165 std::unique_ptr<CPDFSDK_AnnotHandlerMgr> m_pAnnotHandlerMgr; | 166 std::unique_ptr<CPDFSDK_AnnotHandlerMgr> m_pAnnotHandlerMgr; |
| 166 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; | 167 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; |
| 167 std::unique_ptr<IJS_Runtime> m_pJSRuntime; | 168 std::unique_ptr<IJS_Runtime> m_pJSRuntime; |
| 168 FPDF_FORMFILLINFO* const m_pInfo; | 169 FPDF_FORMFILLINFO* const m_pInfo; |
| 169 std::unique_ptr<CPDFSDK_Document> m_pSDKDoc; | 170 std::unique_ptr<CPDFSDK_Document> m_pSDKDoc; |
| 170 UnderlyingDocumentType* const m_pUnderlyingDoc; | 171 UnderlyingDocumentType* const m_pUnderlyingDoc; |
| 171 std::unique_ptr<CFFL_InteractiveFormFiller> m_pFormFiller; | |
| 172 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; | 172 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; |
|
Tom Sepez
2016/10/11 16:28:01
Should this be the very last thing to go?
Lei Zhang
2016/10/11 19:38:28
Not sure. I didn't hit any known problems with thi
| |
| 173 }; | 173 }; |
| 174 | 174 |
| 175 #endif // FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ | 175 #endif // FPDFSDK_CPDFSDK_FORMFILLENVIRONMENT_H_ |
| OLD | NEW |