| 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 XFA_FWL_CORE_IFWL_COMBOBOX_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_COMBOBOX_H_ |
| 8 #define XFA_FWL_CORE_IFWL_COMBOBOX_H_ | 8 #define XFA_FWL_CORE_IFWL_COMBOBOX_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 !(m_pComboBoxProxy->GetStates() & FWL_WGTSTATE_Invisible); | 113 !(m_pComboBoxProxy->GetStates() & FWL_WGTSTATE_Invisible); |
| 114 } | 114 } |
| 115 void ShowDropList(bool bActivate); | 115 void ShowDropList(bool bActivate); |
| 116 | 116 |
| 117 IFWL_ComboEdit* GetComboEdit() const { return m_pEdit.get(); } | 117 IFWL_ComboEdit* GetComboEdit() const { return m_pEdit.get(); } |
| 118 | 118 |
| 119 void ProcessSelChanged(bool bLButtonUp); | 119 void ProcessSelChanged(bool bLButtonUp); |
| 120 int32_t GetCurrentSelection() const { return m_iCurSel; } | 120 int32_t GetCurrentSelection() const { return m_iCurSel; } |
| 121 | 121 |
| 122 private: | 122 private: |
| 123 FX_FLOAT GetListHeight(); | 123 FX_FLOAT GetDataProviderListHeight(); |
| 124 bool IsDropDownStyle() const { | 124 bool IsDropDownStyle() const { |
| 125 return !!(m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CMB_DropDown); | 125 return !!(m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CMB_DropDown); |
| 126 } | 126 } |
| 127 void MatchEditText(); | 127 void MatchEditText(); |
| 128 void SyncEditText(int32_t iListItem); | 128 void SyncEditText(int32_t iListItem); |
| 129 void Layout(); | 129 void Layout(); |
| 130 void ResetTheme(); | 130 void ResetTheme(); |
| 131 void ResetEditAlignment(); | 131 void ResetEditAlignment(); |
| 132 void ResetListItemAlignment(); | 132 void ResetListItemAlignment(); |
| 133 void InitProxyForm(); | 133 void InitProxyForm(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? | 168 IFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? |
| 169 bool m_bLButtonDown; | 169 bool m_bLButtonDown; |
| 170 bool m_bUpFormHandler; | 170 bool m_bUpFormHandler; |
| 171 int32_t m_iCurSel; | 171 int32_t m_iCurSel; |
| 172 int32_t m_iBtnState; | 172 int32_t m_iBtnState; |
| 173 FX_FLOAT m_fComboFormHandler; | 173 FX_FLOAT m_fComboFormHandler; |
| 174 FX_FLOAT m_fItemHeight; | 174 FX_FLOAT m_fItemHeight; |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ | 177 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ |
| OLD | NEW |