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

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

Issue 453133004: clang-format all code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 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
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 _UTIL_H_ 7 #ifndef _UTIL_H_
8 #define _UTIL_H_ 8 #define _UTIL_H_
9 9
10 class util : public CJS_EmbedObj 10 class util : public CJS_EmbedObj {
11 { 11 public:
12 public: 12 util(CJS_Object* pJSObject);
13 » util(CJS_Object * pJSObject); 13 virtual ~util(void);
14 » virtual ~util(void);
15 14
16 public: 15 public:
17 » FX_BOOL printd(OBJ_METHOD_PARAMS); 16 FX_BOOL printd(OBJ_METHOD_PARAMS);
18 » FX_BOOL printf(OBJ_METHOD_PARAMS); 17 FX_BOOL printf(OBJ_METHOD_PARAMS);
19 » FX_BOOL printx(OBJ_METHOD_PARAMS); 18 FX_BOOL printx(OBJ_METHOD_PARAMS);
20 » FX_BOOL scand(OBJ_METHOD_PARAMS); 19 FX_BOOL scand(OBJ_METHOD_PARAMS);
21 » FX_BOOL byteToChar(OBJ_METHOD_PARAMS); 20 FX_BOOL byteToChar(OBJ_METHOD_PARAMS);
22 21
23 public: 22 public:
24 » static void» » printd(const std::wstring &cFormat,CJS_Date Date ,bool bXFAPicture, std::wstring &cPurpose); 23 static void printd(const std::wstring& cFormat,
25 » static void» » printx(const std::string &cFormat,const std::str ing &cSource, std::string &cPurpose); 24 CJS_Date Date,
26 » static int» » ParstDataType(std::wstring* sFormat); 25 bool bXFAPicture,
26 std::wstring& cPurpose);
27 static void printx(const std::string& cFormat,
28 const std::string& cSource,
29 std::string& cPurpose);
30 static int ParstDataType(std::wstring* sFormat);
27 }; 31 };
28 32
29 class CJS_Util : public CJS_Object 33 class CJS_Util : public CJS_Object {
30 { 34 public:
31 public: 35 CJS_Util(JSFXObject pObject) : CJS_Object(pObject){};
32 » CJS_Util(JSFXObject pObject) : CJS_Object(pObject) {}; 36 virtual ~CJS_Util(void){};
33 » virtual ~CJS_Util(void){};
34 37
35 » DECLARE_JS_CLASS(CJS_Util); 38 DECLARE_JS_CLASS(CJS_Util);
36 39
37 » JS_STATIC_METHOD(printd, util); 40 JS_STATIC_METHOD(printd, util);
38 » JS_STATIC_METHOD(printf, util); 41 JS_STATIC_METHOD(printf, util);
39 » JS_STATIC_METHOD(printx, util); 42 JS_STATIC_METHOD(printx, util);
40 » JS_STATIC_METHOD(scand, util); 43 JS_STATIC_METHOD(scand, util);
41 » JS_STATIC_METHOD(byteToChar, util); 44 JS_STATIC_METHOD(byteToChar, util);
42 }; 45 };
43 46
44 FX_INT64 FX_atoi64(const char *nptr); 47 FX_INT64 FX_atoi64(const char* nptr);
45 #endif //_UTIL_H_ 48 #endif //_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698