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 "xfa/fwl/core/cfwl_widgetimpproperties.h" | 10 #include "xfa/fwl/core/cfwl_widgetimpproperties.h" |
11 #include "xfa/fwl/core/ifwl_listbox.h" | 11 #include "xfa/fwl/core/ifwl_listbox.h" |
12 #include "xfa/fwl/core/ifwl_widget.h" | 12 #include "xfa/fwl/core/ifwl_widget.h" |
13 | 13 |
14 class IFWL_ComboList : public IFWL_ListBox { | 14 class IFWL_ComboList : public IFWL_ListBox { |
15 public: | 15 public: |
16 IFWL_ComboList(const CFWL_WidgetImpProperties& properties, | 16 IFWL_ComboList(const CFWL_WidgetImpProperties& properties, |
17 IFWL_Widget* pOuter); | 17 IFWL_Widget* pOuter); |
18 | 18 |
19 // IFWL_Widget | 19 // IFWL_Widget |
20 FWL_Error Initialize() override; | 20 FWL_Error Initialize() override; |
21 FWL_Error Finalize() override; | 21 void Finalize() override; |
22 | 22 |
23 int32_t MatchItem(const CFX_WideString& wsMatch); | 23 int32_t MatchItem(const CFX_WideString& wsMatch); |
24 void ChangeSelected(int32_t iSel); | 24 void ChangeSelected(int32_t iSel); |
25 int32_t CountItems(); | 25 int32_t CountItems(); |
26 void GetItemRect(int32_t nIndex, CFX_RectF& rtItem); | 26 void GetItemRect(int32_t nIndex, CFX_RectF& rtItem); |
27 void ClientToOuter(FX_FLOAT& fx, FX_FLOAT& fy); | 27 void ClientToOuter(FX_FLOAT& fx, FX_FLOAT& fy); |
28 void SetFocus(FX_BOOL bSet); | 28 void SetFocus(FX_BOOL bSet); |
29 | 29 |
30 FX_BOOL m_bNotifyOwner; | 30 FX_BOOL m_bNotifyOwner; |
31 | 31 |
(...skipping 10 matching lines...) Expand all Loading... |
42 void OnDropListFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); | 42 void OnDropListFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); |
43 int32_t OnDropListMouseMove(CFWL_MsgMouse* pMsg); | 43 int32_t OnDropListMouseMove(CFWL_MsgMouse* pMsg); |
44 int32_t OnDropListLButtonDown(CFWL_MsgMouse* pMsg); | 44 int32_t OnDropListLButtonDown(CFWL_MsgMouse* pMsg); |
45 int32_t OnDropListLButtonUp(CFWL_MsgMouse* pMsg); | 45 int32_t OnDropListLButtonUp(CFWL_MsgMouse* pMsg); |
46 int32_t OnDropListKey(CFWL_MsgKey* pKey); | 46 int32_t OnDropListKey(CFWL_MsgKey* pKey); |
47 void OnDropListKeyDown(CFWL_MsgKey* pKey); | 47 void OnDropListKeyDown(CFWL_MsgKey* pKey); |
48 IFWL_ComboList* m_pOwner; | 48 IFWL_ComboList* m_pOwner; |
49 }; | 49 }; |
50 | 50 |
51 #endif // XFA_FWL_CORE_IFWL_COMBOLIST_H_ | 51 #endif // XFA_FWL_CORE_IFWL_COMBOLIST_H_ |
OLD | NEW |