| 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_LISTBOX_H_ | 7 #ifndef XFA_FWL_CORE_CFWL_LISTBOX_H_ |
| 8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_ | 8 #define XFA_FWL_CORE_CFWL_LISTBOX_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "xfa/fwl/core/cfwl_widget.h" | 13 #include "xfa/fwl/core/cfwl_widget.h" |
| 14 #include "xfa/fwl/core/fwl_error.h" | 14 #include "xfa/fwl/core/fwl_error.h" |
| 15 #include "xfa/fwl/core/ifwl_listbox.h" | 15 #include "xfa/fwl/core/ifwl_listboxdp.h" |
| 16 #include "xfa/fwl/core/ifwl_widget.h" | 16 #include "xfa/fwl/core/ifwl_widget.h" |
| 17 | 17 |
| 18 class CFWL_ListBox : public CFWL_Widget, public IFWL_ListBoxDP { | 18 class CFWL_ListBox : public CFWL_Widget, public IFWL_ListBoxDP { |
| 19 public: | 19 public: |
| 20 explicit CFWL_ListBox(const IFWL_App* pApp); | 20 explicit CFWL_ListBox(const IFWL_App* pApp); |
| 21 ~CFWL_ListBox() override; | 21 ~CFWL_ListBox() override; |
| 22 | 22 |
| 23 void Initialize(); | 23 void Initialize(); |
| 24 | 24 |
| 25 // IFWL_DataProvider: | 25 // IFWL_DataProvider: |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 CFWL_ListItem* GetItem(int32_t nIndex); | 70 CFWL_ListItem* GetItem(int32_t nIndex); |
| 71 void GetItemText(CFWL_ListItem* pItem, CFX_WideString& wsText); | 71 void GetItemText(CFWL_ListItem* pItem, CFX_WideString& wsText); |
| 72 uint32_t GetItemStates(CFWL_ListItem* pItem); | 72 uint32_t GetItemStates(CFWL_ListItem* pItem); |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; | 75 std::vector<std::unique_ptr<CFWL_ListItem>> m_ItemArray; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ | 78 #endif // XFA_FWL_CORE_CFWL_LISTBOX_H_ |
| OLD | NEW |