| 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_CPDFDOC_ENVIRONMENT_H_ | 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_ |
| 8 #define FPDFSDK_INCLUDE_CPDFDOC_ENVIRONMENT_H_ | 8 #define FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" | 12 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" |
| 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
| 14 #include "core/fpdfdoc/include/cpdf_occontext.h" | 14 #include "core/fpdfdoc/include/cpdf_occontext.h" |
| 15 #include "core/fxcrt/include/cfx_observable.h" | 15 #include "core/fxcrt/include/cfx_observable.h" |
| 16 #include "fpdfsdk/cfx_systemhandler.h" | 16 #include "fpdfsdk/cfx_systemhandler.h" |
| 17 #include "fpdfsdk/include/fsdk_define.h" | 17 #include "fpdfsdk/include/fsdk_define.h" |
| 18 #include "public/fpdf_formfill.h" | 18 #include "public/fpdf_formfill.h" |
| 19 #include "public/fpdf_fwlevent.h" | 19 #include "public/fpdf_fwlevent.h" |
| 20 | 20 |
| 21 class CFFL_IFormFiller; | 21 class CFFL_IFormFiller; |
| 22 class CFX_SystemHandler; | 22 class CFX_SystemHandler; |
| 23 class CPDFSDK_ActionHandler; | 23 class CPDFSDK_ActionHandler; |
| 24 class CPDFSDK_AnnotHandlerMgr; | 24 class CPDFSDK_AnnotHandlerMgr; |
| 25 class CPDFSDK_Document; | 25 class CPDFSDK_Document; |
| 26 class IJS_Runtime; | 26 class IJS_Runtime; |
| 27 | 27 |
| 28 class CPDFDoc_Environment final { | 28 class CPDFSDK_Environment final { |
| 29 public: | 29 public: |
| 30 CPDFDoc_Environment(UnderlyingDocumentType* pDoc, FPDF_FORMFILLINFO* pFFinfo); | 30 CPDFSDK_Environment(UnderlyingDocumentType* pDoc, FPDF_FORMFILLINFO* pFFinfo); |
| 31 ~CPDFDoc_Environment(); | 31 ~CPDFSDK_Environment(); |
| 32 | 32 |
| 33 void FFI_Invalidate(FPDF_PAGE page, | 33 void FFI_Invalidate(FPDF_PAGE page, |
| 34 double left, | 34 double left, |
| 35 double top, | 35 double top, |
| 36 double right, | 36 double right, |
| 37 double bottom) { | 37 double bottom) { |
| 38 if (m_pInfo && m_pInfo->FFI_Invalidate) | 38 if (m_pInfo && m_pInfo->FFI_Invalidate) |
| 39 m_pInfo->FFI_Invalidate(m_pInfo, page, left, top, right, bottom); | 39 m_pInfo->FFI_Invalidate(m_pInfo, page, left, top, right, bottom); |
| 40 } | 40 } |
| 41 | 41 |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 std::unique_ptr<CPDFSDK_AnnotHandlerMgr> m_pAnnotHandlerMgr; | 425 std::unique_ptr<CPDFSDK_AnnotHandlerMgr> m_pAnnotHandlerMgr; |
| 426 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; | 426 std::unique_ptr<CPDFSDK_ActionHandler> m_pActionHandler; |
| 427 std::unique_ptr<IJS_Runtime> m_pJSRuntime; | 427 std::unique_ptr<IJS_Runtime> m_pJSRuntime; |
| 428 FPDF_FORMFILLINFO* const m_pInfo; | 428 FPDF_FORMFILLINFO* const m_pInfo; |
| 429 CPDFSDK_Document* m_pSDKDoc; | 429 CPDFSDK_Document* m_pSDKDoc; |
| 430 UnderlyingDocumentType* const m_pUnderlyingDoc; | 430 UnderlyingDocumentType* const m_pUnderlyingDoc; |
| 431 std::unique_ptr<CFFL_IFormFiller> m_pIFormFiller; | 431 std::unique_ptr<CFFL_IFormFiller> m_pIFormFiller; |
| 432 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; | 432 std::unique_ptr<CFX_SystemHandler> m_pSysHandler; |
| 433 }; | 433 }; |
| 434 | 434 |
| 435 #endif // FPDFSDK_INCLUDE_CPDFDOC_ENVIRONMENT_H_ | 435 #endif // FPDFSDK_INCLUDE_CPDFSDK_ENVIRONMENT_H_ |
| OLD | NEW |