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

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

Issue 2012253002: Remove FXJSE_HOBJECT and FXJSE_HVALUE for CFXJSE_Value* (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@fxjse_hclass
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/include/fxjse.h ('k') | xfa/fxjse/value.cpp » ('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_VALUE_H_ 7 #ifndef XFA_FXJSE_VALUE_H_
8 #define XFA_FXJSE_VALUE_H_ 8 #define XFA_FXJSE_VALUE_H_
9 9
10 #include "xfa/fxjse/scope_inline.h" 10 #include "xfa/fxjse/scope_inline.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 FX_BOOL SetObjectProperty(uint32_t uPropIdx, CFXJSE_Value* lpPropValue); 194 FX_BOOL SetObjectProperty(uint32_t uPropIdx, CFXJSE_Value* lpPropValue);
195 FX_BOOL DeleteObjectProperty(const CFX_ByteStringC& szPropName); 195 FX_BOOL DeleteObjectProperty(const CFX_ByteStringC& szPropName);
196 FX_BOOL HasObjectOwnProperty(const CFX_ByteStringC& szPropName, 196 FX_BOOL HasObjectOwnProperty(const CFX_ByteStringC& szPropName,
197 FX_BOOL bUseTypeGetter); 197 FX_BOOL bUseTypeGetter);
198 FX_BOOL SetObjectOwnProperty(const CFX_ByteStringC& szPropName, 198 FX_BOOL SetObjectOwnProperty(const CFX_ByteStringC& szPropName,
199 CFXJSE_Value* lpPropValue); 199 CFXJSE_Value* lpPropValue);
200 FX_BOOL SetFunctionBind(CFXJSE_Value* lpOldFunction, CFXJSE_Value* lpNewThis); 200 FX_BOOL SetFunctionBind(CFXJSE_Value* lpOldFunction, CFXJSE_Value* lpNewThis);
201 FX_BOOL Call(CFXJSE_Value* lpReceiver, 201 FX_BOOL Call(CFXJSE_Value* lpReceiver,
202 CFXJSE_Value* lpRetValue, 202 CFXJSE_Value* lpRetValue,
203 uint32_t nArgCount, 203 uint32_t nArgCount,
204 FXJSE_HVALUE* lpArgs); 204 CFXJSE_Value** lpArgs);
205 205
206 V8_INLINE v8::Isolate* GetIsolate() const { return m_pIsolate; } 206 V8_INLINE v8::Isolate* GetIsolate() const { return m_pIsolate; }
207 V8_INLINE const v8::Global<v8::Value>& DirectGetValue() const { 207 V8_INLINE const v8::Global<v8::Value>& DirectGetValue() const {
208 return m_hValue; 208 return m_hValue;
209 } 209 }
210 V8_INLINE void ForceSetValue(v8::Local<v8::Value> hValue) { 210 V8_INLINE void ForceSetValue(v8::Local<v8::Value> hValue) {
211 m_hValue.Reset(m_pIsolate, hValue); 211 m_hValue.Reset(m_pIsolate, hValue);
212 } 212 }
213 V8_INLINE void Assign(const CFXJSE_Value* lpValue) { 213 V8_INLINE void Assign(const CFXJSE_Value* lpValue) {
214 if (lpValue) { 214 if (lpValue) {
(...skipping 11 matching lines...) Expand all
226 226
227 CFXJSE_Value(); 227 CFXJSE_Value();
228 CFXJSE_Value(const CFXJSE_Value&); 228 CFXJSE_Value(const CFXJSE_Value&);
229 CFXJSE_Value& operator=(const CFXJSE_Value&); 229 CFXJSE_Value& operator=(const CFXJSE_Value&);
230 230
231 v8::Isolate* m_pIsolate; 231 v8::Isolate* m_pIsolate;
232 v8::Global<v8::Value> m_hValue; 232 v8::Global<v8::Value> m_hValue;
233 }; 233 };
234 234
235 #endif // XFA_FXJSE_VALUE_H_ 235 #endif // XFA_FXJSE_VALUE_H_
OLDNEW
« no previous file with comments | « xfa/fxjse/include/fxjse.h ('k') | xfa/fxjse/value.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698