| 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 XFA_FXJSE_INCLUDE_FXJSE_H_ | 7 #ifndef XFA_FXJSE_INCLUDE_FXJSE_H_ |
| 8 #define XFA_FXJSE_INCLUDE_FXJSE_H_ | 8 #define XFA_FXJSE_INCLUDE_FXJSE_H_ |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_string.h" | 10 #include "core/fxcrt/include/fx_string.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void FXJSE_Runtime_Release(FXJSE_HRUNTIME hRuntime, bool bOwnedRuntime); | 76 void FXJSE_Runtime_Release(FXJSE_HRUNTIME hRuntime, bool bOwnedRuntime); |
| 77 | 77 |
| 78 FXJSE_HCONTEXT FXJSE_Context_Create(FXJSE_HRUNTIME hRuntime, | 78 FXJSE_HCONTEXT FXJSE_Context_Create(FXJSE_HRUNTIME hRuntime, |
| 79 const FXJSE_CLASS* lpGlobalClass = nullptr, | 79 const FXJSE_CLASS* lpGlobalClass = nullptr, |
| 80 void* lpGlobalObject = nullptr); | 80 void* lpGlobalObject = nullptr); |
| 81 void FXJSE_Context_Release(FXJSE_HCONTEXT hContext); | 81 void FXJSE_Context_Release(FXJSE_HCONTEXT hContext); |
| 82 FXJSE_HVALUE FXJSE_Context_GetGlobalObject(FXJSE_HCONTEXT hContext); | 82 FXJSE_HVALUE FXJSE_Context_GetGlobalObject(FXJSE_HCONTEXT hContext); |
| 83 FXJSE_HRUNTIME FXJSE_Context_GetRuntime(FXJSE_HCONTEXT hContext); | 83 FXJSE_HRUNTIME FXJSE_Context_GetRuntime(FXJSE_HCONTEXT hContext); |
| 84 | 84 |
| 85 void FXJSE_Context_EnableCompatibleMode(FXJSE_HCONTEXT hContext, | 85 void FXJSE_Context_EnableCompatibleMode(FXJSE_HCONTEXT hContext, |
| 86 FX_DWORD dwCompatibleFlags); | 86 uint32_t dwCompatibleFlags); |
| 87 | 87 |
| 88 void FXJSE_DefineFunctions(FXJSE_HCONTEXT hContext, | 88 void FXJSE_DefineFunctions(FXJSE_HCONTEXT hContext, |
| 89 const FXJSE_FUNCTION* lpFunctions, | 89 const FXJSE_FUNCTION* lpFunctions, |
| 90 int nNum); | 90 int nNum); |
| 91 FXJSE_HCLASS FXJSE_DefineClass(FXJSE_HCONTEXT hContext, | 91 FXJSE_HCLASS FXJSE_DefineClass(FXJSE_HCONTEXT hContext, |
| 92 const FXJSE_CLASS* lpClass); | 92 const FXJSE_CLASS* lpClass); |
| 93 FXJSE_HCLASS FXJSE_GetClass(FXJSE_HCONTEXT hContext, | 93 FXJSE_HCLASS FXJSE_GetClass(FXJSE_HCONTEXT hContext, |
| 94 const CFX_ByteStringC& szName); | 94 const CFX_ByteStringC& szName); |
| 95 | 95 |
| 96 FXJSE_HVALUE FXJSE_Value_Create(FXJSE_HRUNTIME hRuntime); | 96 FXJSE_HVALUE FXJSE_Value_Create(FXJSE_HRUNTIME hRuntime); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 const CFX_ByteStringC& utf8Message); | 171 const CFX_ByteStringC& utf8Message); |
| 172 | 172 |
| 173 FX_BOOL FXJSE_ReturnValue_GetMessage(FXJSE_HVALUE hRetValue, | 173 FX_BOOL FXJSE_ReturnValue_GetMessage(FXJSE_HVALUE hRetValue, |
| 174 CFX_ByteString& utf8Name, | 174 CFX_ByteString& utf8Name, |
| 175 CFX_ByteString& utf8Message); | 175 CFX_ByteString& utf8Message); |
| 176 FX_BOOL FXJSE_ReturnValue_GetLineInfo(FXJSE_HVALUE hRetValue, | 176 FX_BOOL FXJSE_ReturnValue_GetLineInfo(FXJSE_HVALUE hRetValue, |
| 177 int32_t& nLine, | 177 int32_t& nLine, |
| 178 int32_t& nCol); | 178 int32_t& nCol); |
| 179 | 179 |
| 180 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ | 180 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ |
| OLD | NEW |