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_SRC_JAVASCRIPT_JS_VALUE_H_ | 7 #ifndef FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_ |
8 #define FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_ | 8 #define FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_ |
9 | 9 |
10 #include "../../include/jsapi/fxjs_v8.h" | 10 #include "../../include/jsapi/fxjs_v8.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 FX_BOOL ConvertToDate(CJS_Date&) const; | 81 FX_BOOL ConvertToDate(CJS_Date&) const; |
82 | 82 |
83 CJS_Runtime* GetJSRuntime() const { return m_pJSRuntime; } | 83 CJS_Runtime* GetJSRuntime() const { return m_pJSRuntime; } |
84 | 84 |
85 protected: | 85 protected: |
86 Type m_eType; | 86 Type m_eType; |
87 v8::Local<v8::Value> m_pValue; | 87 v8::Local<v8::Value> m_pValue; |
88 CJS_Runtime* m_pJSRuntime; | 88 CJS_Runtime* m_pJSRuntime; |
89 }; | 89 }; |
90 | 90 |
91 using CJS_Parameters = std::vector<CJS_Value>; | |
92 | |
93 class CJS_PropValue : public CJS_Value { | 91 class CJS_PropValue : public CJS_Value { |
94 public: | 92 public: |
95 CJS_PropValue(const CJS_Value&); | 93 CJS_PropValue(const CJS_Value&); |
96 CJS_PropValue(CJS_Runtime* pRuntime); | 94 CJS_PropValue(CJS_Runtime* pRuntime); |
97 ~CJS_PropValue(); | 95 ~CJS_PropValue(); |
98 | 96 |
99 FX_BOOL IsSetting() const { return m_bIsSetting; } | 97 FX_BOOL IsSetting() const { return m_bIsSetting; } |
100 FX_BOOL IsGetting() const { return !m_bIsSetting; } | 98 FX_BOOL IsGetting() const { return !m_bIsSetting; } |
101 | 99 |
102 void operator<<(int); | 100 void operator<<(int); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 int JS_GetMinFromTime(double dt); | 202 int JS_GetMinFromTime(double dt); |
205 int JS_GetSecFromTime(double dt); | 203 int JS_GetSecFromTime(double dt); |
206 double JS_DateParse(const wchar_t* string); | 204 double JS_DateParse(const wchar_t* string); |
207 double JS_MakeDay(int nYear, int nMonth, int nDay); | 205 double JS_MakeDay(int nYear, int nMonth, int nDay); |
208 double JS_MakeTime(int nHour, int nMin, int nSec, int nMs); | 206 double JS_MakeTime(int nHour, int nMin, int nSec, int nMs); |
209 double JS_MakeDate(double day, double time); | 207 double JS_MakeDate(double day, double time); |
210 bool JS_PortIsNan(double d); | 208 bool JS_PortIsNan(double d); |
211 double JS_LocalTime(double d); | 209 double JS_LocalTime(double d); |
212 | 210 |
213 #endif // FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_ | 211 #endif // FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_ |
OLD | NEW |