diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-07-27 12:08:12 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-07-27 12:08:12 -0700 |
commit | 8d2aae7ee320da3a8ffe01c57e38b3f98443257d (patch) | |
tree | e694c6f82ec72fa46e6172b4475996b30d3f6a3a /fpdfsdk/include/formfiller/FFL_Notify.h | |
parent | ff46aaf499edcf153ee2f57c7016587aa96dcfa0 (diff) | |
download | pdfium-8d2aae7ee320da3a8ffe01c57e38b3f98443257d.tar.xz |
Revert "FX Bool considered harmful, part 3"
This reverts commit ff46aaf499edcf153ee2f57c7016587aa96dcfa0.
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1255293002 .
Diffstat (limited to 'fpdfsdk/include/formfiller/FFL_Notify.h')
-rw-r--r-- | fpdfsdk/include/formfiller/FFL_Notify.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/fpdfsdk/include/formfiller/FFL_Notify.h b/fpdfsdk/include/formfiller/FFL_Notify.h index 8a9c04c5df..961d4b7a79 100644 --- a/fpdfsdk/include/formfiller/FFL_Notify.h +++ b/fpdfsdk/include/formfiller/FFL_Notify.h @@ -20,35 +20,35 @@ public: virtual ~CFFL_Notify(); public: - bool OnSetFocus(bool & bExit); - bool OnMouseEnter(bool & bExit); - bool OnMouseDown(bool & bExit); - bool OnMouseUp(bool & bExit); - bool OnMouseExit(bool & bExit); - bool OnKillFocus(bool & bExit); - - bool OnCalculate(); - bool OnFormat(int iCommitKey); - bool OnValidate(CPDF_FormField* pFormField, CFX_WideString& strValue, CFX_WideString & strChange, - const CFX_WideString& strChangeEx, bool bKeyDown, bool bModifier, - bool bShift, bool & bRC); - bool OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue, CFX_WideString& strChange, - const CFX_WideString& strChangeEx, bool bKeyDown, bool bModifier, - bool bShift, bool bWillCommit, bool bFieldFull, - int& nSelStart, int& nSelEnd, bool& bRC); + FX_BOOL OnSetFocus(FX_BOOL & bExit); + FX_BOOL OnMouseEnter(FX_BOOL & bExit); + FX_BOOL OnMouseDown(FX_BOOL & bExit); + FX_BOOL OnMouseUp(FX_BOOL & bExit); + FX_BOOL OnMouseExit(FX_BOOL & bExit); + FX_BOOL OnKillFocus(FX_BOOL & bExit); + + FX_BOOL OnCalculate(); + FX_BOOL OnFormat(int iCommitKey); + FX_BOOL OnValidate(CPDF_FormField* pFormField, CFX_WideString& strValue, CFX_WideString & strChange, + const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifier, + FX_BOOL bShift, FX_BOOL & bRC); + FX_BOOL OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue, CFX_WideString& strChange, + const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifier, + FX_BOOL bShift, FX_BOOL bWillCommit, FX_BOOL bFieldFull, + int& nSelStart, int& nSelEnd, FX_BOOL& bRC); void BeforeNotify(); void AfterNotify(); - bool IsNotifying() const {return m_nNotifyFlag > 0;} + FX_BOOL IsNotifying() const {return m_nNotifyFlag > 0;} private: - bool DoAAction(CPDF_AAction::AActionType eAAT, bool & bExit); - bool FindAAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action); - bool FindAAction(CPDF_AAction aaction,CPDF_AAction::AActionType eAAT,CPDF_Action & action); - bool ExecuteActionTree(CPDF_AAction::AActionType eAAT, CPDF_Action & action, bool& bExit); - bool ExecuteAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action,bool& bExit); + FX_BOOL DoAAction(CPDF_AAction::AActionType eAAT, FX_BOOL & bExit); + FX_BOOL FindAAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action); + FX_BOOL FindAAction(CPDF_AAction aaction,CPDF_AAction::AActionType eAAT,CPDF_Action & action); + FX_BOOL ExecuteActionTree(CPDF_AAction::AActionType eAAT, CPDF_Action & action, FX_BOOL& bExit); + FX_BOOL ExecuteAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action,FX_BOOL& bExit); - bool m_bDoActioning; + FX_BOOL m_bDoActioning; int32_t m_nNotifyFlag; }; |