diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-09 10:02:55 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-09 15:39:46 +0000 |
commit | 95bb9748c9292d282e2425d4500f15f5c48c2b34 (patch) | |
tree | f1985696c8c842125b13f6a2372f2f10da7383b9 /xfa/fxfa/parser/cxfa_node.h | |
parent | 9dfcdd24a599a1a2439b80e3910a2ac366fb445b (diff) | |
download | pdfium-95bb9748c9292d282e2425d4500f15f5c48c2b34.tar.xz |
More Execute* methods to CXFA_Nodechromium/3317
This Cl moves the two Execute* methods from CXFA_WidgetAcc to CXFA_Node.
Change-Id: I4e1d6cd2159028800b855558273ca80aad365570
Reviewed-on: https://pdfium-review.googlesource.com/22550
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_node.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_node.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index ed948cf155..7bf0654b58 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -31,6 +31,7 @@ class CXFA_Font; class CXFA_Margin; class CXFA_Occur; class CXFA_Para; +class CXFA_Script; class CXFA_Validate; class CXFA_Value; class CXFA_WidgetAcc; @@ -271,6 +272,13 @@ class CXFA_Node : public CXFA_Object { int32_t ProcessCalculate(CXFA_FFDocView* docView); int32_t ProcessValidate(CXFA_FFDocView* docView, int32_t iFlags); + int32_t ExecuteScript(CXFA_FFDocView* docView, + CXFA_Script* script, + CXFA_EventParam* pEventParam); + std::pair<int32_t, bool> ExecuteBoolScript(CXFA_FFDocView* docView, + CXFA_Script* script, + CXFA_EventParam* pEventParam); + protected: CXFA_Node(CXFA_Document* pDoc, XFA_PacketType ePacket, @@ -329,6 +337,7 @@ class CXFA_Node : public CXFA_Object { CXFA_Node* m_pParent; CFX_XMLNode* m_pXMLNode; const XFA_PacketType m_ePacket; + uint8_t m_ExecuteRecursionDepth = 0; uint16_t m_uNodeFlags; uint32_t m_dwNameHash; CXFA_Node* m_pAuxNode; |