summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_fffield.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-08 17:00:20 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-09 15:39:17 +0000
commit9dfcdd24a599a1a2439b80e3910a2ac366fb445b (patch)
treecd97ad15cb6ac57b87ac00562251e219e71e0b6e /xfa/fxfa/cxfa_fffield.cpp
parent133542fbe7c01dd296d6ffd205281702ad914506 (diff)
downloadpdfium-9dfcdd24a599a1a2439b80e3910a2ac366fb445b.tar.xz
Move Process* methods to CXFA_Node
This CL moves the CXFA_WidgetAcc::Process* methods to CXFA_Node. Change-Id: Ic01b62e3786a6666a698f8877a8b7b295714bf79 Reviewed-on: https://pdfium-review.googlesource.com/22472 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_fffield.cpp')
-rw-r--r--xfa/fxfa/cxfa_fffield.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/xfa/fxfa/cxfa_fffield.cpp b/xfa/fxfa/cxfa_fffield.cpp
index d80fb1ad55..ffbaa43d62 100644
--- a/xfa/fxfa/cxfa_fffield.cpp
+++ b/xfa/fxfa/cxfa_fffield.cpp
@@ -741,26 +741,26 @@ void CXFA_FFField::OnProcessEvent(CFWL_Event* pEvent) {
CXFA_EventParam eParam;
eParam.m_eType = XFA_EVENT_MouseEnter;
eParam.m_pTarget = m_pNode->GetWidgetAcc();
- m_pNode->GetWidgetAcc()->ProcessEvent(
- GetDocView(), XFA_AttributeEnum::MouseEnter, &eParam);
+ m_pNode->ProcessEvent(GetDocView(), XFA_AttributeEnum::MouseEnter,
+ &eParam);
} else if (event->m_dwCmd == FWL_MouseCommand::Leave) {
CXFA_EventParam eParam;
eParam.m_eType = XFA_EVENT_MouseExit;
eParam.m_pTarget = m_pNode->GetWidgetAcc();
- m_pNode->GetWidgetAcc()->ProcessEvent(
- GetDocView(), XFA_AttributeEnum::MouseExit, &eParam);
+ m_pNode->ProcessEvent(GetDocView(), XFA_AttributeEnum::MouseExit,
+ &eParam);
} else if (event->m_dwCmd == FWL_MouseCommand::LeftButtonDown) {
CXFA_EventParam eParam;
eParam.m_eType = XFA_EVENT_MouseDown;
eParam.m_pTarget = m_pNode->GetWidgetAcc();
- m_pNode->GetWidgetAcc()->ProcessEvent(
- GetDocView(), XFA_AttributeEnum::MouseDown, &eParam);
+ m_pNode->ProcessEvent(GetDocView(), XFA_AttributeEnum::MouseDown,
+ &eParam);
} else if (event->m_dwCmd == FWL_MouseCommand::LeftButtonUp) {
CXFA_EventParam eParam;
eParam.m_eType = XFA_EVENT_MouseUp;
eParam.m_pTarget = m_pNode->GetWidgetAcc();
- m_pNode->GetWidgetAcc()->ProcessEvent(
- GetDocView(), XFA_AttributeEnum::MouseUp, &eParam);
+ m_pNode->ProcessEvent(GetDocView(), XFA_AttributeEnum::MouseUp,
+ &eParam);
}
break;
}
@@ -768,8 +768,7 @@ void CXFA_FFField::OnProcessEvent(CFWL_Event* pEvent) {
CXFA_EventParam eParam;
eParam.m_eType = XFA_EVENT_Click;
eParam.m_pTarget = m_pNode->GetWidgetAcc();
- m_pNode->GetWidgetAcc()->ProcessEvent(GetDocView(),
- XFA_AttributeEnum::Click, &eParam);
+ m_pNode->ProcessEvent(GetDocView(), XFA_AttributeEnum::Click, &eParam);
break;
}
default: