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 "xfa/fwl/core/ifwl_form.h" | 10 #include "xfa/fwl/core/ifwl_form.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; | 82 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; |
83 }; | 83 }; |
84 | 84 |
85 class IFWL_ComboBox : public IFWL_Widget { | 85 class IFWL_ComboBox : public IFWL_Widget { |
86 public: | 86 public: |
87 explicit IFWL_ComboBox(const IFWL_App* app, | 87 explicit IFWL_ComboBox(const IFWL_App* app, |
88 const CFWL_WidgetImpProperties& properties); | 88 const CFWL_WidgetImpProperties& properties); |
89 ~IFWL_ComboBox() override; | 89 ~IFWL_ComboBox() override; |
90 | 90 |
91 // IFWL_Widget | 91 // IFWL_Widget |
92 void Initialize() override; | |
93 void Finalize() override; | |
94 FWL_Type GetClassID() const override; | 92 FWL_Type GetClassID() const override; |
95 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 93 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
96 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded, | 94 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded, |
97 uint32_t dwStylesExRemoved) override; | 95 uint32_t dwStylesExRemoved) override; |
98 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override; | 96 void SetStates(uint32_t dwStates, FX_BOOL bSet = TRUE) override; |
99 FWL_Error Update() override; | 97 FWL_Error Update() override; |
100 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; | 98 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; |
101 FWL_Error DrawWidget(CFX_Graphics* pGraphics, | 99 FWL_Error DrawWidget(CFX_Graphics* pGraphics, |
102 const CFX_Matrix* pMatrix = nullptr) override; | 100 const CFX_Matrix* pMatrix = nullptr) override; |
103 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; | 101 FWL_Error SetThemeProvider(IFWL_ThemeProvider* pThemeProvider) override; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 void OnDeactive(CFWL_MsgDeactivate* pMsg); | 228 void OnDeactive(CFWL_MsgDeactivate* pMsg); |
231 void OnFocusChanged(CFWL_MsgKillFocus* pMsg, FX_BOOL bSet); | 229 void OnFocusChanged(CFWL_MsgKillFocus* pMsg, FX_BOOL bSet); |
232 FX_BOOL m_bLButtonDown; | 230 FX_BOOL m_bLButtonDown; |
233 FX_BOOL m_bLButtonUpSelf; | 231 FX_BOOL m_bLButtonUpSelf; |
234 FX_FLOAT m_fStartPos; | 232 FX_FLOAT m_fStartPos; |
235 IFWL_Form* m_pForm; | 233 IFWL_Form* m_pForm; |
236 IFWL_ComboBox* m_pComboBox; | 234 IFWL_ComboBox* m_pComboBox; |
237 }; | 235 }; |
238 | 236 |
239 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ | 237 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ |
OLD | NEW |