| 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 _IJAVASCRIPT_H_ | 7 #ifndef _IJAVASCRIPT_H_ |
| 8 #define _IJAVASCRIPT_H_ | 8 #define _IJAVASCRIPT_H_ |
| 9 | 9 |
| 10 #include "../../../core/include/fxcrt/fx_basic.h" |
| 11 |
| 12 class CPDF_Bookmark; |
| 13 class CPDF_FormField; |
| 14 class CPDFSDK_Annot; |
| 15 class CPDFSDK_Document; |
| 16 |
| 10 class IFXJS_Context | 17 class IFXJS_Context |
| 11 { | 18 { |
| 12 public: | 19 public: |
| 13 virtual ~IFXJS_Context() { } | 20 virtual ~IFXJS_Context() { } |
| 14 virtual FX_BOOL Compile(const CFX_WideString& sc
ript, CFX_WideString& info) = 0; | 21 virtual FX_BOOL Compile(const CFX_WideString& sc
ript, CFX_WideString& info) = 0; |
| 15 virtual FX_BOOL RunScript(const CFX_WideString&
script, CFX_WideString& info) = 0; | 22 virtual FX_BOOL RunScript(const CFX_WideString&
script, CFX_WideString& info) = 0; |
| 16 | 23 |
| 17 virtual void OnApp_Init() = 0; | 24 virtual void OnApp_Init() = 0; |
| 18 | 25 |
| 19 virtual void OnDoc_Open(CPDFSDK_Document* pDo
c, const CFX_WideString& strTargetName) = 0; | 26 virtual void OnDoc_Open(CPDFSDK_Document* pDo
c, const CFX_WideString& strTargetName) = 0; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void ReleaseGlobalDat
a(); | 104 void ReleaseGlobalDat
a(); |
| 98 private: | 105 private: |
| 99 FX_BOOL m_bInit; | 106 FX_BOOL m_bInit; |
| 100 int m_nRef; | 107 int m_nRef; |
| 101 CJS_GlobalData* m_pGlobalData; | 108 CJS_GlobalData* m_pGlobalData; |
| 102 FX_INT32 m_nGlobalDataCou
nt; | 109 FX_INT32 m_nGlobalDataCou
nt; |
| 103 }; | 110 }; |
| 104 | 111 |
| 105 #endif //_IJAVASCRIPT_H_ | 112 #endif //_IJAVASCRIPT_H_ |
| 106 | 113 |
| OLD | NEW |