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

Side by Side Diff: fxjs/include/fxjs_v8.h

Issue 2151023002: Do not try to v8::Object::Clone() any objects (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 5 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 | « fxjs/fxjs_v8.cpp ('k') | no next file » | 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 // FXJS_V8 is a layer that makes it easier to define native objects in V8, but 7 // FXJS_V8 is a layer that makes it easier to define native objects in V8, but
8 // has no knowledge of PDF-specific native objects. It could in theory be used 8 // has no knowledge of PDF-specific native objects. It could in theory be used
9 // to implement other sets of native objects. 9 // to implement other sets of native objects.
10 10
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 const CFX_WideString& PropertyName, 256 const CFX_WideString& PropertyName,
257 v8::Local<v8::Object> pPut); 257 v8::Local<v8::Object> pPut);
258 void FXJS_PutObjectNull(v8::Isolate* pIsolate, 258 void FXJS_PutObjectNull(v8::Isolate* pIsolate,
259 v8::Local<v8::Object> pObj, 259 v8::Local<v8::Object> pObj,
260 const CFX_WideString& PropertyName); 260 const CFX_WideString& PropertyName);
261 unsigned FXJS_PutArrayElement(v8::Isolate* pIsolate, 261 unsigned FXJS_PutArrayElement(v8::Isolate* pIsolate,
262 v8::Local<v8::Array> pArray, 262 v8::Local<v8::Array> pArray,
263 unsigned index, 263 unsigned index,
264 v8::Local<v8::Value> pValue); 264 v8::Local<v8::Value> pValue);
265 265
266 v8::Local<v8::Value> FXJS_NewNull(v8::Isolate* pIsolate);
266 v8::Local<v8::Array> FXJS_NewArray(v8::Isolate* pIsolate); 267 v8::Local<v8::Array> FXJS_NewArray(v8::Isolate* pIsolate);
267 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, int number); 268 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, int number);
268 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, double number); 269 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, double number);
269 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, float number); 270 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, float number);
270 v8::Local<v8::Value> FXJS_NewBoolean(v8::Isolate* pIsolate, bool b); 271 v8::Local<v8::Value> FXJS_NewBoolean(v8::Isolate* pIsolate, bool b);
271 v8::Local<v8::Value> FXJS_NewObject(v8::Isolate* pIsolate,
272 v8::Local<v8::Object> pObj);
273 v8::Local<v8::Value> FXJS_NewObject2(v8::Isolate* pIsolate,
274 v8::Local<v8::Array> pObj);
275 v8::Local<v8::Value> FXJS_NewString(v8::Isolate* pIsolate, const wchar_t* str); 272 v8::Local<v8::Value> FXJS_NewString(v8::Isolate* pIsolate, const wchar_t* str);
276 v8::Local<v8::Value> FXJS_NewNull();
277 v8::Local<v8::Value> FXJS_NewDate(v8::Isolate* pIsolate, double d); 273 v8::Local<v8::Value> FXJS_NewDate(v8::Isolate* pIsolate, double d);
278 274
279 int FXJS_ToInt32(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); 275 int FXJS_ToInt32(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
280 bool FXJS_ToBoolean(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); 276 bool FXJS_ToBoolean(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
281 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); 277 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue);
282 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, 278 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate,
283 v8::Local<v8::Value> pValue); 279 v8::Local<v8::Value> pValue);
284 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, 280 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate,
285 v8::Local<v8::Value> pValue); 281 v8::Local<v8::Value> pValue);
286 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, 282 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate,
287 v8::Local<v8::Value> pValue); 283 v8::Local<v8::Value> pValue);
288 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); 284 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom);
289 285
290 #endif // FXJS_INCLUDE_FXJS_V8_H_ 286 #endif // FXJS_INCLUDE_FXJS_V8_H_
OLDNEW
« no previous file with comments | « fxjs/fxjs_v8.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698