Chromium Code Reviews| Index: fpdfsdk/cpdfsdk_pageview.h |
| diff --git a/fpdfsdk/cpdfsdk_pageview.h b/fpdfsdk/cpdfsdk_pageview.h |
| index cd9ddec6bde057d4768e55704a114fd066a87825..078fefaabddb7890f16925b5ef57b6b3ffe10f3f 100644 |
| --- a/fpdfsdk/cpdfsdk_pageview.h |
| +++ b/fpdfsdk/cpdfsdk_pageview.h |
| @@ -21,7 +21,8 @@ class CPDF_RenderOptions; |
| class CPDFSDK_PageView final : public CPDF_Page::View { |
| public: |
| - CPDFSDK_PageView(CPDFSDK_Document* pSDKDoc, UnderlyingPageType* page); |
| + CPDFSDK_PageView(CPDFSDK_FormFillEnvironment* pFormFillEnv, |
| + UnderlyingPageType* page); |
| ~CPDFSDK_PageView(); |
| #ifdef PDF_ENABLE_XFA |
| @@ -58,7 +59,7 @@ class CPDFSDK_PageView final : public CPDF_Page::View { |
| CPDF_Page* GetPDFPage() const; |
| CPDF_Document* GetPDFDocument(); |
| - CPDFSDK_Document* GetSDKDocument() { return m_pSDKDoc; } |
| + CPDFSDK_FormFillEnvironment* GetFormFillEnv() { return m_pFormFillEnv; } |
|
Tom Sepez
2016/10/06 18:46:28
nit: const method?
dsinclair
2016/10/06 19:32:54
Done.
|
| FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag); |
| FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag); |
| #ifdef PDF_ENABLE_XFA |
| @@ -102,7 +103,7 @@ class CPDFSDK_PageView final : public CPDF_Page::View { |
| UnderlyingPageType* const m_page; |
| std::unique_ptr<CPDF_AnnotList> m_pAnnotList; |
| std::vector<CPDFSDK_Annot*> m_SDKAnnotArray; |
| - CPDFSDK_Document* const m_pSDKDoc; |
| + CPDFSDK_FormFillEnvironment* const m_pFormFillEnv; // Not owned. |
| CPDFSDK_Annot::ObservedPtr m_pCaptureWidget; |
| #ifndef PDF_ENABLE_XFA |
| bool m_bOwnsPage; |