summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_interform.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-05 11:40:33 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-05 17:12:50 +0000
commit59454e1d00d37e9ec6b9341605d1e181e8dbec80 (patch)
tree32e4aefe15e3a25d6c7e6c68ee7dbe54591766a6 /core/fpdfdoc/cpdf_interform.h
parent3862d24efe5ca45f29e4404e674f3152f492cb01 (diff)
downloadpdfium-59454e1d00d37e9ec6b9341605d1e181e8dbec80.tar.xz
Remove friends from form code
This CL removes the friends from CPDF_FormControl and CPDF_InterForm and adds accessors and moves methods to public as needed. Change-Id: I9d18c9158b1499ca935964b5f9dbd937f0806163 Reviewed-on: https://pdfium-review.googlesource.com/15533 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_interform.h')
-rw-r--r--core/fpdfdoc/cpdf_interform.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/fpdfdoc/cpdf_interform.h b/core/fpdfdoc/cpdf_interform.h
index 576c2ccc39..7e3fbef5f0 100644
--- a/core/fpdfdoc/cpdf_interform.h
+++ b/core/fpdfdoc/cpdf_interform.h
@@ -89,10 +89,11 @@ class CPDF_InterForm {
bool HasXFAForm() const;
void FixPageFields(const CPDF_Page* pPage);
- private:
- friend class CPDF_FormControl;
- friend class CPDF_FormField;
+ IPDF_FormNotify* GetFormNotify() const { return m_pFormNotify.Get(); }
+ CPDF_Document* GetDocument() const { return m_pDocument.Get(); }
+ CPDF_Dictionary* GetFormDict() const { return m_pFormDict.Get(); }
+ private:
void LoadField(CPDF_Dictionary* pFieldDict, int nLevel);
void AddTerminalField(CPDF_Dictionary* pFieldDict);
CPDF_FormControl* AddControl(CPDF_FormField* pField,