summaryrefslogtreecommitdiff
path: root/fpdfsdk/cpdfsdk_interform.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-11 09:13:01 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-11 09:13:01 -0700
commit690c033e86b34f7a9c3d4be15759c63ef9360217 (patch)
treefdbde142926cd9f77882e0d5984770267561ad32 /fpdfsdk/cpdfsdk_interform.h
parent232ce9365df0768846972be34a3a84f915bf7e82 (diff)
downloadpdfium-690c033e86b34f7a9c3d4be15759c63ef9360217.tar.xz
Convert CPDFSDK_InterForm to take a CPDFSDK_FormFillEnvironment
This CL removes CPDFSDK_Document from CPDFSDK_InterForm and has it work with a CPDFSDK_FormFillEnvironment. Review-Url: https://codereview.chromium.org/2397723005
Diffstat (limited to 'fpdfsdk/cpdfsdk_interform.h')
-rw-r--r--fpdfsdk/cpdfsdk_interform.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/cpdfsdk_interform.h b/fpdfsdk/cpdfsdk_interform.h
index 617a1066d7..f6848f3def 100644
--- a/fpdfsdk/cpdfsdk_interform.h
+++ b/fpdfsdk/cpdfsdk_interform.h
@@ -20,7 +20,7 @@ class CPDF_FormControl;
class CPDF_FormField;
class CPDF_InterForm;
class CPDF_Object;
-class CPDFSDK_Document;
+class CPDFSDK_FormFillEnvironment;
class CPDFSDK_Widget;
#ifdef PDF_ENABLE_XFA
@@ -30,11 +30,11 @@ class CXFA_FFWidget;
class CPDFSDK_InterForm : public IPDF_FormNotify {
public:
- explicit CPDFSDK_InterForm(CPDFSDK_Document* pDocument);
+ explicit CPDFSDK_InterForm(CPDFSDK_FormFillEnvironment* pFormFillEnv);
~CPDFSDK_InterForm() override;
CPDF_InterForm* GetInterForm() const { return m_pInterForm.get(); }
- CPDFSDK_Document* GetDocument() const { return m_pDocument; }
+ CPDFSDK_FormFillEnvironment* GetFormFillEnv() const { return m_pFormFillEnv; }
FX_BOOL HighlightWidgets();
@@ -122,7 +122,7 @@ class CPDFSDK_InterForm : public IPDF_FormNotify {
using CPDFSDK_WidgetMap = std::map<CPDF_FormControl*, CPDFSDK_Widget*>;
- CPDFSDK_Document* m_pDocument;
+ CPDFSDK_FormFillEnvironment* m_pFormFillEnv; // Not owned.
std::unique_ptr<CPDF_InterForm> m_pInterForm;
CPDFSDK_WidgetMap m_Map;
#ifdef PDF_ENABLE_XFA