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 // 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 | 279 |
280 v8::Local<v8::Array> FXJS_NewArray(v8::Isolate* pIsolate); | 280 v8::Local<v8::Array> FXJS_NewArray(v8::Isolate* pIsolate); |
281 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, int number); | 281 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, int number); |
282 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, double number); | 282 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, double number); |
283 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, float number); | 283 v8::Local<v8::Value> FXJS_NewNumber(v8::Isolate* pIsolate, float number); |
284 v8::Local<v8::Value> FXJS_NewBoolean(v8::Isolate* pIsolate, bool b); | 284 v8::Local<v8::Value> FXJS_NewBoolean(v8::Isolate* pIsolate, bool b); |
285 v8::Local<v8::Value> FXJS_NewObject(v8::Isolate* pIsolate, | 285 v8::Local<v8::Value> FXJS_NewObject(v8::Isolate* pIsolate, |
286 v8::Local<v8::Object> pObj); | 286 v8::Local<v8::Object> pObj); |
287 v8::Local<v8::Value> FXJS_NewObject2(v8::Isolate* pIsolate, | 287 v8::Local<v8::Value> FXJS_NewObject2(v8::Isolate* pIsolate, |
288 v8::Local<v8::Array> pObj); | 288 v8::Local<v8::Array> pObj); |
289 v8::Local<v8::Value> FXJS_NewString(v8::Isolate* pIsolate, | 289 v8::Local<v8::Value> FXJS_NewString(v8::Isolate* pIsolate, const wchar_t* str); |
290 const wchar_t* string); | |
291 v8::Local<v8::Value> FXJS_NewNull(); | 290 v8::Local<v8::Value> FXJS_NewNull(); |
292 v8::Local<v8::Value> FXJS_NewDate(v8::Isolate* pIsolate, double d); | 291 v8::Local<v8::Value> FXJS_NewDate(v8::Isolate* pIsolate, double d); |
293 | 292 |
294 int FXJS_ToInt32(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); | 293 int FXJS_ToInt32(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); |
295 bool FXJS_ToBoolean(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); | 294 bool FXJS_ToBoolean(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); |
296 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); | 295 double FXJS_ToNumber(v8::Isolate* pIsolate, v8::Local<v8::Value> pValue); |
297 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, | 296 v8::Local<v8::Object> FXJS_ToObject(v8::Isolate* pIsolate, |
298 v8::Local<v8::Value> pValue); | 297 v8::Local<v8::Value> pValue); |
299 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, | 298 CFX_WideString FXJS_ToString(v8::Isolate* pIsolate, |
300 v8::Local<v8::Value> pValue); | 299 v8::Local<v8::Value> pValue); |
301 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, | 300 v8::Local<v8::Array> FXJS_ToArray(v8::Isolate* pIsolate, |
302 v8::Local<v8::Value> pValue); | 301 v8::Local<v8::Value> pValue); |
303 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); | 302 void FXJS_ValueCopy(v8::Local<v8::Value>& pTo, v8::Local<v8::Value> pFrom); |
304 | 303 |
305 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ | 304 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
OLD | NEW |