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_READYNODEITERATOR_H_ 8 #define XFA_FXFA_CXFA_READYNODEITERATOR_H_ 9 10 #include "core/fxcrt/unowned_ptr.h" 11 #include "xfa/fxfa/parser/cxfa_traversestrategy_xfacontainernode.h" 12 13 class CXFA_Node; 14 15 class CXFA_ReadyNodeIterator { 16 public: 17 explicit CXFA_ReadyNodeIterator(CXFA_Node* pTravelRoot); 18 ~CXFA_ReadyNodeIterator(); 19 20 CXFA_Node* MoveToNext(); 21 void SkipTree(); 22 23 private: 24 CXFA_ContainerIterator m_ContentIterator; 25 UnownedPtr<CXFA_Node> m_pCurNode; 26 }; 27 28 #endif // XFA_FXFA_CXFA_READYNODEITERATOR_H_ 29