| 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 // PDFium wrapper around V8 APIs. PDFium code should include this file rather | 7 // PDFium wrapper around V8 APIs. PDFium code should include this file rather |
| 8 // than including V8 headers directly. | 8 // than including V8 headers directly. |
| 9 | 9 |
| 10 #ifndef FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ | 10 #ifndef FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 v8::Local<v8::Value> pDefault); | 84 v8::Local<v8::Value> pDefault); |
| 85 | 85 |
| 86 void JS_InitialRuntime(IJS_Runtime* pJSRuntime, | 86 void JS_InitialRuntime(IJS_Runtime* pJSRuntime, |
| 87 IFXJS_Runtime* pFXRuntime, | 87 IFXJS_Runtime* pFXRuntime, |
| 88 IFXJS_Context* context, | 88 IFXJS_Context* context, |
| 89 v8::Global<v8::Context>& v8PersistentContext); | 89 v8::Global<v8::Context>& v8PersistentContext); |
| 90 void JS_ReleaseRuntime(IJS_Runtime* pJSRuntime, | 90 void JS_ReleaseRuntime(IJS_Runtime* pJSRuntime, |
| 91 v8::Global<v8::Context>& v8PersistentContext); | 91 v8::Global<v8::Context>& v8PersistentContext); |
| 92 void JS_Initial(unsigned int embedderDataSlot); | 92 void JS_Initial(unsigned int embedderDataSlot); |
| 93 void JS_Release(); | 93 void JS_Release(); |
| 94 int JS_Parse(IJS_Runtime* pJSRuntime, | |
| 95 IFXJS_Context* pJSContext, | |
| 96 const wchar_t* script, | |
| 97 long length, | |
| 98 FXJSErr* perror); | |
| 99 int JS_Execute(IJS_Runtime* pJSRuntime, | 94 int JS_Execute(IJS_Runtime* pJSRuntime, |
| 100 IFXJS_Context* pJSContext, | 95 IFXJS_Context* pJSContext, |
| 101 const wchar_t* script, | 96 const wchar_t* script, |
| 102 long length, | 97 long length, |
| 103 FXJSErr* perror); | 98 FXJSErr* perror); |
| 104 v8::Local<v8::Object> JS_NewFxDynamicObj(IJS_Runtime* pJSRuntime, | 99 v8::Local<v8::Object> JS_NewFxDynamicObj(IJS_Runtime* pJSRuntime, |
| 105 IFXJS_Context* pJSContext, | 100 IFXJS_Context* pJSContext, |
| 106 int nObjDefnID); | 101 int nObjDefnID); |
| 107 v8::Local<v8::Object> JS_GetStaticObj(IJS_Runtime* pJSRuntime, int nObjDefnID); | 102 v8::Local<v8::Object> JS_GetStaticObj(IJS_Runtime* pJSRuntime, int nObjDefnID); |
| 108 void JS_SetThisObj(IJS_Runtime* pJSRuntime, int nThisObjID); | 103 void JS_SetThisObj(IJS_Runtime* pJSRuntime, int nThisObjID); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 int JS_GetMinFromTime(double dt); | 200 int JS_GetMinFromTime(double dt); |
| 206 int JS_GetSecFromTime(double dt); | 201 int JS_GetSecFromTime(double dt); |
| 207 double JS_DateParse(const wchar_t* string); | 202 double JS_DateParse(const wchar_t* string); |
| 208 double JS_MakeDay(int nYear, int nMonth, int nDay); | 203 double JS_MakeDay(int nYear, int nMonth, int nDay); |
| 209 double JS_MakeTime(int nHour, int nMin, int nSec, int nMs); | 204 double JS_MakeTime(int nHour, int nMin, int nSec, int nMs); |
| 210 double JS_MakeDate(double day, double time); | 205 double JS_MakeDate(double day, double time); |
| 211 bool JS_PortIsNan(double d); | 206 bool JS_PortIsNan(double d); |
| 212 double JS_LocalTime(double d); | 207 double JS_LocalTime(double d); |
| 213 | 208 |
| 214 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ | 209 #endif // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
| OLD | NEW |