summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_formcontrol.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_formcontrol.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_formcontrol.h')
-rw-r--r--core/fpdfdoc/cpdf_formcontrol.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/fpdfdoc/cpdf_formcontrol.h b/core/fpdfdoc/cpdf_formcontrol.h
index 37b3d255e2..b22b074600 100644
--- a/core/fpdfdoc/cpdf_formcontrol.h
+++ b/core/fpdfdoc/cpdf_formcontrol.h
@@ -110,13 +110,11 @@ class CPDF_FormControl {
CPDF_Font* GetDefaultControlFont();
int GetControlAlignment();
- private:
- friend class CPDF_InterForm;
- friend class CPDF_FormField;
-
ByteString GetOnStateName() const;
- void SetOnStateName(const ByteString& csOn);
void CheckControl(bool bChecked);
+
+ private:
+ void SetOnStateName(const ByteString& csOn);
FX_ARGB GetColor(int& iColorType, const ByteString& csEntry);
float GetOriginalColor(int index, const ByteString& csEntry);
void GetOriginalColor(int& iColorType,