| 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 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 IFWL_ComboBox : public IFWL_Widget { | 50 class IFWL_ComboBox : public IFWL_Widget { | 
| 51  public: | 51  public: | 
| 52   class DataProvider : public IFWL_ListBox::DataProvider { | 52   class DataProvider : public IFWL_ListBox::DataProvider { | 
| 53    public: | 53    public: | 
| 54     virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; | 54     virtual FX_FLOAT GetListHeight(IFWL_Widget* pWidget) = 0; | 
| 55   }; | 55   }; | 
| 56 | 56 | 
| 57   explicit IFWL_ComboBox(const IFWL_App* app, | 57   explicit IFWL_ComboBox(const CFWL_App* app, | 
| 58                          std::unique_ptr<CFWL_WidgetProperties> properties); | 58                          std::unique_ptr<CFWL_WidgetProperties> properties); | 
| 59   ~IFWL_ComboBox() override; | 59   ~IFWL_ComboBox() override; | 
| 60 | 60 | 
| 61   // IFWL_Widget | 61   // IFWL_Widget | 
| 62   FWL_Type GetClassID() const override; | 62   FWL_Type GetClassID() const override; | 
| 63   void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 63   void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; | 
| 64   void ModifyStylesEx(uint32_t dwStylesExAdded, | 64   void ModifyStylesEx(uint32_t dwStylesExAdded, | 
| 65                       uint32_t dwStylesExRemoved) override; | 65                       uint32_t dwStylesExRemoved) override; | 
| 66   void SetStates(uint32_t dwStates, bool bSet = true) override; | 66   void SetStates(uint32_t dwStates, bool bSet = true) override; | 
| 67   void Update() override; | 67   void Update() override; | 
| (...skipping 100 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 | 
|---|