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_UTIL_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_UTIL_H_ |
8 #define FPDFSDK_SRC_JAVASCRIPT_UTIL_H_ | 8 #define FPDFSDK_JAVASCRIPT_UTIL_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 util : public CJS_EmbedObj { | 15 class util : public CJS_EmbedObj { |
16 public: | 16 public: |
17 util(CJS_Object* pJSObject); | 17 util(CJS_Object* pJSObject); |
18 ~util() override; | 18 ~util() override; |
19 | 19 |
20 public: | 20 public: |
21 FX_BOOL printd(IJS_Context* cc, | 21 FX_BOOL printd(IJS_Context* cc, |
22 const std::vector<CJS_Value>& params, | 22 const std::vector<CJS_Value>& params, |
23 CJS_Value& vRet, | 23 CJS_Value& vRet, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 DECLARE_JS_CLASS(); | 58 DECLARE_JS_CLASS(); |
59 | 59 |
60 JS_STATIC_METHOD(printd, util); | 60 JS_STATIC_METHOD(printd, util); |
61 JS_STATIC_METHOD(printf, util); | 61 JS_STATIC_METHOD(printf, util); |
62 JS_STATIC_METHOD(printx, util); | 62 JS_STATIC_METHOD(printx, util); |
63 JS_STATIC_METHOD(scand, util); | 63 JS_STATIC_METHOD(scand, util); |
64 JS_STATIC_METHOD(byteToChar, util); | 64 JS_STATIC_METHOD(byteToChar, util); |
65 }; | 65 }; |
66 | 66 |
67 #endif // FPDFSDK_SRC_JAVASCRIPT_UTIL_H_ | 67 #endif // FPDFSDK_JAVASCRIPT_UTIL_H_ |
OLD | NEW |