| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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_FSDK_ACTIONHANDLER_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ |
| 8 #define FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ |
| 9 | 9 |
| 10 #include <memory> |
| 11 |
| 10 #include "core/include/fpdfdoc/fpdf_doc.h" | 12 #include "core/include/fpdfdoc/fpdf_doc.h" |
| 11 #include "core/include/fxcrt/fx_string.h" | 13 #include "core/include/fxcrt/fx_string.h" |
| 12 #include "fsdk_baseform.h" | 14 #include "fsdk_baseform.h" |
| 13 #include "third_party/base/nonstd_unique_ptr.h" | |
| 14 | 15 |
| 15 class CFX_PtrList; | 16 class CFX_PtrList; |
| 16 class CPDFSDK_Annot; | 17 class CPDFSDK_Annot; |
| 17 class CPDFSDK_Document; | 18 class CPDFSDK_Document; |
| 18 class CPDF_Bookmark; | 19 class CPDF_Bookmark; |
| 19 class CPDF_Dictionary; | 20 class CPDF_Dictionary; |
| 20 | 21 |
| 21 class CPDFSDK_FormActionHandler { | 22 class CPDFSDK_FormActionHandler { |
| 22 public: | 23 public: |
| 23 FX_BOOL DoAction_Hide(const CPDF_Action& action, CPDFSDK_Document* pDocument); | 24 FX_BOOL DoAction_Hide(const CPDF_Action& action, CPDFSDK_Document* pDocument); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 FX_BOOL IsValidDocView(CPDFSDK_Document* pDocument); | 110 FX_BOOL IsValidDocView(CPDFSDK_Document* pDocument); |
| 110 | 111 |
| 111 void DoAction_GoTo(CPDFSDK_Document* pDocument, const CPDF_Action& action); | 112 void DoAction_GoTo(CPDFSDK_Document* pDocument, const CPDF_Action& action); |
| 112 void DoAction_GoToR(CPDFSDK_Document* pDocument, const CPDF_Action& action); | 113 void DoAction_GoToR(CPDFSDK_Document* pDocument, const CPDF_Action& action); |
| 113 void DoAction_Launch(CPDFSDK_Document* pDocument, const CPDF_Action& action); | 114 void DoAction_Launch(CPDFSDK_Document* pDocument, const CPDF_Action& action); |
| 114 void DoAction_URI(CPDFSDK_Document* pDocument, const CPDF_Action& action); | 115 void DoAction_URI(CPDFSDK_Document* pDocument, const CPDF_Action& action); |
| 115 void DoAction_Named(CPDFSDK_Document* pDocument, const CPDF_Action& action); | 116 void DoAction_Named(CPDFSDK_Document* pDocument, const CPDF_Action& action); |
| 116 void DoAction_SetOCGState(CPDFSDK_Document* pDocument, | 117 void DoAction_SetOCGState(CPDFSDK_Document* pDocument, |
| 117 const CPDF_Action& action); | 118 const CPDF_Action& action); |
| 118 | 119 |
| 119 nonstd::unique_ptr<CPDFSDK_FormActionHandler> m_pFormActionHandler; | 120 std::unique_ptr<CPDFSDK_FormActionHandler> m_pFormActionHandler; |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ | 123 #endif // FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_ |
| OLD | NEW |