Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1092)

Side by Side Diff: fpdfsdk/javascript/util.h

Issue 2453683011: Remove FX_BOOL from fpdfsdk. (Closed)
Patch Set: Regenerate patch after rebase. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/javascript/report.cpp ('k') | fpdfsdk/javascript/util.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_JAVASCRIPT_UTIL_H_ 7 #ifndef FPDFSDK_JAVASCRIPT_UTIL_H_
8 #define FPDFSDK_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/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 FX_BOOL printd(IJS_Context* cc, 20 bool printd(IJS_Context* cc,
21 const std::vector<CJS_Value>& params, 21 const std::vector<CJS_Value>& params,
22 CJS_Value& vRet, 22 CJS_Value& vRet,
23 CFX_WideString& sError); 23 CFX_WideString& sError);
24 FX_BOOL printf(IJS_Context* cc, 24 bool printf(IJS_Context* cc,
25 const std::vector<CJS_Value>& params, 25 const std::vector<CJS_Value>& params,
26 CJS_Value& vRet, 26 CJS_Value& vRet,
27 CFX_WideString& sError); 27 CFX_WideString& sError);
28 FX_BOOL printx(IJS_Context* cc, 28 bool printx(IJS_Context* cc,
29 const std::vector<CJS_Value>& params, 29 const std::vector<CJS_Value>& params,
30 CJS_Value& vRet, 30 CJS_Value& vRet,
31 CFX_WideString& sError); 31 CFX_WideString& sError);
32 FX_BOOL scand(IJS_Context* cc, 32 bool scand(IJS_Context* cc,
33 const std::vector<CJS_Value>& params, 33 const std::vector<CJS_Value>& params,
34 CJS_Value& vRet, 34 CJS_Value& vRet,
35 CFX_WideString& sError); 35 CFX_WideString& sError);
36 FX_BOOL byteToChar(IJS_Context* cc, 36 bool byteToChar(IJS_Context* cc,
37 const std::vector<CJS_Value>& params, 37 const std::vector<CJS_Value>& params,
38 CJS_Value& vRet, 38 CJS_Value& vRet,
39 CFX_WideString& sError); 39 CFX_WideString& sError);
40 40
41 static CFX_WideString printx(const CFX_WideString& cFormat, 41 static CFX_WideString printx(const CFX_WideString& cFormat,
42 const CFX_WideString& cSource); 42 const CFX_WideString& cSource);
43 }; 43 };
44 44
45 class CJS_Util : public CJS_Object { 45 class CJS_Util : public CJS_Object {
46 public: 46 public:
47 CJS_Util(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} 47 CJS_Util(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
48 ~CJS_Util() override {} 48 ~CJS_Util() override {}
49 49
50 DECLARE_JS_CLASS(); 50 DECLARE_JS_CLASS();
51 51
52 JS_STATIC_METHOD(printd, util); 52 JS_STATIC_METHOD(printd, util);
53 JS_STATIC_METHOD(printf, util); 53 JS_STATIC_METHOD(printf, util);
54 JS_STATIC_METHOD(printx, util); 54 JS_STATIC_METHOD(printx, util);
55 JS_STATIC_METHOD(scand, util); 55 JS_STATIC_METHOD(scand, util);
56 JS_STATIC_METHOD(byteToChar, util); 56 JS_STATIC_METHOD(byteToChar, util);
57 }; 57 };
58 58
59 #endif // FPDFSDK_JAVASCRIPT_UTIL_H_ 59 #endif // FPDFSDK_JAVASCRIPT_UTIL_H_
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/report.cpp ('k') | fpdfsdk/javascript/util.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698