| 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 CORE_FPDFDOC_INCLUDE_CPDF_ACTIONFIELDS_H_ | 7 #ifndef CORE_FPDFDOC_CPDF_ACTIONFIELDS_H_ |
| 8 #define CORE_FPDFDOC_INCLUDE_CPDF_ACTIONFIELDS_H_ | 8 #define CORE_FPDFDOC_CPDF_ACTIONFIELDS_H_ |
| 9 | 9 |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| 11 | 11 |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 class CPDF_Action; | 14 class CPDF_Action; |
| 15 class CPDF_Object; | 15 class CPDF_Object; |
| 16 | 16 |
| 17 class CPDF_ActionFields { | 17 class CPDF_ActionFields { |
| 18 public: | 18 public: |
| 19 explicit CPDF_ActionFields(const CPDF_Action* pAction) : m_pAction(pAction) {} | 19 explicit CPDF_ActionFields(const CPDF_Action* pAction) : m_pAction(pAction) {} |
| 20 | 20 |
| 21 size_t GetFieldsCount() const; | 21 size_t GetFieldsCount() const; |
| 22 std::vector<CPDF_Object*> GetAllFields() const; | 22 std::vector<CPDF_Object*> GetAllFields() const; |
| 23 CPDF_Object* GetField(size_t iIndex) const; | 23 CPDF_Object* GetField(size_t iIndex) const; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 const CPDF_Action* const m_pAction; | 26 const CPDF_Action* const m_pAction; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ACTIONFIELDS_H_ | 29 #endif // CORE_FPDFDOC_CPDF_ACTIONFIELDS_H_ |
| OLD | NEW |