| 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_COMBOLIST_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_COMBOLIST_H_ |
| 8 #define XFA_FWL_CORE_IFWL_COMBOLIST_H_ | 8 #define XFA_FWL_CORE_IFWL_COMBOLIST_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "xfa/fwl/core/cfwl_widgetproperties.h" | 12 #include "xfa/fwl/core/cfwl_widgetproperties.h" |
| 13 #include "xfa/fwl/core/ifwl_listbox.h" | 13 #include "xfa/fwl/core/ifwl_listbox.h" |
| 14 #include "xfa/fwl/core/ifwl_widget.h" | 14 #include "xfa/fwl/core/ifwl_widget.h" |
| 15 | 15 |
| 16 class IFWL_ComboList : public IFWL_ListBox { | 16 class IFWL_ComboList : public IFWL_ListBox { |
| 17 public: | 17 public: |
| 18 IFWL_ComboList(const IFWL_App* app, | 18 IFWL_ComboList(const CFWL_App* app, |
| 19 std::unique_ptr<CFWL_WidgetProperties> properties, | 19 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 20 IFWL_Widget* pOuter); | 20 IFWL_Widget* pOuter); |
| 21 | 21 |
| 22 // IFWL_ListBox. | 22 // IFWL_ListBox. |
| 23 void OnProcessMessage(CFWL_Message* pMessage) override; | 23 void OnProcessMessage(CFWL_Message* pMessage) override; |
| 24 | 24 |
| 25 int32_t MatchItem(const CFX_WideString& wsMatch); | 25 int32_t MatchItem(const CFX_WideString& wsMatch); |
| 26 | 26 |
| 27 void ChangeSelected(int32_t iSel); | 27 void ChangeSelected(int32_t iSel); |
| 28 int32_t CountItems(); | 28 int32_t CountItems(); |
| 29 | 29 |
| 30 void SetNotifyOwner(bool notify) { m_bNotifyOwner = notify; } | 30 void SetNotifyOwner(bool notify) { m_bNotifyOwner = notify; } |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 void GetItemRect(int32_t nIndex, CFX_RectF& rtItem); | 33 void GetItemRect(int32_t nIndex, CFX_RectF& rtItem); |
| 34 void ClientToOuter(FX_FLOAT& fx, FX_FLOAT& fy); | 34 void ClientToOuter(FX_FLOAT& fx, FX_FLOAT& fy); |
| 35 void OnDropListFocusChanged(CFWL_Message* pMsg, bool bSet); | 35 void OnDropListFocusChanged(CFWL_Message* pMsg, bool bSet); |
| 36 void OnDropListMouseMove(CFWL_MsgMouse* pMsg); | 36 void OnDropListMouseMove(CFWL_MsgMouse* pMsg); |
| 37 void OnDropListLButtonDown(CFWL_MsgMouse* pMsg); | 37 void OnDropListLButtonDown(CFWL_MsgMouse* pMsg); |
| 38 void OnDropListLButtonUp(CFWL_MsgMouse* pMsg); | 38 void OnDropListLButtonUp(CFWL_MsgMouse* pMsg); |
| 39 bool OnDropListKey(CFWL_MsgKey* pKey); | 39 bool OnDropListKey(CFWL_MsgKey* pKey); |
| 40 void OnDropListKeyDown(CFWL_MsgKey* pKey); | 40 void OnDropListKeyDown(CFWL_MsgKey* pKey); |
| 41 | 41 |
| 42 bool m_bNotifyOwner; | 42 bool m_bNotifyOwner; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 #endif // XFA_FWL_CORE_IFWL_COMBOLIST_H_ | 45 #endif // XFA_FWL_CORE_IFWL_COMBOLIST_H_ |
| OLD | NEW |