Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: xfa/fxjse/include/fxjse.h

Issue 2026993003: Remove FXJSE_Value_ToObject and call methods directly (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@context_cleanup_3
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 FX_BOOL FXJSE_Value_IsObject(CFXJSE_Value* pValue); 93 FX_BOOL FXJSE_Value_IsObject(CFXJSE_Value* pValue);
94 FX_BOOL FXJSE_Value_IsArray(CFXJSE_Value* pValue); 94 FX_BOOL FXJSE_Value_IsArray(CFXJSE_Value* pValue);
95 FX_BOOL FXJSE_Value_IsFunction(CFXJSE_Value* pValue); 95 FX_BOOL FXJSE_Value_IsFunction(CFXJSE_Value* pValue);
96 96
97 FX_BOOL FXJSE_Value_ToBoolean(CFXJSE_Value* pValue); 97 FX_BOOL FXJSE_Value_ToBoolean(CFXJSE_Value* pValue);
98 FX_FLOAT FXJSE_Value_ToFloat(CFXJSE_Value* pValue); 98 FX_FLOAT FXJSE_Value_ToFloat(CFXJSE_Value* pValue);
99 double FXJSE_Value_ToDouble(CFXJSE_Value* pValue); 99 double FXJSE_Value_ToDouble(CFXJSE_Value* pValue);
100 int32_t FXJSE_Value_ToInteger(CFXJSE_Value* pValue); 100 int32_t FXJSE_Value_ToInteger(CFXJSE_Value* pValue);
101 void FXJSE_Value_ToUTF8String(CFXJSE_Value* pValue, 101 void FXJSE_Value_ToUTF8String(CFXJSE_Value* pValue,
102 CFX_ByteString& szStrOutput); 102 CFX_ByteString& szStrOutput);
103 CFXJSE_HostObject* FXJSE_Value_ToObject(CFXJSE_Value* pValue,
104 CFXJSE_Class* pClass);
105 103
106 void FXJSE_Value_SetUndefined(CFXJSE_Value* pValue); 104 void FXJSE_Value_SetUndefined(CFXJSE_Value* pValue);
107 void FXJSE_Value_SetNull(CFXJSE_Value* pValue); 105 void FXJSE_Value_SetNull(CFXJSE_Value* pValue);
108 void FXJSE_Value_SetBoolean(CFXJSE_Value* pValue, FX_BOOL bBoolean); 106 void FXJSE_Value_SetBoolean(CFXJSE_Value* pValue, FX_BOOL bBoolean);
109 void FXJSE_Value_SetUTF8String(CFXJSE_Value* pValue, 107 void FXJSE_Value_SetUTF8String(CFXJSE_Value* pValue,
110 const CFX_ByteStringC& szString); 108 const CFX_ByteStringC& szString);
111 void FXJSE_Value_SetInteger(CFXJSE_Value* pValue, int32_t nInteger); 109 void FXJSE_Value_SetInteger(CFXJSE_Value* pValue, int32_t nInteger);
112 void FXJSE_Value_SetFloat(CFXJSE_Value* pValue, FX_FLOAT fFloat); 110 void FXJSE_Value_SetFloat(CFXJSE_Value* pValue, FX_FLOAT fFloat);
113 void FXJSE_Value_SetDouble(CFXJSE_Value* pValue, double dDouble); 111 void FXJSE_Value_SetDouble(CFXJSE_Value* pValue, double dDouble);
114 void FXJSE_Value_SetObject(CFXJSE_Value* pValue, 112 void FXJSE_Value_SetObject(CFXJSE_Value* pValue,
(...skipping 28 matching lines...) Expand all
143 141
144 FX_BOOL FXJSE_ExecuteScript(CFXJSE_Context* pContext, 142 FX_BOOL FXJSE_ExecuteScript(CFXJSE_Context* pContext,
145 const FX_CHAR* szScript, 143 const FX_CHAR* szScript,
146 CFXJSE_Value* pRetValue, 144 CFXJSE_Value* pRetValue,
147 CFXJSE_Value* pNewThisObject = nullptr); 145 CFXJSE_Value* pNewThisObject = nullptr);
148 146
149 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, 147 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name,
150 const CFX_ByteStringC& utf8Message); 148 const CFX_ByteStringC& utf8Message);
151 149
152 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ 150 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698