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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 FX_BOOL FXJSE_Value_IsObject(CFXJSE_Value* pValue); | 86 FX_BOOL FXJSE_Value_IsObject(CFXJSE_Value* pValue); |
87 FX_BOOL FXJSE_Value_IsArray(CFXJSE_Value* pValue); | 87 FX_BOOL FXJSE_Value_IsArray(CFXJSE_Value* pValue); |
88 FX_BOOL FXJSE_Value_IsFunction(CFXJSE_Value* pValue); | 88 FX_BOOL FXJSE_Value_IsFunction(CFXJSE_Value* pValue); |
89 | 89 |
90 FX_BOOL FXJSE_Value_ToBoolean(CFXJSE_Value* pValue); | 90 FX_BOOL FXJSE_Value_ToBoolean(CFXJSE_Value* pValue); |
91 FX_FLOAT FXJSE_Value_ToFloat(CFXJSE_Value* pValue); | 91 FX_FLOAT FXJSE_Value_ToFloat(CFXJSE_Value* pValue); |
92 double FXJSE_Value_ToDouble(CFXJSE_Value* pValue); | 92 double FXJSE_Value_ToDouble(CFXJSE_Value* pValue); |
93 int32_t FXJSE_Value_ToInteger(CFXJSE_Value* pValue); | 93 int32_t FXJSE_Value_ToInteger(CFXJSE_Value* pValue); |
94 void FXJSE_Value_ToUTF8String(CFXJSE_Value* pValue, | 94 void FXJSE_Value_ToUTF8String(CFXJSE_Value* pValue, |
95 CFX_ByteString& szStrOutput); | 95 CFX_ByteString& szStrOutput); |
96 CFXJSE_HostObject* FXJSE_Value_ToObject(CFXJSE_Value* pValue, | |
97 CFXJSE_Class* pClass); | |
98 | 96 |
99 void FXJSE_Value_SetUndefined(CFXJSE_Value* pValue); | 97 void FXJSE_Value_SetUndefined(CFXJSE_Value* pValue); |
100 void FXJSE_Value_SetNull(CFXJSE_Value* pValue); | 98 void FXJSE_Value_SetNull(CFXJSE_Value* pValue); |
101 void FXJSE_Value_SetBoolean(CFXJSE_Value* pValue, FX_BOOL bBoolean); | 99 void FXJSE_Value_SetBoolean(CFXJSE_Value* pValue, FX_BOOL bBoolean); |
102 void FXJSE_Value_SetUTF8String(CFXJSE_Value* pValue, | 100 void FXJSE_Value_SetUTF8String(CFXJSE_Value* pValue, |
103 const CFX_ByteStringC& szString); | 101 const CFX_ByteStringC& szString); |
104 void FXJSE_Value_SetInteger(CFXJSE_Value* pValue, int32_t nInteger); | 102 void FXJSE_Value_SetInteger(CFXJSE_Value* pValue, int32_t nInteger); |
105 void FXJSE_Value_SetFloat(CFXJSE_Value* pValue, FX_FLOAT fFloat); | 103 void FXJSE_Value_SetFloat(CFXJSE_Value* pValue, FX_FLOAT fFloat); |
106 void FXJSE_Value_SetDouble(CFXJSE_Value* pValue, double dDouble); | 104 void FXJSE_Value_SetDouble(CFXJSE_Value* pValue, double dDouble); |
107 void FXJSE_Value_SetObject(CFXJSE_Value* pValue, | 105 void FXJSE_Value_SetObject(CFXJSE_Value* pValue, |
(...skipping 28 matching lines...) Expand all Loading... |
136 | 134 |
137 FX_BOOL FXJSE_ExecuteScript(CFXJSE_Context* pContext, | 135 FX_BOOL FXJSE_ExecuteScript(CFXJSE_Context* pContext, |
138 const FX_CHAR* szScript, | 136 const FX_CHAR* szScript, |
139 CFXJSE_Value* pRetValue, | 137 CFXJSE_Value* pRetValue, |
140 CFXJSE_Value* pNewThisObject = nullptr); | 138 CFXJSE_Value* pNewThisObject = nullptr); |
141 | 139 |
142 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, | 140 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, |
143 const CFX_ByteStringC& utf8Message); | 141 const CFX_ByteStringC& utf8Message); |
144 | 142 |
145 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ | 143 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ |
OLD | NEW |