| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 bool EditCopy(CFX_WideString& wsCopy); | 56 bool EditCopy(CFX_WideString& wsCopy); |
| 57 bool EditCut(CFX_WideString& wsCut); | 57 bool EditCut(CFX_WideString& wsCut); |
| 58 bool EditPaste(const CFX_WideString& wsPaste); | 58 bool EditPaste(const CFX_WideString& wsPaste); |
| 59 bool EditSelectAll(); | 59 bool EditSelectAll(); |
| 60 bool EditDelete(); | 60 bool EditDelete(); |
| 61 bool EditDeSelect(); | 61 bool EditDeSelect(); |
| 62 FWL_Error GetBBox(CFX_RectF& rect); | 62 FWL_Error GetBBox(CFX_RectF& rect); |
| 63 void EditModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved); | 63 void EditModifyStylesEx(uint32_t dwStylesExAdded, uint32_t dwStylesExRemoved); |
| 64 | 64 |
| 65 // IFWL_DataProvider | 65 // IFWL_DataProvider |
| 66 FWL_Error GetCaption(IFWL_Widget* pWidget, | 66 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override; |
| 67 CFX_WideString& wsCaption) override; | |
| 68 | 67 |
| 69 // IFWL_ListBoxDP | 68 // IFWL_ListBoxDP |
| 70 int32_t CountItems(const IFWL_Widget* pWidget) override; | 69 int32_t CountItems(const IFWL_Widget* pWidget) override; |
| 71 CFWL_ListItem* GetItem(const IFWL_Widget* pWidget, int32_t nIndex) override; | 70 CFWL_ListItem* GetItem(const IFWL_Widget* pWidget, int32_t nIndex) override; |
| 72 int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; | 71 int32_t GetItemIndex(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; |
| 73 bool SetItemIndex(IFWL_Widget* pWidget, | 72 bool SetItemIndex(IFWL_Widget* pWidget, |
| 74 CFWL_ListItem* pItem, | 73 CFWL_ListItem* pItem, |
| 75 int32_t nIndex) override; | 74 int32_t nIndex) override; |
| 76 | 75 |
| 77 uint32_t GetItemStyles(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; | 76 uint32_t GetItemStyles(IFWL_Widget* pWidget, CFWL_ListItem* pItem) override; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // IFWL_ComboBoxDP | 108 // IFWL_ComboBoxDP |
| 110 FX_FLOAT GetListHeight(IFWL_Widget* pWidget) override; | 109 FX_FLOAT GetListHeight(IFWL_Widget* pWidget) override; |
| 111 | 110 |
| 112 private: | 111 private: |
| 113 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; | 112 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; |
| 114 FX_FLOAT m_fMaxListHeight; | 113 FX_FLOAT m_fMaxListHeight; |
| 115 FX_FLOAT m_fItemHeight; | 114 FX_FLOAT m_fItemHeight; |
| 116 }; | 115 }; |
| 117 | 116 |
| 118 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ | 117 #endif // XFA_FWL_CORE_CFWL_COMBOBOX_H_ |
| OLD | NEW |