| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ | 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ |
| 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ | 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 using CFFL_Widget2Filler = std::map<CPDFSDK_Annot*, CFFL_FormFiller*>; | 117 using CFFL_Widget2Filler = std::map<CPDFSDK_Annot*, CFFL_FormFiller*>; |
| 118 | 118 |
| 119 // IPWL_Filler_Notify: | 119 // IPWL_Filler_Notify: |
| 120 void QueryWherePopup(void* pPrivateData, | 120 void QueryWherePopup(void* pPrivateData, |
| 121 FX_FLOAT fPopupMin, | 121 FX_FLOAT fPopupMin, |
| 122 FX_FLOAT fPopupMax, | 122 FX_FLOAT fPopupMax, |
| 123 int32_t& nRet, | 123 int32_t& nRet, |
| 124 FX_FLOAT& fPopupRet) override; | 124 FX_FLOAT& fPopupRet) override; |
| 125 void OnBeforeKeyStroke(FX_BOOL bEditOrList, | 125 void OnBeforeKeyStroke(void* pPrivateData, |
| 126 void* pPrivateData, | |
| 127 int32_t nKeyCode, | |
| 128 CFX_WideString& strChange, | 126 CFX_WideString& strChange, |
| 129 const CFX_WideString& strChangeEx, | 127 const CFX_WideString& strChangeEx, |
| 130 int nSelStart, | 128 int nSelStart, |
| 131 int nSelEnd, | 129 int nSelEnd, |
| 132 FX_BOOL bKeyDown, | 130 FX_BOOL bKeyDown, |
| 133 FX_BOOL& bRC, | 131 FX_BOOL& bRC, |
| 134 FX_BOOL& bExit, | 132 FX_BOOL& bExit, |
| 135 FX_DWORD nFlag) override; | 133 FX_DWORD nFlag) override; |
| 136 void OnAfterKeyStroke(FX_BOOL bEditOrList, | |
| 137 void* pPrivateData, | |
| 138 FX_BOOL& bExit, | |
| 139 FX_DWORD nFlag) override; | |
| 140 | 134 |
| 141 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); | 135 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); |
| 142 | 136 |
| 143 CPDFDoc_Environment* m_pApp; | 137 CPDFDoc_Environment* m_pApp; |
| 144 CFFL_Widget2Filler m_Maps; | 138 CFFL_Widget2Filler m_Maps; |
| 145 FX_BOOL m_bNotifying; | 139 FX_BOOL m_bNotifying; |
| 146 }; | 140 }; |
| 147 | 141 |
| 148 class CFFL_PrivateData { | 142 class CFFL_PrivateData { |
| 149 public: | 143 public: |
| 150 CPDFSDK_Widget* pWidget; | 144 CPDFSDK_Widget* pWidget; |
| 151 CPDFSDK_PageView* pPageView; | 145 CPDFSDK_PageView* pPageView; |
| 152 int nWidgetAge; | 146 int nWidgetAge; |
| 153 int nValueAge; | 147 int nValueAge; |
| 154 }; | 148 }; |
| 155 | 149 |
| 156 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ | 150 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ |
| OLD | NEW |