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 _PUBLICMETHODS_H_ | 7 #ifndef _PUBLICMETHODS_H_ |
8 #define _PUBLICMETHODS_H_ | 8 #define _PUBLICMETHODS_H_ |
9 | 9 |
| 10 #include "JS_Define.h" |
| 11 |
10 class CJS_PublicMethods : public CJS_Object | 12 class CJS_PublicMethods : public CJS_Object |
11 { | 13 { |
12 public: | 14 public: |
13 CJS_PublicMethods(JSFXObject pObject) : CJS_Object(pObject) {}; | 15 CJS_PublicMethods(JSFXObject pObject) : CJS_Object(pObject) {}; |
14 virtual ~CJS_PublicMethods(void){}; | 16 virtual ~CJS_PublicMethods(void){}; |
15 | 17 |
16 public: | 18 public: |
17 static FX_BOOL AFNumber_Format(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, CFX_WideString& sError); | 19 static FX_BOOL AFNumber_Format(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, CFX_WideString& sError); |
18 static FX_BOOL AFNumber_Keystroke(IFXJS_Context* cc, const CJS_Parameter
s& params, CJS_Value& vRet, CFX_WideString& sError); | 20 static FX_BOOL AFNumber_Keystroke(IFXJS_Context* cc, const CJS_Parameter
s& params, CJS_Value& vRet, CFX_WideString& sError); |
19 static FX_BOOL AFPercent_Format(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, CFX_WideString& sError); | 21 static FX_BOOL AFPercent_Format(IFXJS_Context* cc, const CJS_Parameters&
params, CJS_Value& vRet, CFX_WideString& sError); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 static FX_BOOL IsAlphaNumeric(wchar_t ch); | 94 static FX_BOOL IsAlphaNumeric(wchar_t ch); |
93 | 95 |
94 static FX_BOOL maskSatisfied(wchar_t c_Change,wchar_t c
_Mask); | 96 static FX_BOOL maskSatisfied(wchar_t c_Change,wchar_t c
_Mask); |
95 static FX_BOOL isReservedMaskChar(wchar_t ch); | 97 static FX_BOOL isReservedMaskChar(wchar_t ch); |
96 | 98 |
97 static double AF_Simple(FX_LPCWSTR sFuction, double dV
alue1, double dValue2); | 99 static double AF_Simple(FX_LPCWSTR sFuction, double dV
alue1, double dValue2); |
98 static CJS_Array AF_MakeArrayFromList(v8::Isolate* isolat
e, CJS_Value val); | 100 static CJS_Array AF_MakeArrayFromList(v8::Isolate* isolat
e, CJS_Value val); |
99 }; | 101 }; |
100 | 102 |
101 #endif //_PUBLICMETHODS_H_ | 103 #endif //_PUBLICMETHODS_H_ |
OLD | NEW |