Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: xfa/fxfa/xfa_ffdocview.h

Issue 2593163002: remove some CFX_ArrayTemplate in xfa_ffdocview.h (Closed)
Patch Set: duplicate code Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/app/xfa_ffnotify.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef XFA_FXFA_XFA_FFDOCVIEW_H_ 7 #ifndef XFA_FXFA_XFA_FFDOCVIEW_H_
8 #define XFA_FXFA_XFA_FFDOCVIEW_H_ 8 #define XFA_FXFA_XFA_FFDOCVIEW_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 bool ResetSingleWidgetAccData(CXFA_WidgetAcc* pWidgetAcc); 113 bool ResetSingleWidgetAccData(CXFA_WidgetAcc* pWidgetAcc);
114 CXFA_Node* GetRootSubform(); 114 CXFA_Node* GetRootSubform();
115 115
116 CXFA_FFDoc* const m_pDoc; 116 CXFA_FFDoc* const m_pDoc;
117 std::unique_ptr<CXFA_FFWidgetHandler> m_pWidgetHandler; 117 std::unique_ptr<CXFA_FFWidgetHandler> m_pWidgetHandler;
118 CXFA_LayoutProcessor* m_pXFADocLayout; // not owned. 118 CXFA_LayoutProcessor* m_pXFADocLayout; // not owned.
119 CXFA_WidgetAcc* m_pFocusAcc; // not owned. 119 CXFA_WidgetAcc* m_pFocusAcc; // not owned.
120 CXFA_FFWidget* m_pFocusWidget; // not owned. 120 CXFA_FFWidget* m_pFocusWidget; // not owned.
121 CXFA_FFWidget* m_pOldFocusWidget; // not owned. 121 CXFA_FFWidget* m_pOldFocusWidget; // not owned.
122 std::map<CXFA_FFPageView*, std::unique_ptr<CFX_RectF>> m_mapPageInvalidate; 122 std::map<CXFA_FFPageView*, std::unique_ptr<CFX_RectF>> m_mapPageInvalidate;
123 CFX_ArrayTemplate<CXFA_WidgetAcc*> m_ValidateAccs; 123 std::vector<CXFA_WidgetAcc*> m_ValidateAccs;
124 CFX_ArrayTemplate<CXFA_WidgetAcc*> m_CalculateAccs; 124 std::vector<CXFA_WidgetAcc*> m_CalculateAccs;
125 CFX_ArrayTemplate<CXFA_Node*> m_BindItems; 125 std::vector<CXFA_Node*> m_BindItems;
126 CFX_ArrayTemplate<CXFA_Node*> m_NewAddedNodes; 126 std::vector<CXFA_Node*> m_NewAddedNodes;
127 CFX_ArrayTemplate<CXFA_Node*> m_IndexChangedSubforms; 127 std::vector<CXFA_Node*> m_IndexChangedSubforms;
128 XFA_DOCVIEW_LAYOUTSTATUS m_iStatus; 128 XFA_DOCVIEW_LAYOUTSTATUS m_iStatus;
129 int32_t m_iLock; 129 int32_t m_iLock;
130 friend class CXFA_FFNotify; 130 friend class CXFA_FFNotify;
131 }; 131 };
132 132
133 class CXFA_WidgetAccIterator { 133 class CXFA_WidgetAccIterator {
134 public: 134 public:
135 CXFA_WidgetAccIterator(CXFA_FFDocView* pDocView, CXFA_Node* pTravelRoot); 135 CXFA_WidgetAccIterator(CXFA_FFDocView* pDocView, CXFA_Node* pTravelRoot);
136 ~CXFA_WidgetAccIterator(); 136 ~CXFA_WidgetAccIterator();
137 137
138 void Reset(); 138 void Reset();
139 CXFA_WidgetAcc* MoveToFirst(); 139 CXFA_WidgetAcc* MoveToFirst();
140 CXFA_WidgetAcc* MoveToLast(); 140 CXFA_WidgetAcc* MoveToLast();
141 CXFA_WidgetAcc* MoveToNext(); 141 CXFA_WidgetAcc* MoveToNext();
142 CXFA_WidgetAcc* MoveToPrevious(); 142 CXFA_WidgetAcc* MoveToPrevious();
143 CXFA_WidgetAcc* GetCurrentWidgetAcc(); 143 CXFA_WidgetAcc* GetCurrentWidgetAcc();
144 bool SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget); 144 bool SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget);
145 void SkipTree(); 145 void SkipTree();
146 146
147 protected: 147 protected:
148 CXFA_ContainerIterator m_ContentIterator; 148 CXFA_ContainerIterator m_ContentIterator;
149 CXFA_FFDocView* const m_pDocView; 149 CXFA_FFDocView* const m_pDocView;
150 CXFA_WidgetAcc* m_pCurWidgetAcc; // not owned. 150 CXFA_WidgetAcc* m_pCurWidgetAcc; // not owned.
151 }; 151 };
152 152
153 #endif // XFA_FXFA_XFA_FFDOCVIEW_H_ 153 #endif // XFA_FXFA_XFA_FFDOCVIEW_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffnotify.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698