1 // Copyright 2016 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 CORE_FPDFDOC_CPDF_ACTIONFIELDS_H_ 8 #define CORE_FPDFDOC_CPDF_ACTIONFIELDS_H_ 9 10 #include <stddef.h> 11 12 #include <vector> 13 14 #include "core/fxcrt/unowned_ptr.h" 15 16 class CPDF_Action; 17 class CPDF_Object; 18 19 class CPDF_ActionFields { 20 public: 21 explicit CPDF_ActionFields(const CPDF_Action* pAction); 22 ~CPDF_ActionFields(); 23 24 size_t GetFieldsCount() const; 25 std::vector<CPDF_Object*> GetAllFields() const; 26 CPDF_Object* GetField(size_t iIndex) const; 27 28 private: 29 UnownedPtr<const CPDF_Action> const m_pAction; 30 }; 31 32 #endif // CORE_FPDFDOC_CPDF_ACTIONFIELDS_H_ 33