diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-23 16:52:14 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-23 16:52:14 +0000 |
commit | 8a0941d6deeee75bf1f9f51a00e61a15d3aa18d1 (patch) | |
tree | 7e7652eaaa9a5ffe41fe73d05059839e0b4a5688 /xfa/fxfa/cxfa_ffdocview.h | |
parent | 66b9fa0e45b9b31882f0b78bb9213f634e211bbf (diff) | |
download | pdfium-8a0941d6deeee75bf1f9f51a00e61a15d3aa18d1.tar.xz |
Remove CXFA_WidgetAcc from CXFA_FFDocView methods
This CL updates CXFA_FFDocView methods and members to use CXFA_Node
objects instead of CXFA_WidgetAcc objects.
Change-Id: Ic79af39ef49152a6d50ed5acfc153063db39353d
Reviewed-on: https://pdfium-review.googlesource.com/23590
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffdocview.h')
-rw-r--r-- | xfa/fxfa/cxfa_ffdocview.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/xfa/fxfa/cxfa_ffdocview.h b/xfa/fxfa/cxfa_ffdocview.h index d21d64c7ba..b3cc5b83b7 100644 --- a/xfa/fxfa/cxfa_ffdocview.h +++ b/xfa/fxfa/cxfa_ffdocview.h @@ -19,8 +19,8 @@ class CXFA_BindItems; class CXFA_FFWidgetHandler; class CXFA_FFDoc; class CXFA_FFWidget; +class CXFA_Node; class CXFA_Subform; -class CXFA_WidgetAcc; class CXFA_ReadyNodeIterator; extern const XFA_AttributeEnum gs_EventActivity[]; @@ -72,19 +72,19 @@ class CXFA_FFDocView { void RunInvalidate(); void RunDocClose(); - void ProcessValueChanged(CXFA_WidgetAcc* widgetAcc); + void ProcessValueChanged(CXFA_Node* node); void SetChangeMark(); - void AddValidateWidget(CXFA_WidgetAcc* pWidget); + void AddValidateNode(CXFA_Node* node); void AddCalculateNodeNotify(CXFA_Node* pNodeChange); - void AddCalculateWidgetAcc(CXFA_WidgetAcc* pWidgetAcc); + void AddCalculateNode(CXFA_Node* node); bool RunLayout(); void AddNewFormNode(CXFA_Node* pNode); void AddIndexChangedSubform(CXFA_Node* pNode); - CXFA_WidgetAcc* GetFocusWidgetAcc() const { return m_pFocusAcc.Get(); } - void SetFocusWidgetAcc(CXFA_WidgetAcc* pWidgetAcc); + CXFA_Node* GetFocusNode() const { return m_pFocusNode.Get(); } + void SetFocusNode(CXFA_Node* pNode); void DeleteLayoutItem(CXFA_FFWidget* pWidget); int32_t ExecEventActivityByDeepFirst(CXFA_Node* pFormNode, XFA_EVENTTYPE eEventType, @@ -116,12 +116,12 @@ class CXFA_FFDocView { UnownedPtr<CXFA_FFDoc> const m_pDoc; std::unique_ptr<CXFA_FFWidgetHandler> m_pWidgetHandler; CXFA_LayoutProcessor* m_pXFADocLayout = nullptr; // Not owned. - UnownedPtr<CXFA_WidgetAcc> m_pFocusAcc; + UnownedPtr<CXFA_Node> m_pFocusNode; UnownedPtr<CXFA_FFWidget> m_pFocusWidget; UnownedPtr<CXFA_FFWidget> m_pOldFocusWidget; std::map<CXFA_FFPageView*, std::unique_ptr<CFX_RectF>> m_mapPageInvalidate; - std::vector<CXFA_WidgetAcc*> m_ValidateAccs; - std::vector<CXFA_WidgetAcc*> m_CalculateAccs; + std::vector<CXFA_Node*> m_ValidateNodes; + std::vector<CXFA_Node*> m_CalculateNodes; std::vector<CXFA_BindItems*> m_BindItems; std::vector<CXFA_Node*> m_NewAddedNodes; std::vector<CXFA_Node*> m_IndexChangedSubforms; |