diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-07-06 13:56:04 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-06 21:25:37 +0000 |
commit | d97f2eee71036c09823dea18b2c5f74731317fe9 (patch) | |
tree | 9005cf83e67dad2a0e690772f2a345ba3f7e022d /fpdfsdk/formfiller/cffl_interactiveformfiller.h | |
parent | 1f9d2338feb75d62bb28e116df7243dd567fded8 (diff) | |
download | pdfium-d97f2eee71036c09823dea18b2c5f74731317fe9.tar.xz |
Convert OnBeforeKeyStoke to remove in-out param
This CL removes the in-out params from OnBeforeKeyStroke and instead
returns a std::pair<bool, bool>.
Change-Id: I246cf51652da7e05ea71f582b523aa428cbbd3b8
Reviewed-on: https://pdfium-review.googlesource.com/7337
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/formfiller/cffl_interactiveformfiller.h')
-rw-r--r-- | fpdfsdk/formfiller/cffl_interactiveformfiller.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fpdfsdk/formfiller/cffl_interactiveformfiller.h b/fpdfsdk/formfiller/cffl_interactiveformfiller.h index 05fdf0d6c7..fb141e17a4 100644 --- a/fpdfsdk/formfiller/cffl_interactiveformfiller.h +++ b/fpdfsdk/formfiller/cffl_interactiveformfiller.h @@ -9,6 +9,7 @@ #include <map> #include <memory> +#include <utility> #include "core/fxcrt/cfx_unowned_ptr.h" #include "fpdfsdk/cpdfsdk_annot.h" @@ -129,15 +130,14 @@ class CFFL_InteractiveFormFiller : public IPWL_Filler_Notify { float fPopupMax, bool* bBottom, float* fPopupRet) override; - void OnBeforeKeyStroke(void* pPrivateData, - CFX_WideString& strChange, - const CFX_WideString& strChangeEx, - int nSelStart, - int nSelEnd, - bool bKeyDown, - bool& bRC, - bool& bExit, - uint32_t nFlag) override; + // Returns {bRC, bExit}. + std::pair<bool, bool> OnBeforeKeyStroke(void* pPrivateData, + CFX_WideString& strChange, + const CFX_WideString& strChangeEx, + int nSelStart, + int nSelEnd, + bool bKeyDown, + uint32_t nFlag) override; #ifdef PDF_ENABLE_XFA bool OnPopupPreOpen(void* pPrivateData, uint32_t nFlag) override; bool OnPopupPostOpen(void* pPrivateData, uint32_t nFlag) override; |