| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   75 IJS_Runtime*                                    JS_GetRuntime(v8::Handle<v8::Obj
     ect> pObj); |   75 IJS_Runtime*                                    JS_GetRuntime(v8::Handle<v8::Obj
     ect> pObj); | 
|   76 int                                                             JS_GetObjDefnID(
     IJS_Runtime * pJSRuntime, const wchar_t* pObjName); |   76 int                                                             JS_GetObjDefnID(
     IJS_Runtime * pJSRuntime, const wchar_t* pObjName); | 
|   77 void                                                    JS_Error(v8::Isolate* is
     olate, const CFX_WideString& message); |   77 void                                                    JS_Error(v8::Isolate* is
     olate, const CFX_WideString& message); | 
|   78 unsigned                                                JS_CalcHash(const wchar_
     t* main, unsigned nLen); |   78 unsigned                                                JS_CalcHash(const wchar_
     t* main, unsigned nLen); | 
|   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(v8::Handl
     e<v8::Object> pObj); |   86 void                                                    JS_FreePrivate(v8::Handl
     e<v8::Object> pObj); | 
|   86 v8::Handle<v8::Value>                   JS_GetObjectValue(v8::Handle<v8::Object>
      pObj); |   87 v8::Handle<v8::Value>                   JS_GetObjectValue(v8::Handle<v8::Object>
      pObj); | 
|   87 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); | 
|   88 v8::Handle<v8::Array>                   JS_GetObjectElementNames(v8::Handle<v8::
     Object> pObj); |   89 v8::Handle<v8::Array>                   JS_GetObjectElementNames(v8::Handle<v8::
     Object> pObj); | 
|   89 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); | 
|   90 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); | 
|   91 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); | 
|   92 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); | 
|   93 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); | 
|   94 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); | 
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  129 int                                                             JS_GetMinFromTim
     e(double dt); |  130 int                                                             JS_GetMinFromTim
     e(double dt); | 
|  130 int                                                             JS_GetSecFromTim
     e(double dt); |  131 int                                                             JS_GetSecFromTim
     e(double dt); | 
|  131 double                                                  JS_DateParse(const wchar
     _t* string); |  132 double                                                  JS_DateParse(const wchar
     _t* string); | 
|  132 double                                                  JS_MakeDay(int nYear, in
     t nMonth, int nDay); |  133 double                                                  JS_MakeDay(int nYear, in
     t nMonth, int nDay); | 
|  133 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); | 
|  134 double                                                  JS_MakeDate(double day, 
     double time); |  135 double                                                  JS_MakeDate(double day, 
     double time); | 
|  135 bool                                                    JS_PortIsNan(double d); |  136 bool                                                    JS_PortIsNan(double d); | 
|  136 double                                                  JS_LocalTime(double d); |  137 double                                                  JS_LocalTime(double d); | 
|  137  |  138  | 
|  138 #endif //FXJSAPI_H |  139 #endif //FXJSAPI_H | 
| OLD | NEW |