| 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 |
| 8 // than including V8 headers directly. |
| 9 |
| 7 #ifndef FXJSAPI_H | 10 #ifndef FXJSAPI_H |
| 8 #define FXJSAPI_H | 11 #define FXJSAPI_H |
| 9 | 12 |
| 10 #include <v8.h> | 13 #include <v8.h> |
| 11 #include "../../../core/include/fxcrt/fx_string.h" // For CFX_WideString | 14 #include "../../../core/include/fxcrt/fx_string.h" // For CFX_WideString |
| 12 | 15 |
| 16 typedef v8::Value JSValue; |
| 17 typedef v8::Handle<v8::Object> JSObject; |
| 18 typedef v8::Handle<v8::Object> JSFXObject; |
| 19 |
| 13 enum FXJSOBJTYPE | 20 enum FXJSOBJTYPE |
| 14 { | 21 { |
| 15 JS_DYNAMIC = 0, | 22 JS_DYNAMIC = 0, |
| 16 JS_STATIC = 1, | 23 JS_STATIC = 1, |
| 17 }; | 24 }; |
| 18 | 25 |
| 19 enum FXJSVALUETYPE | 26 enum FXJSVALUETYPE |
| 20 { | 27 { |
| 21 VT_unknown, | 28 VT_unknown, |
| 22 VT_string, | 29 VT_string, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 int JS_GetMinFromTim
e(double dt); | 129 int JS_GetMinFromTim
e(double dt); |
| 123 int JS_GetSecFromTim
e(double dt); | 130 int JS_GetSecFromTim
e(double dt); |
| 124 double JS_DateParse(const wchar
_t* string); | 131 double JS_DateParse(const wchar
_t* string); |
| 125 double JS_MakeDay(int nYear, in
t nMonth, int nDay); | 132 double JS_MakeDay(int nYear, in
t nMonth, int nDay); |
| 126 double JS_MakeTime(int nHour, i
nt nMin, int nSec, int nMs); | 133 double JS_MakeTime(int nHour, i
nt nMin, int nSec, int nMs); |
| 127 double JS_MakeDate(double day,
double time); | 134 double JS_MakeDate(double day,
double time); |
| 128 bool JS_PortIsNan(double d); | 135 bool JS_PortIsNan(double d); |
| 129 double JS_LocalTime(double d); | 136 double JS_LocalTime(double d); |
| 130 | 137 |
| 131 #endif //FXJSAPI_H | 138 #endif //FXJSAPI_H |
| OLD | NEW |