| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 FPDFSDK_INCLUDE_CPDFSDK_ANNOTITERATOR_H_ | 7 #ifndef FPDFSDK_CPDFSDK_ANNOTITERATOR_H_ |
| 8 #define FPDFSDK_INCLUDE_CPDFSDK_ANNOTITERATOR_H_ | 8 #define FPDFSDK_CPDFSDK_ANNOTITERATOR_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 class CPDFSDK_Annot; | 12 class CPDFSDK_Annot; |
| 13 class CPDFSDK_PageView; | 13 class CPDFSDK_PageView; |
| 14 | 14 |
| 15 class CPDFSDK_AnnotIterator { | 15 class CPDFSDK_AnnotIterator { |
| 16 public: | 16 public: |
| 17 CPDFSDK_AnnotIterator(CPDFSDK_PageView* pPageView, bool bReverse); | 17 CPDFSDK_AnnotIterator(CPDFSDK_PageView* pPageView, bool bReverse); |
| 18 ~CPDFSDK_AnnotIterator(); | 18 ~CPDFSDK_AnnotIterator(); |
| 19 | 19 |
| 20 CPDFSDK_Annot* Next(); | 20 CPDFSDK_Annot* Next(); |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 CPDFSDK_Annot* NextAnnot(); | 23 CPDFSDK_Annot* NextAnnot(); |
| 24 CPDFSDK_Annot* PrevAnnot(); | 24 CPDFSDK_Annot* PrevAnnot(); |
| 25 | 25 |
| 26 std::vector<CPDFSDK_Annot*> m_iteratorAnnotList; | 26 std::vector<CPDFSDK_Annot*> m_iteratorAnnotList; |
| 27 const bool m_bReverse; | 27 const bool m_bReverse; |
| 28 std::size_t m_pos; | 28 std::size_t m_pos; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 #endif // FPDFSDK_INCLUDE_CPDFSDK_ANNOTITERATOR_H_ | 31 #endif // FPDFSDK_CPDFSDK_ANNOTITERATOR_H_ |
| OLD | NEW |