summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-23 16:46:44 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-23 16:46:44 +0000
commitee896918c970128787549051bb2942b61be2d70c (patch)
tree15ebebd3bf413a496e08d653266ddf8ac723c7ec /xfa
parent8632d41263962bffdaff5f5e91fd7c074846048f (diff)
downloadpdfium-ee896918c970128787549051bb2942b61be2d70c.tar.xz
Remove unused CXFA_FFDocView::ProcessWidgetEvent
Not called, removed. Change-Id: I2921407ed1b0e13763fcd150a092f4c2b45eb440 Reviewed-on: https://pdfium-review.googlesource.com/23531 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa')
-rw-r--r--xfa/fxfa/cxfa_ffdocview.cpp46
-rw-r--r--xfa/fxfa/cxfa_ffdocview.h2
2 files changed, 0 insertions, 48 deletions
diff --git a/xfa/fxfa/cxfa_ffdocview.cpp b/xfa/fxfa/cxfa_ffdocview.cpp
index 3a3637a1ef..375a319c20 100644
--- a/xfa/fxfa/cxfa_ffdocview.cpp
+++ b/xfa/fxfa/cxfa_ffdocview.cpp
@@ -256,52 +256,6 @@ void CXFA_FFDocView::ResetNode(CXFA_Node* pNode) {
m_pDoc->GetDocEnvironment()->SetChangeMark(m_pDoc.Get());
}
-int32_t CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam,
- CXFA_WidgetAcc* pWidgetAcc) {
- if (!pParam)
- return XFA_EVENTERROR_Error;
-
- if (pParam->m_eType == XFA_EVENT_Validate) {
- WideString wsValidateStr(L"preSubmit");
- CXFA_Node* pConfigItem =
- ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Config));
- if (pConfigItem) {
- CXFA_Acrobat* pAcrobatNode =
- pConfigItem->GetChild<CXFA_Acrobat>(0, XFA_Element::Acrobat, false);
- CXFA_Validate* pValidateNode =
- pAcrobatNode ? pAcrobatNode->GetChild<CXFA_Validate>(
- 0, XFA_Element::Validate, false)
- : nullptr;
- if (!pValidateNode) {
- CXFA_Present* pPresentNode =
- pConfigItem->GetChild<CXFA_Present>(0, XFA_Element::Present, false);
- pValidateNode = pPresentNode ? pPresentNode->GetChild<CXFA_Validate>(
- 0, XFA_Element::Validate, false)
- : nullptr;
- }
- if (pValidateNode)
- wsValidateStr = pValidateNode->JSObject()->GetContent(false);
- }
-
- if (!wsValidateStr.Contains(L"preSubmit"))
- return XFA_EVENTERROR_Success;
- }
-
- CXFA_Node* pNode = pWidgetAcc ? pWidgetAcc->GetNode() : nullptr;
- if (!pNode) {
- CXFA_Node* pRootItem =
- ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form));
- if (!pRootItem)
- return XFA_EVENTERROR_Error;
-
- pNode = pRootItem->GetChild<CXFA_Node>(0, XFA_Element::Subform, false);
- }
-
- ExecEventActivityByDeepFirst(pNode, pParam->m_eType, pParam->m_bIsFormReady,
- true);
- return XFA_EVENTERROR_Success;
-}
-
CXFA_FFWidget* CXFA_FFDocView::GetWidgetForNode(CXFA_Node* node) {
return static_cast<CXFA_FFWidget*>(GetXFALayout()->GetLayoutItem(node));
}
diff --git a/xfa/fxfa/cxfa_ffdocview.h b/xfa/fxfa/cxfa_ffdocview.h
index e943f446ec..72563dd2f4 100644
--- a/xfa/fxfa/cxfa_ffdocview.h
+++ b/xfa/fxfa/cxfa_ffdocview.h
@@ -56,8 +56,6 @@ class CXFA_FFDocView {
CXFA_FFPageView* GetPageView(int32_t nIndex) const;
void ResetNode(CXFA_Node* pNode);
- int32_t ProcessWidgetEvent(CXFA_EventParam* pParam,
- CXFA_WidgetAcc* pWidgetAcc);
CXFA_FFWidgetHandler* GetWidgetHandler();
std::unique_ptr<CXFA_ReadyNodeIterator> CreateReadyNodeIterator();
CXFA_FFWidget* GetFocusWidget() const { return m_pFocusWidget.Get(); }