| 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_CFWL_COMBOBOX_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_COMBOBOX_H_ |
| 8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_ | 8 #define XFA_FWL_CORE_CFWL_COMBOBOX_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) | 47 #define FWL_STYLEEXT_CMB_ListItemIconText (1L << 12) |
| 48 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) | 48 #define FWL_STYLEEXT_CMB_ReadOnly (1L << 13) |
| 49 | 49 |
| 50 class CFWL_ComboBox : public CFWL_Widget { | 50 class CFWL_ComboBox : public CFWL_Widget { |
| 51 public: | 51 public: |
| 52 explicit CFWL_ComboBox(const CFWL_App* pApp); | 52 explicit CFWL_ComboBox(const CFWL_App* pApp); |
| 53 ~CFWL_ComboBox() override; | 53 ~CFWL_ComboBox() override; |
| 54 | 54 |
| 55 // CFWL_Widget | 55 // CFWL_Widget |
| 56 FWL_Type GetClassID() const override; | 56 FWL_Type GetClassID() const override; |
| 57 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override; | |
| 58 void ModifyStylesEx(uint32_t dwStylesExAdded, | 57 void ModifyStylesEx(uint32_t dwStylesExAdded, |
| 59 uint32_t dwStylesExRemoved) override; | 58 uint32_t dwStylesExRemoved) override; |
| 60 void SetStates(uint32_t dwStates) override; | 59 void SetStates(uint32_t dwStates) override; |
| 61 void RemoveStates(uint32_t dwStates) override; | 60 void RemoveStates(uint32_t dwStates) override; |
| 62 void Update() override; | 61 void Update() override; |
| 63 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 62 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
| 64 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; | 63 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; |
| 65 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; | 64 void SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; |
| 66 void OnProcessMessage(CFWL_Message* pMessage) override; | 65 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 67 void OnProcessEvent(CFWL_Event* pEvent) override; | 66 void OnProcessEvent(CFWL_Event* pEvent) override; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 CFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? | 163 CFWL_ComboBoxProxy* m_pComboBoxProxy; // Can this be a unique_ptr? |
| 165 bool m_bLButtonDown; | 164 bool m_bLButtonDown; |
| 166 bool m_bUpFormHandler; | 165 bool m_bUpFormHandler; |
| 167 int32_t m_iCurSel; | 166 int32_t m_iCurSel; |
| 168 int32_t m_iBtnState; | 167 int32_t m_iBtnState; |
| 169 FX_FLOAT m_fComboFormHandler; | 168 FX_FLOAT m_fComboFormHandler; |
| 170 FX_FLOAT m_fItemHeight; | 169 FX_FLOAT m_fItemHeight; |
| 171 }; | 170 }; |
| 172 | 171 |
| 173 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ | 172 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ |
| OLD | NEW |