diff options
author | Lei Zhang <thestig@chromium.org> | 2017-06-15 12:37:33 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-15 20:42:01 +0000 |
commit | 77e3fc5cebfb19aed09f920536200e017cff9a0b (patch) | |
tree | 64700810faf138812cdcf7573a9caff08fb0411b /fpdfsdk/formfiller/cffl_textfield.h | |
parent | b7384b5b997975c36bb37d25c63e2c900eca41f9 (diff) | |
download | pdfium-77e3fc5cebfb19aed09f920536200e017cff9a0b.tar.xz |
Change some CFFL classes to use early returns.chromium/3132
Also switch C-style casts to the appropriate C++ casts, and add helper
functions in some cases.
Change-Id: I73f1ab36c6c89ced9d2b7b98393805142661dcac
Reviewed-on: https://pdfium-review.googlesource.com/6650
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/formfiller/cffl_textfield.h')
-rw-r--r-- | fpdfsdk/formfiller/cffl_textfield.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fpdfsdk/formfiller/cffl_textfield.h b/fpdfsdk/formfiller/cffl_textfield.h index cde477a392..621c1184e1 100644 --- a/fpdfsdk/formfiller/cffl_textfield.h +++ b/fpdfsdk/formfiller/cffl_textfield.h @@ -16,6 +16,7 @@ #define BF_ALIGN_RIGHT 2 class CBA_FontMap; +class CPWL_Edit; struct FFL_TextFieldState { FFL_TextFieldState() : nStart(0), nEnd(0) {} @@ -59,6 +60,8 @@ class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler { #endif // PDF_ENABLE_XFA private: + CPWL_Edit* GetEdit(CPDFSDK_PageView* pPageView, bool bNew); + std::unique_ptr<CBA_FontMap> m_pFontMap; FFL_TextFieldState m_State; }; |