| 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 FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
| 11 #define FXJSAPI_H | 11 #define FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
| 12 | 12 |
| 13 #include <v8.h> | 13 #include <v8.h> |
| 14 #include "../../../core/include/fxcrt/fx_string.h" // For CFX_WideString | 14 #include "../../../core/include/fxcrt/fx_string.h" // For CFX_WideString |
| 15 | 15 |
| 16 typedef v8::Value JSValue; | 16 typedef v8::Value JSValue; |
| 17 typedef v8::Local<v8::Object> JSObject; | 17 typedef v8::Local<v8::Object> JSObject; |
| 18 typedef v8::Local<v8::Object> JSFXObject; | 18 typedef v8::Local<v8::Object> JSFXObject; |
| 19 | 19 |
| 20 enum FXJSOBJTYPE | 20 enum FXJSOBJTYPE |
| 21 { | 21 { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // FPDFSDK_INCLUDE_JSAPI_FXJS_V8_H_ |
| OLD | NEW |