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_JAVASCRIPT_IJAVASCRIPT_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ |
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ |
9 | 9 |
10 #include "../../../core/include/fxcrt/fx_string.h" | 10 #include "core/include/fxcrt/fx_string.h" |
11 #include "../../../core/include/fxcrt/fx_system.h" | 11 #include "core/include/fxcrt/fx_system.h" |
12 | 12 |
13 class CPDFDoc_Environment; | 13 class CPDFDoc_Environment; |
14 class CPDFSDK_Annot; | 14 class CPDFSDK_Annot; |
15 class CPDFSDK_Document; | 15 class CPDFSDK_Document; |
16 class CPDF_Bookmark; | 16 class CPDF_Bookmark; |
17 class CPDF_FormField; | 17 class CPDF_FormField; |
18 | 18 |
19 // Records the details of an event and triggers JS execution for it. | 19 // Records the details of an event and triggers JS execution for it. |
20 class IJS_Context { | 20 class IJS_Context { |
21 public: | 21 public: |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 virtual CPDFSDK_Document* GetReaderDocument() = 0; | 146 virtual CPDFSDK_Document* GetReaderDocument() = 0; |
147 virtual int Execute(IJS_Context* cc, | 147 virtual int Execute(IJS_Context* cc, |
148 const wchar_t* script, | 148 const wchar_t* script, |
149 CFX_WideString* info) = 0; | 149 CFX_WideString* info) = 0; |
150 | 150 |
151 protected: | 151 protected: |
152 IJS_Runtime() {} | 152 IJS_Runtime() {} |
153 }; | 153 }; |
154 | 154 |
155 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ | 155 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_ |
OLD | NEW |