From 3855f7ff0d4c5c8653fc17219bf65c4a0a95e8bb Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 17 Nov 2016 13:15:16 -0800 Subject: Unify the three CFWL_EventType::SelectChange classes. This CL removes the ListBox SelectChange class as it is never processed. The other two have been unified into a single classs. Review-Url: https://codereview.chromium.org/2509283003 --- xfa/fwl/core/ifwl_listbox.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'xfa/fwl/core/ifwl_listbox.h') diff --git a/xfa/fwl/core/ifwl_listbox.h b/xfa/fwl/core/ifwl_listbox.h index 48d4522009..5912656ac5 100644 --- a/xfa/fwl/core/ifwl_listbox.h +++ b/xfa/fwl/core/ifwl_listbox.h @@ -38,10 +38,6 @@ class CFWL_MsgMouse; class CFWL_MsgMouseWheel; class CFX_DIBitmap; -FWL_EVENT_DEF(CFWL_EvtLtbSelChanged, - CFWL_EventType::SelectChanged, - CFX_Int32Array iarraySels;) - class IFWL_ListBoxDP : public IFWL_DataProvider { public: virtual int32_t CountItems(const IFWL_Widget* pWidget) const = 0; @@ -148,7 +144,7 @@ class IFWL_ListBox : public IFWL_Widget { bool bAutoSize = false); FX_FLOAT GetMaxTextWidth(); FX_FLOAT GetScrollWidth(); - void ProcessSelChanged(); + void OnFocusChanged(CFWL_Message* pMsg, bool bSet = true); void OnLButtonDown(CFWL_MsgMouse* pMsg); void OnLButtonUp(CFWL_MsgMouse* pMsg); @@ -156,7 +152,6 @@ class IFWL_ListBox : public IFWL_Widget { void OnKeyDown(CFWL_MsgKey* pMsg); void OnVK(CFWL_ListItem* hItem, bool bShift, bool bCtrl); bool OnScroll(IFWL_ScrollBar* pScrollBar, FWL_SCBCODE dwCode, FX_FLOAT fPos); - void DispatchSelChangedEv(); CFX_RectF m_rtClient; CFX_RectF m_rtStatic; -- cgit v1.2.3