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 FXJSAPI_H | 10 #ifndef FXJSAPI_H |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 unsigned JS_CalcHash(const wchar_
t* main); | 79 unsigned JS_CalcHash(const wchar_
t* main); |
80 const wchar_t* JS_GetTypeof(v8::Handle<v8::Valu
e> pObj); | 80 const wchar_t* JS_GetTypeof(v8::Handle<v8::Valu
e> pObj); |
81 void JS_SetPrivate(IJS_Runtim
e* pJSRuntime, v8::Handle<v8::Object> pObj, void* p); | 81 void JS_SetPrivate(IJS_Runtim
e* pJSRuntime, v8::Handle<v8::Object> pObj, void* p); |
82 void* JS_GetPrivate(IJS_Runtim
e* pJSRuntime, v8::Handle<v8::Object> pObj); | 82 void* JS_GetPrivate(IJS_Runtim
e* pJSRuntime, v8::Handle<v8::Object> pObj); |
83 void JS_SetPrivate(v8::Handle
<v8::Object> pObj, void* p); | 83 void JS_SetPrivate(v8::Handle
<v8::Object> pObj, void* p); |
84 void* JS_GetPrivate(v8::Handle
<v8::Object> pObj); | 84 void* JS_GetPrivate(v8::Handle
<v8::Object> pObj); |
85 void JS_FreePrivate(void* p); | 85 void JS_FreePrivate(void* p); |
86 void JS_FreePrivate(v8::Handl
e<v8::Object> pObj); | 86 void JS_FreePrivate(v8::Handl
e<v8::Object> pObj); |
87 v8::Handle<v8::Value> JS_GetObjectValue(v8::Handle<v8::Object>
pObj); | 87 v8::Handle<v8::Value> JS_GetObjectValue(v8::Handle<v8::Object>
pObj); |
88 v8::Handle<v8::Value> JS_GetObjectElement(IJS_Runtime* pJSRunt
ime, v8::Handle<v8::Object> pObj,const wchar_t* PropertyName); | 88 v8::Handle<v8::Value> JS_GetObjectElement(IJS_Runtime* pJSRunt
ime, v8::Handle<v8::Object> pObj,const wchar_t* PropertyName); |
89 v8::Handle<v8::Array>» » » JS_GetObjectElementNames(v8::Handle<v8::
Object> pObj); | 89 v8::Handle<v8::Array>» » » JS_GetObjectElementNames(IJS_Runtime* pJ
SRuntime, v8::Handle<v8::Object> pObj); |
90 void JS_PutObjectString(IJS_R
untime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, con
st wchar_t* sValue); | 90 void JS_PutObjectString(IJS_R
untime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, con
st wchar_t* sValue); |
91 void JS_PutObjectNumber(IJS_R
untime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, int
nValue); | 91 void JS_PutObjectNumber(IJS_R
untime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, int
nValue); |
92 void JS_PutObjectNumber(IJS_R
untime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, flo
at fValue); | 92 void JS_PutObjectNumber(IJS_R
untime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, flo
at fValue); |
93 void JS_PutObjectNumber(IJS_R
untime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, dou
ble dValue); | 93 void JS_PutObjectNumber(IJS_R
untime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, dou
ble dValue); |
94 void JS_PutObjectBoolean(IJS_
Runtime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, bo
ol bValue); | 94 void JS_PutObjectBoolean(IJS_
Runtime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, bo
ol bValue); |
95 void JS_PutObjectObject(IJS_R
untime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, v8:
:Handle<v8::Object> pPut); | 95 void JS_PutObjectObject(IJS_R
untime* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName, v8:
:Handle<v8::Object> pPut); |
96 void JS_PutObjectNull(IJS_Run
time* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName); | 96 void JS_PutObjectNull(IJS_Run
time* pJSRuntime,v8::Handle<v8::Object> pObj, const wchar_t* PropertyName); |
97 unsigned» » » » » » JS_PutArrayElement(v8::H
andle<v8::Array> pArray,unsigned index,v8::Handle<v8::Value> pValue,FXJSVALUETYP
E eType); | 97 unsigned» » » » » » JS_PutArrayElement(IJS_R
untime* pJSRuntime, v8::Handle<v8::Array> pArray,unsigned index,v8::Handle<v8::V
alue> pValue,FXJSVALUETYPE eType); |
98 v8::Handle<v8::Value>» » » JS_GetArrayElemnet(v8::Handle<v8::Array>
pArray,unsigned index); | 98 v8::Handle<v8::Value>» » » JS_GetArrayElement(IJS_Runtime* pJSRunti
me, v8::Handle<v8::Array> pArray,unsigned index); |
99 unsigned JS_GetArrayLength(v8::Ha
ndle<v8::Array> pArray); | 99 unsigned JS_GetArrayLength(v8::Ha
ndle<v8::Array> pArray); |
100 v8::Handle<v8::Value>» » » JS_GetListValue(v8::Handle<v8::Value> pL
ist, int index); | 100 v8::Handle<v8::Value>» » » JS_GetListValue(IJS_Runtime* pJSRuntime,
v8::Handle<v8::Value> pList, int index); |
101 | 101 |
102 | 102 |
103 v8::Handle<v8::Array> JS_NewArray(IJS_Runtime* pJSRuntime); | 103 v8::Handle<v8::Array> JS_NewArray(IJS_Runtime* pJSRuntime); |
104 v8::Handle<v8::Value> JS_NewNumber(IJS_Runtime* pJSRuntime,int
number); | 104 v8::Handle<v8::Value> JS_NewNumber(IJS_Runtime* pJSRuntime,int
number); |
105 v8::Handle<v8::Value> JS_NewNumber(IJS_Runtime* pJSRuntime,dou
ble number); | 105 v8::Handle<v8::Value> JS_NewNumber(IJS_Runtime* pJSRuntime,dou
ble number); |
106 v8::Handle<v8::Value> JS_NewNumber(IJS_Runtime* pJSRuntime,flo
at number); | 106 v8::Handle<v8::Value> JS_NewNumber(IJS_Runtime* pJSRuntime,flo
at number); |
107 v8::Handle<v8::Value> JS_NewBoolean(IJS_Runtime* pJSRuntime,bo
ol b); | 107 v8::Handle<v8::Value> JS_NewBoolean(IJS_Runtime* pJSRuntime,bo
ol b); |
108 v8::Handle<v8::Value> JS_NewObject(IJS_Runtime* pJSRuntime,v8:
:Handle<v8::Object> pObj); | 108 v8::Handle<v8::Value> JS_NewObject(IJS_Runtime* pJSRuntime,v8:
:Handle<v8::Object> pObj); |
109 v8::Handle<v8::Value> JS_NewObject2(IJS_Runtime* pJSRuntime,v8
::Handle<v8::Array> pObj); | 109 v8::Handle<v8::Value> JS_NewObject2(IJS_Runtime* pJSRuntime,v8
::Handle<v8::Array> pObj); |
110 v8::Handle<v8::Value> JS_NewString(IJS_Runtime* pJSRuntime,con
st wchar_t* string); | 110 v8::Handle<v8::Value> JS_NewString(IJS_Runtime* pJSRuntime,con
st wchar_t* string); |
111 v8::Handle<v8::Value> JS_NewString(IJS_Runtime* pJSRuntime,con
st wchar_t* string, unsigned nLen); | 111 v8::Handle<v8::Value> JS_NewString(IJS_Runtime* pJSRuntime,con
st wchar_t* string, unsigned nLen); |
112 v8::Handle<v8::Value> JS_NewNull(); | 112 v8::Handle<v8::Value> JS_NewNull(); |
113 v8::Handle<v8::Value> JS_NewDate(IJS_Runtime* pJSRuntime,doubl
e d); | 113 v8::Handle<v8::Value> JS_NewDate(IJS_Runtime* pJSRuntime,doubl
e d); |
114 v8::Handle<v8::Value> JS_NewValue(IJS_Runtime* pJSRuntime); | 114 v8::Handle<v8::Value> JS_NewValue(IJS_Runtime* pJSRuntime); |
115 | 115 |
116 | 116 |
117 int» » » » » » » » JS_ToInt32(v8::H
andle<v8::Value> pValue); | 117 int» » » » » » » » JS_ToInt32(IJS_R
untime* pJSRuntime, v8::Handle<v8::Value> pValue); |
118 bool» » » » » » » JS_ToBoolean(v8::Handle<
v8::Value> pValue); | 118 bool» » » » » » » JS_ToBoolean(IJS_Runtime
* pJSRuntime, v8::Handle<v8::Value> pValue); |
119 double» » » » » » » JS_ToNumber(v8::Handle<v
8::Value> pValue); | 119 double» » » » » » » JS_ToNumber(IJS_Runtime*
pJSRuntime, v8::Handle<v8::Value> pValue); |
120 v8::Handle<v8::Object>» » » JS_ToObject(v8::Handle<v8::Value> pValue
); | 120 v8::Handle<v8::Object>» » » JS_ToObject(IJS_Runtime* pJSRuntime, v8:
:Handle<v8::Value> pValue); |
121 CFX_WideString» » » » » JS_ToString(v8::Handle<v8::Value
> pValue); | 121 CFX_WideString» » » » » JS_ToString(IJS_Runtime* pJSRunt
ime, v8::Handle<v8::Value> pValue); |
122 v8::Handle<v8::Array>» » » JS_ToArray(v8::Handle<v8::Value> pValue)
; | 122 v8::Handle<v8::Array>» » » JS_ToArray(IJS_Runtime* pJSRuntime, v8::
Handle<v8::Value> pValue); |
123 void JS_ValueCopy(v8::Handle<
v8::Value>& pTo, v8::Handle<v8::Value> pFrom); | 123 void JS_ValueCopy(v8::Handle<
v8::Value>& pTo, v8::Handle<v8::Value> pFrom); |
124 | 124 |
125 double JS_GetDateTime(); | 125 double JS_GetDateTime(); |
126 int JS_GetYearFromTi
me(double dt); | 126 int JS_GetYearFromTi
me(double dt); |
127 int JS_GetMonthFromT
ime(double dt); | 127 int JS_GetMonthFromT
ime(double dt); |
128 int JS_GetDayFromTim
e(double dt); | 128 int JS_GetDayFromTim
e(double dt); |
129 int JS_GetHourFromTi
me(double dt); | 129 int JS_GetHourFromTi
me(double dt); |
130 int JS_GetMinFromTim
e(double dt); | 130 int JS_GetMinFromTim
e(double dt); |
131 int JS_GetSecFromTim
e(double dt); | 131 int JS_GetSecFromTim
e(double dt); |
132 double JS_DateParse(const wchar
_t* string); | 132 double JS_DateParse(const wchar
_t* string); |
133 double JS_MakeDay(int nYear, in
t nMonth, int nDay); | 133 double JS_MakeDay(int nYear, in
t nMonth, int nDay); |
134 double JS_MakeTime(int nHour, i
nt nMin, int nSec, int nMs); | 134 double JS_MakeTime(int nHour, i
nt nMin, int nSec, int nMs); |
135 double JS_MakeDate(double day,
double time); | 135 double JS_MakeDate(double day,
double time); |
136 bool JS_PortIsNan(double d); | 136 bool JS_PortIsNan(double d); |
137 double JS_LocalTime(double d); | 137 double JS_LocalTime(double d); |
138 | 138 |
139 #endif //FXJSAPI_H | 139 #endif //FXJSAPI_H |
OLD | NEW |