| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 int32_t m_index; | 78 int32_t m_index; |
| 79 CFX_RectF m_rtItem;) | 79 CFX_RectF m_rtItem;) |
| 80 | 80 |
| 81 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { | 81 class IFWL_ComboBoxDP : public IFWL_ListBoxDP { |
| 82 public: | 82 public: |
| 83 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; | 83 virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 class IFWL_ComboBox : public IFWL_Widget { | 86 class IFWL_ComboBox : public IFWL_Widget { |
| 87 public: | 87 public: |
| 88 static IFWL_ComboBox* Create(const CFWL_WidgetImpProperties& properties); | 88 explicit IFWL_ComboBox(const CFWL_WidgetImpProperties& properties); |
| 89 | |
| 90 IFWL_ComboBox(const CFWL_WidgetImpProperties& properties, | |
| 91 IFWL_Widget* pOuter); | |
| 92 ~IFWL_ComboBox() override; | 89 ~IFWL_ComboBox() override; |
| 93 | 90 |
| 94 // IFWL_Widget | 91 // IFWL_Widget |
| 95 FWL_Error GetClassName(CFX_WideString& wsClass) const override; | 92 FWL_Error GetClassName(CFX_WideString& wsClass) const override; |
| 96 FWL_Type GetClassID() const override; | 93 FWL_Type GetClassID() const override; |
| 97 FWL_Error Initialize() override; | 94 FWL_Error Initialize() override; |
| 98 FWL_Error Finalize() override; | 95 FWL_Error Finalize() override; |
| 99 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 96 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 100 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded, | 97 FWL_Error ModifyStylesEx(uint32_t dwStylesExAdded, |
| 101 uint32_t dwStylesExRemoved) override; | 98 uint32_t dwStylesExRemoved) override; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 void OnDeactive(CFWL_MsgDeactivate* pMsg); | 232 void OnDeactive(CFWL_MsgDeactivate* pMsg); |
| 236 void OnFocusChanged(CFWL_MsgKillFocus* pMsg, FX_BOOL bSet); | 233 void OnFocusChanged(CFWL_MsgKillFocus* pMsg, FX_BOOL bSet); |
| 237 FX_BOOL m_bLButtonDown; | 234 FX_BOOL m_bLButtonDown; |
| 238 FX_BOOL m_bLButtonUpSelf; | 235 FX_BOOL m_bLButtonUpSelf; |
| 239 FX_FLOAT m_fStartPos; | 236 FX_FLOAT m_fStartPos; |
| 240 IFWL_Form* m_pForm; | 237 IFWL_Form* m_pForm; |
| 241 IFWL_ComboBox* m_pComboBox; | 238 IFWL_ComboBox* m_pComboBox; |
| 242 }; | 239 }; |
| 243 | 240 |
| 244 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ | 241 #endif // XFA_FWL_CORE_IFWL_COMBOBOX_H_ |
| OLD | NEW |