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_PUBLICMETHODS_H_ | 7 #ifndef FPDFSDK_SRC_JAVASCRIPT_PUBLICMETHODS_H_ |
8 #define FPDFSDK_SRC_JAVASCRIPT_PUBLICMETHODS_H_ | 8 #define FPDFSDK_SRC_JAVASCRIPT_PUBLICMETHODS_H_ |
9 | 9 |
10 #include "JS_Define.h" | 10 #include "fpdfsdk/src/javascript/JS_Define.h" |
11 | 11 |
12 class CJS_PublicMethods : public CJS_Object { | 12 class CJS_PublicMethods : public CJS_Object { |
13 public: | 13 public: |
14 explicit CJS_PublicMethods(v8::Local<v8::Object> pObject) | 14 explicit CJS_PublicMethods(v8::Local<v8::Object> pObject) |
15 : CJS_Object(pObject) {} | 15 : CJS_Object(pObject) {} |
16 ~CJS_PublicMethods() override {} | 16 ~CJS_PublicMethods() override {} |
17 | 17 |
18 public: | 18 public: |
19 static FX_BOOL AFNumber_Format(IJS_Context* cc, | 19 static FX_BOOL AFNumber_Format(IJS_Context* cc, |
20 const std::vector<CJS_Value>& params, | 20 const std::vector<CJS_Value>& params, |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 static FX_BOOL maskSatisfied(wchar_t c_Change, wchar_t c_Mask); | 163 static FX_BOOL maskSatisfied(wchar_t c_Change, wchar_t c_Mask); |
164 static FX_BOOL isReservedMaskChar(wchar_t ch); | 164 static FX_BOOL isReservedMaskChar(wchar_t ch); |
165 | 165 |
166 static double AF_Simple(const FX_WCHAR* sFuction, | 166 static double AF_Simple(const FX_WCHAR* sFuction, |
167 double dValue1, | 167 double dValue1, |
168 double dValue2); | 168 double dValue2); |
169 static CJS_Array AF_MakeArrayFromList(CJS_Runtime* pRuntime, CJS_Value val); | 169 static CJS_Array AF_MakeArrayFromList(CJS_Runtime* pRuntime, CJS_Value val); |
170 }; | 170 }; |
171 | 171 |
172 #endif // FPDFSDK_SRC_JAVASCRIPT_PUBLICMETHODS_H_ | 172 #endif // FPDFSDK_SRC_JAVASCRIPT_PUBLICMETHODS_H_ |
OLD | NEW |