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

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

Issue 2014863002: Revert of Remove parameters which are always null (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « xfa/fxjse/class.cpp ('k') | xfa/fxjse/util_inline.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 FX_BOOL FXJSE_Value_IsNumber(FXJSE_HVALUE hValue); 96 FX_BOOL FXJSE_Value_IsNumber(FXJSE_HVALUE hValue);
97 FX_BOOL FXJSE_Value_IsObject(FXJSE_HVALUE hValue); 97 FX_BOOL FXJSE_Value_IsObject(FXJSE_HVALUE hValue);
98 FX_BOOL FXJSE_Value_IsArray(FXJSE_HVALUE hValue); 98 FX_BOOL FXJSE_Value_IsArray(FXJSE_HVALUE hValue);
99 FX_BOOL FXJSE_Value_IsFunction(FXJSE_HVALUE hValue); 99 FX_BOOL FXJSE_Value_IsFunction(FXJSE_HVALUE hValue);
100 100
101 FX_BOOL FXJSE_Value_ToBoolean(FXJSE_HVALUE hValue); 101 FX_BOOL FXJSE_Value_ToBoolean(FXJSE_HVALUE hValue);
102 FX_FLOAT FXJSE_Value_ToFloat(FXJSE_HVALUE hValue); 102 FX_FLOAT FXJSE_Value_ToFloat(FXJSE_HVALUE hValue);
103 double FXJSE_Value_ToDouble(FXJSE_HVALUE hValue); 103 double FXJSE_Value_ToDouble(FXJSE_HVALUE hValue);
104 int32_t FXJSE_Value_ToInteger(FXJSE_HVALUE hValue); 104 int32_t FXJSE_Value_ToInteger(FXJSE_HVALUE hValue);
105 void FXJSE_Value_ToUTF8String(FXJSE_HVALUE hValue, CFX_ByteString& szStrOutput); 105 void FXJSE_Value_ToUTF8String(FXJSE_HVALUE hValue, CFX_ByteString& szStrOutput);
106 void* FXJSE_Value_ToObject(FXJSE_HVALUE hValue); 106 void* FXJSE_Value_ToObject(FXJSE_HVALUE hValue, FXJSE_HCLASS hClass);
107 107
108 void FXJSE_Value_SetUndefined(FXJSE_HVALUE hValue); 108 void FXJSE_Value_SetUndefined(FXJSE_HVALUE hValue);
109 void FXJSE_Value_SetNull(FXJSE_HVALUE hValue); 109 void FXJSE_Value_SetNull(FXJSE_HVALUE hValue);
110 void FXJSE_Value_SetBoolean(FXJSE_HVALUE hValue, FX_BOOL bBoolean); 110 void FXJSE_Value_SetBoolean(FXJSE_HVALUE hValue, FX_BOOL bBoolean);
111 void FXJSE_Value_SetUTF8String(FXJSE_HVALUE hValue, 111 void FXJSE_Value_SetUTF8String(FXJSE_HVALUE hValue,
112 const CFX_ByteStringC& szString); 112 const CFX_ByteStringC& szString);
113 void FXJSE_Value_SetInteger(FXJSE_HVALUE hValue, int32_t nInteger); 113 void FXJSE_Value_SetInteger(FXJSE_HVALUE hValue, int32_t nInteger);
114 void FXJSE_Value_SetFloat(FXJSE_HVALUE hValue, FX_FLOAT fFloat); 114 void FXJSE_Value_SetFloat(FXJSE_HVALUE hValue, FX_FLOAT fFloat);
115 void FXJSE_Value_SetDouble(FXJSE_HVALUE hValue, double dDouble); 115 void FXJSE_Value_SetDouble(FXJSE_HVALUE hValue, double dDouble);
116 void FXJSE_Value_SetObject(FXJSE_HVALUE hValue, 116 void FXJSE_Value_SetObject(FXJSE_HVALUE hValue,
(...skipping 28 matching lines...) Expand all
145 145
146 FX_BOOL FXJSE_ExecuteScript(FXJSE_HCONTEXT hContext, 146 FX_BOOL FXJSE_ExecuteScript(FXJSE_HCONTEXT hContext,
147 const FX_CHAR* szScript, 147 const FX_CHAR* szScript,
148 FXJSE_HVALUE hRetValue, 148 FXJSE_HVALUE hRetValue,
149 FXJSE_HVALUE hNewThisObject = nullptr); 149 FXJSE_HVALUE hNewThisObject = nullptr);
150 150
151 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name, 151 void FXJSE_ThrowMessage(const CFX_ByteStringC& utf8Name,
152 const CFX_ByteStringC& utf8Message); 152 const CFX_ByteStringC& utf8Message);
153 153
154 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_ 154 #endif // XFA_FXJSE_INCLUDE_FXJSE_H_
OLDNEW
« no previous file with comments | « xfa/fxjse/class.cpp ('k') | xfa/fxjse/util_inline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698