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

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

Issue 1334833003: Merge to XFA: Remove some abstractions in fxjs_v8.h. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 3 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/jsapi/fxjs_v8.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.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool bXFAPicture, 44 bool bXFAPicture,
45 std::wstring& cPurpose); 45 std::wstring& cPurpose);
46 static void printx(const std::string& cFormat, 46 static void printx(const std::string& cFormat,
47 const std::string& cSource, 47 const std::string& cSource,
48 std::string& cPurpose); 48 std::string& cPurpose);
49 static int ParstDataType(std::wstring* sFormat); 49 static int ParstDataType(std::wstring* sFormat);
50 }; 50 };
51 51
52 class CJS_Util : public CJS_Object { 52 class CJS_Util : public CJS_Object {
53 public: 53 public:
54 CJS_Util(JSFXObject pObject) : CJS_Object(pObject) {} 54 CJS_Util(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
55 ~CJS_Util() override {} 55 ~CJS_Util() override {}
56 56
57 DECLARE_JS_CLASS(CJS_Util); 57 DECLARE_JS_CLASS(CJS_Util);
58 58
59 JS_STATIC_METHOD(printd, util); 59 JS_STATIC_METHOD(printd, util);
60 JS_STATIC_METHOD(printf, util); 60 JS_STATIC_METHOD(printf, util);
61 JS_STATIC_METHOD(printx, util); 61 JS_STATIC_METHOD(printx, util);
62 JS_STATIC_METHOD(scand, util); 62 JS_STATIC_METHOD(scand, util);
63 JS_STATIC_METHOD(byteToChar, util); 63 JS_STATIC_METHOD(byteToChar, util);
64 }; 64 };
65 65
66 int64_t FX_atoi64(const char* nptr); 66 int64_t FX_atoi64(const char* nptr);
67 67
68 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_UTIL_H_ 68 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_UTIL_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/javascript/report.h ('k') | fpdfsdk/include/jsapi/fxjs_v8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698