From 4614b45a6592530c4cd930f139c366ce20d359f4 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 7 Dec 2016 17:01:58 -0800 Subject: Cleanup FWL Event and Message code. This CL removes any CFWL_Evt classes for which nothing was listening to the events. For events with no parameters the override class was removed and the event type passed into CFWL_Event which is used instead. Any event or message parameters which are un-read have been removed. Review-Url: https://codereview.chromium.org/2530993002 --- xfa/fxfa/app/xfa_ffchoicelist.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'xfa/fxfa/app/xfa_ffchoicelist.cpp') diff --git a/xfa/fxfa/app/xfa_ffchoicelist.cpp b/xfa/fxfa/app/xfa_ffchoicelist.cpp index c9a513607e..d4cfe07202 100644 --- a/xfa/fxfa/app/xfa_ffchoicelist.cpp +++ b/xfa/fxfa/app/xfa_ffchoicelist.cpp @@ -196,8 +196,8 @@ void CXFA_FFListBox::OnProcessMessage(CFWL_Message* pMessage) { void CXFA_FFListBox::OnProcessEvent(CFWL_Event* pEvent) { CXFA_FFField::OnProcessEvent(pEvent); - switch (pEvent->GetClassID()) { - case CFWL_EventType::SelectChanged: { + switch (pEvent->GetType()) { + case CFWL_Event::Type::SelectChanged: { CFX_Int32Array arrSels; OnSelectChanged(m_pNormalWidget, arrSels); break; @@ -510,23 +510,23 @@ void CXFA_FFComboBox::OnProcessMessage(CFWL_Message* pMessage) { void CXFA_FFComboBox::OnProcessEvent(CFWL_Event* pEvent) { CXFA_FFField::OnProcessEvent(pEvent); - switch (pEvent->GetClassID()) { - case CFWL_EventType::SelectChanged: { + switch (pEvent->GetType()) { + case CFWL_Event::Type::SelectChanged: { CFWL_EvtSelectChanged* postEvent = static_cast(pEvent); OnSelectChanged(m_pNormalWidget, postEvent->bLButtonUp); break; } - case CFWL_EventType::EditChanged: { + case CFWL_Event::Type::EditChanged: { CFX_WideString wsChanged; OnTextChanged(m_pNormalWidget, wsChanged); break; } - case CFWL_EventType::PreDropDown: { + case CFWL_Event::Type::PreDropDown: { OnPreOpen(m_pNormalWidget); break; } - case CFWL_EventType::PostDropDown: { + case CFWL_Event::Type::PostDropDown: { OnPostOpen(m_pNormalWidget); break; } -- cgit v1.2.3