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

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

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. Created 5 years, 5 months 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/include/javascript/report.h ('k') | fpdfsdk/include/pdfwindow/PWL_Button.h » ('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_INCLUDE_JAVASCRIPT_UTIL_H_ 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_UTIL_H_
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_UTIL_H_ 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_UTIL_H_
9 9
10 #include <string> // For std::wstring. 10 #include <string> // For std::wstring.
11 11
12 #include "JS_Define.h" 12 #include "JS_Define.h"
13 13
14 class util : public CJS_EmbedObj 14 class util : public CJS_EmbedObj
15 { 15 {
16 public: 16 public:
17 util(CJS_Object * pJSObject); 17 util(CJS_Object * pJSObject);
18 virtual ~util(void); 18 virtual ~util(void);
19 19
20 public: 20 public:
21 » FX_BOOL printd(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Valu e& vRet, CFX_WideString& sError); 21 » bool printd(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
22 » FX_BOOL printf(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Valu e& vRet, CFX_WideString& sError); 22 » bool printf(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
23 » FX_BOOL printx(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Valu e& vRet, CFX_WideString& sError); 23 » bool printx(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
24 » FX_BOOL scand(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value & vRet, CFX_WideString& sError); 24 » bool scand(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& v Ret, CFX_WideString& sError);
25 » FX_BOOL byteToChar(IFXJS_Context* cc, const CJS_Parameters& params, CJS_ Value& vRet, CFX_WideString& sError); 25 » bool byteToChar(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Val ue& vRet, CFX_WideString& sError);
26 26
27 public: 27 public:
28 static void printd(const std::wstring &cFormat,CJS_Date Date ,bool bXFAPicture, std::wstring &cPurpose); 28 static void printd(const std::wstring &cFormat,CJS_Date Date ,bool bXFAPicture, std::wstring &cPurpose);
29 static void printx(const std::string &cFormat,const std::str ing &cSource, std::string &cPurpose); 29 static void printx(const std::string &cFormat,const std::str ing &cSource, std::string &cPurpose);
30 static int ParstDataType(std::wstring* sFormat); 30 static int ParstDataType(std::wstring* sFormat);
31 }; 31 };
32 32
33 class CJS_Util : public CJS_Object 33 class CJS_Util : public CJS_Object
34 { 34 {
35 public: 35 public:
36 CJS_Util(JSFXObject pObject) : CJS_Object(pObject) {}; 36 CJS_Util(JSFXObject pObject) : CJS_Object(pObject) {};
37 virtual ~CJS_Util(void){}; 37 virtual ~CJS_Util(void){};
38 38
39 DECLARE_JS_CLASS(CJS_Util); 39 DECLARE_JS_CLASS(CJS_Util);
40 40
41 JS_STATIC_METHOD(printd, util); 41 JS_STATIC_METHOD(printd, util);
42 JS_STATIC_METHOD(printf, util); 42 JS_STATIC_METHOD(printf, util);
43 JS_STATIC_METHOD(printx, util); 43 JS_STATIC_METHOD(printx, util);
44 JS_STATIC_METHOD(scand, util); 44 JS_STATIC_METHOD(scand, util);
45 JS_STATIC_METHOD(byteToChar, util); 45 JS_STATIC_METHOD(byteToChar, util);
46 }; 46 };
47 47
48 int64_t FX_atoi64(const char *nptr); 48 int64_t FX_atoi64(const char *nptr);
49 49
50 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_UTIL_H_ 50 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_UTIL_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/javascript/report.h ('k') | fpdfsdk/include/pdfwindow/PWL_Button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698