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 class IFXJS_Context | 10 class IFXJS_Context |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 }; | 67 }; |
68 | 68 |
69 class IFXJS_Runtime | 69 class IFXJS_Runtime |
70 { | 70 { |
71 public: | 71 public: |
72 virtual IFXJS_Context* NewContext() = 0; | 72 virtual IFXJS_Context* NewContext() = 0; |
73 virtual void ReleaseContext(IFXJS_Context * p
Context) = 0; | 73 virtual void ReleaseContext(IFXJS_Context * p
Context) = 0; |
74 virtual IFXJS_Context* GetCurrentContext() = 0; | 74 virtual IFXJS_Context* GetCurrentContext() = 0; |
75 | 75 |
76 virtual void SetReaderDocument(CPDFSDK_Docume
nt* pReaderDoc) = 0; | 76 virtual void SetReaderDocument(CPDFSDK_Docume
nt* pReaderDoc) = 0; |
77 virtual CPDFSDK_Document* GetReaderDocument() = 0; | |
78 | 77 |
79 » virtual void» » » » GetObjectNames(CFX_WideStringArr
ay& array) = 0; | 78 » virtual»CPDFSDK_Document*» GetReaderDocument() = 0; |
80 » virtual void» » » » GetObjectConsts(const CFX_WideSt
ring& swObjName, CFX_WideStringArray& array) = 0; | |
81 » virtual void» » » » GetObjectProps(const CFX_WideStr
ing& swObjName, CFX_WideStringArray& array) = 0; | |
82 » virtual void» » » » GetObjectMethods(const CFX_WideS
tring& swObjName, CFX_WideStringArray& array) = 0; | |
83 | 79 |
84 virtual void Exit() = 0; | |
85 virtual void Enter() = 0; | |
86 virtual FX_BOOL IsEntered() = 0; | |
87 virtual FX_BOOL GetHValueByName(FX_BSTR utf8Name
, FXJSE_HVALUE hValue) = 0; | 80 virtual FX_BOOL GetHValueByName(FX_BSTR utf8Name
, FXJSE_HVALUE hValue) = 0; |
88 virtual FX_BOOL SetHValueByName(FX_BSTR utf8Name
, FXJSE_HVALUE hValue) = 0; | 81 virtual FX_BOOL SetHValueByName(FX_BSTR utf8Name
, FXJSE_HVALUE hValue) = 0; |
89 | 82 |
90 protected: | 83 protected: |
91 ~IFXJS_Runtime() { } | 84 ~IFXJS_Runtime() { } |
92 }; | 85 }; |
93 | 86 |
94 class CPDFDoc_Environment; | 87 class CPDFDoc_Environment; |
95 class CJS_GlobalData; | 88 class CJS_GlobalData; |
96 | 89 |
(...skipping 11 matching lines...) Expand all Loading... |
108 void ReleaseGlobalDat
a(); | 101 void ReleaseGlobalDat
a(); |
109 private: | 102 private: |
110 FX_BOOL m_bInit; | 103 FX_BOOL m_bInit; |
111 int m_nRef; | 104 int m_nRef; |
112 CJS_GlobalData* m_pGlobalData; | 105 CJS_GlobalData* m_pGlobalData; |
113 FX_INT32 m_nGlobalDataCou
nt; | 106 FX_INT32 m_nGlobalDataCou
nt; |
114 }; | 107 }; |
115 | 108 |
116 #endif //_IJAVASCRIPT_H_ | 109 #endif //_IJAVASCRIPT_H_ |
117 | 110 |
OLD | NEW |