1 // Copyright 2017 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FXFA_CXFA_WIDGETACCITERATOR_H_ 8 #define XFA_FXFA_CXFA_WIDGETACCITERATOR_H_ 9 10 #include "core/fxcrt/unowned_ptr.h" 11 #include "xfa/fxfa/parser/cxfa_traversestrategy_xfacontainernode.h" 12 13 class CXFA_Node; 14 class CXFA_WidgetAcc; 15 16 class CXFA_WidgetAccIterator { 17 public: 18 explicit CXFA_WidgetAccIterator(CXFA_Node* pTravelRoot); 19 ~CXFA_WidgetAccIterator(); 20 21 CXFA_WidgetAcc* MoveToNext(); 22 void SkipTree(); 23 24 private: 25 CXFA_ContainerIterator m_ContentIterator; 26 UnownedPtr<CXFA_WidgetAcc> m_pCurWidgetAcc; 27 }; 28 29 #endif // XFA_FXFA_CXFA_WIDGETACCITERATOR_H_ 30