summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_pageview.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-11 09:26:32 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-11 09:26:32 -0700
commitb402b1738d665561dd1bb7ffba0c3f3d49425086 (patch)
treeb7542f810c1d9199179dc60e5cdd43a5c794b880 /fpdfsdk/cpdfsdk_pageview.h
parent690c033e86b34f7a9c3d4be15759c63ef9360217 (diff)
downloadpdfium-b402b1738d665561dd1bb7ffba0c3f3d49425086.tar.xz
Convert CPDFSDK_PageView to have a CPDFSDK_FormFillEnvironment
This CL changes CPDFSDK_PageView to have a CPDFSDK_FormFillEnvironment instead of a CPDFSDK_Document. Review-Url: https://codereview.chromium.org/2400673002
Diffstat (limited to 'fpdfsdk/cpdfsdk_pageview.h')
-rw-r--r--fpdfsdk/cpdfsdk_pageview.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/fpdfsdk/cpdfsdk_pageview.h b/fpdfsdk/cpdfsdk_pageview.h
index cd9ddec6bd..a265436b8f 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() const { return m_pFormFillEnv; }
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;