| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 FX_BOOL FXJSE_Value_IsUndefined(CFXJSE_Value* pValue); | 81 FX_BOOL FXJSE_Value_IsUndefined(CFXJSE_Value* pValue); |
| 82 FX_BOOL FXJSE_Value_IsNull(CFXJSE_Value* pValue); | 82 FX_BOOL FXJSE_Value_IsNull(CFXJSE_Value* pValue); |
| 83 FX_BOOL FXJSE_Value_IsBoolean(CFXJSE_Value* pValue); | 83 FX_BOOL FXJSE_Value_IsBoolean(CFXJSE_Value* pValue); |
| 84 FX_BOOL FXJSE_Value_IsUTF8String(CFXJSE_Value* pValue); | 84 FX_BOOL FXJSE_Value_IsUTF8String(CFXJSE_Value* pValue); |
| 85 FX_BOOL FXJSE_Value_IsNumber(CFXJSE_Value* pValue); | 85 FX_BOOL FXJSE_Value_IsNumber(CFXJSE_Value* pValue); |
| 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); | |
| 91 FX_FLOAT FXJSE_Value_ToFloat(CFXJSE_Value* pValue); | |
| 92 double FXJSE_Value_ToDouble(CFXJSE_Value* pValue); | |
| 93 int32_t FXJSE_Value_ToInteger(CFXJSE_Value* pValue); | |
| 94 void FXJSE_Value_ToUTF8String(CFXJSE_Value* pValue, | |
| 95 CFX_ByteString& szStrOutput); | |
| 96 | |
| 97 void FXJSE_Value_SetUndefined(CFXJSE_Value* pValue); | |
| 98 void FXJSE_Value_SetNull(CFXJSE_Value* pValue); | |
| 99 void FXJSE_Value_SetBoolean(CFXJSE_Value* pValue, FX_BOOL bBoolean); | |
| 100 void FXJSE_Value_SetUTF8String(CFXJSE_Value* pValue, | |
| 101 const CFX_ByteStringC& szString); | |
| 102 void FXJSE_Value_SetInteger(CFXJSE_Value* pValue, int32_t nInteger); | |
| 103 void FXJSE_Value_SetFloat(CFXJSE_Value* pValue, FX_FLOAT fFloat); | |
| 104 void FXJSE_Value_SetDouble(CFXJSE_Value* pValue, double dDouble); | |
| 105 void FXJSE_Value_SetObject(CFXJSE_Value* pValue, | |
| 106 CFXJSE_HostObject* lpObject, | |
| 107 CFXJSE_Class* pClass); | |
| 108 void FXJSE_Value_SetArray(CFXJSE_Value* pValue, | |
| 109 uint32_t uValueCount, | |
| 110 CFXJSE_Value** rgValues); | |
| 111 void FXJSE_Value_Set(CFXJSE_Value* pValue, CFXJSE_Value* pOriginalValue); | |
| 112 | |
| 113 FX_BOOL FXJSE_Value_GetObjectProp(CFXJSE_Value* pValue, | |
| 114 const CFX_ByteStringC& szPropName, | |
| 115 CFXJSE_Value* pPropValue); | |
| 116 FX_BOOL FXJSE_Value_SetObjectProp(CFXJSE_Value* pValue, | |
| 117 const CFX_ByteStringC& szPropName, | |
| 118 CFXJSE_Value* pPropValue); | |
| 119 FX_BOOL FXJSE_Value_GetObjectPropByIdx(CFXJSE_Value* pValue, | |
| 120 uint32_t uPropIdx, | |
| 121 CFXJSE_Value* pPropValue); | |
| 122 FX_BOOL FXJSE_Value_DeleteObjectProp(CFXJSE_Value* pValue, | |
| 123 const CFX_ByteStringC& szPropName); | |
| 124 FX_BOOL FXJSE_Value_ObjectHasOwnProp(CFXJSE_Value* pValue, | |
| 125 const CFX_ByteStringC& szPropName, | |
| 126 FX_BOOL bUseTypeGetter); | |
| 127 FX_BOOL FXJSE_Value_SetObjectOwnProp(CFXJSE_Value* pValue, | |
| 128 const CFX_ByteStringC& szPropName, | |
| 129 CFXJSE_Value* pPropValue); | |
| 130 | |
| 131 FX_BOOL FXJSE_Value_SetFunctionBind(CFXJSE_Value* pValue, | |
| 132 CFXJSE_Value* pOldFunction, | |
| 133 CFXJSE_Value* pNewThis); | |
| 134 | |
| 135 FX_BOOL FXJSE_ExecuteScript(CFXJSE_Context* pContext, | 90 FX_BOOL FXJSE_ExecuteScript(CFXJSE_Context* pContext, |
| 136 const FX_CHAR* szScript, | 91 const FX_CHAR* szScript, |
| 137 CFXJSE_Value* pRetValue, | 92 CFXJSE_Value* pRetValue, |
| 138 CFXJSE_Value* pNewThisObject = nullptr); | 93 CFXJSE_Value* pNewThisObject = nullptr); |
| 139 | 94 |
| 140 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, | 95 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, |
| 141 const CFX_ByteStringC& utf8Message); | 96 const CFX_ByteStringC& utf8Message); |
| 142 | 97 |
| 143 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ | 98 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ |
| OLD | NEW |