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