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 #ifndef FPDFSDK_JAVASCRIPT_JS_VALUE_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_JS_VALUE_H_ |
8 #define FPDFSDK_JAVASCRIPT_JS_VALUE_H_ | 8 #define FPDFSDK_JAVASCRIPT_JS_VALUE_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 CJS_Runtime* m_pJSRuntime; | 201 CJS_Runtime* m_pJSRuntime; |
202 }; | 202 }; |
203 | 203 |
204 double JS_GetDateTime(); | 204 double JS_GetDateTime(); |
205 int JS_GetYearFromTime(double dt); | 205 int JS_GetYearFromTime(double dt); |
206 int JS_GetMonthFromTime(double dt); | 206 int JS_GetMonthFromTime(double dt); |
207 int JS_GetDayFromTime(double dt); | 207 int JS_GetDayFromTime(double dt); |
208 int JS_GetHourFromTime(double dt); | 208 int JS_GetHourFromTime(double dt); |
209 int JS_GetMinFromTime(double dt); | 209 int JS_GetMinFromTime(double dt); |
210 int JS_GetSecFromTime(double dt); | 210 int JS_GetSecFromTime(double dt); |
211 double JS_DateParse(const wchar_t* str); | 211 double JS_DateParse(const CFX_WideString& str); |
212 double JS_MakeDay(int nYear, int nMonth, int nDay); | 212 double JS_MakeDay(int nYear, int nMonth, int nDay); |
213 double JS_MakeTime(int nHour, int nMin, int nSec, int nMs); | 213 double JS_MakeTime(int nHour, int nMin, int nSec, int nMs); |
214 double JS_MakeDate(double day, double time); | 214 double JS_MakeDate(double day, double time); |
215 bool JS_PortIsNan(double d); | 215 bool JS_PortIsNan(double d); |
216 double JS_LocalTime(double d); | 216 double JS_LocalTime(double d); |
217 | 217 |
218 // Some JS methods have the bizarre convention that they may also be called | 218 // Some JS methods have the bizarre convention that they may also be called |
219 // with a single argument which is an object containing the actual arguments | 219 // with a single argument which is an object containing the actual arguments |
220 // as its properties. The varying arguments to this method are the property | 220 // as its properties. The varying arguments to this method are the property |
221 // names as wchar_t string literals corresponding to each positional argument. | 221 // names as wchar_t string literals corresponding to each positional argument. |
222 // The result will always contain |nKeywords| value, with unspecified ones | 222 // The result will always contain |nKeywords| value, with unspecified ones |
223 // being set to type VT_unknown. | 223 // being set to type VT_unknown. |
224 std::vector<CJS_Value> JS_ExpandKeywordParams( | 224 std::vector<CJS_Value> JS_ExpandKeywordParams( |
225 CJS_Runtime* pRuntime, | 225 CJS_Runtime* pRuntime, |
226 const std::vector<CJS_Value>& originals, | 226 const std::vector<CJS_Value>& originals, |
227 size_t nKeywords, | 227 size_t nKeywords, |
228 ...); | 228 ...); |
229 | 229 |
230 #endif // FPDFSDK_JAVASCRIPT_JS_VALUE_H_ | 230 #endif // FPDFSDK_JAVASCRIPT_JS_VALUE_H_ |
OLD | NEW |