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

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

Issue 1332973002: Remove some abstractions in fxjs_v8.h. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Remove implicit cast operator from CJS_Runtime. 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/JS_Value.h ('k') | fpdfsdk/include/javascript/app.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_PUBLICMETHODS_H_ 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_PUBLICMETHODS_H_
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_PUBLICMETHODS_H_ 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_PUBLICMETHODS_H_
9 9
10 #include "JS_Define.h" 10 #include "JS_Define.h"
11 11
12 class CJS_PublicMethods : public CJS_Object { 12 class CJS_PublicMethods : public CJS_Object {
13 public: 13 public:
14 CJS_PublicMethods(JSFXObject pObject) : CJS_Object(pObject) {} 14 CJS_PublicMethods(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
15 ~CJS_PublicMethods() override {} 15 ~CJS_PublicMethods() override {}
16 16
17 public: 17 public:
18 static FX_BOOL AFNumber_Format(IFXJS_Context* cc, 18 static FX_BOOL AFNumber_Format(IFXJS_Context* cc,
19 const CJS_Parameters& params, 19 const CJS_Parameters& params,
20 CJS_Value& vRet, 20 CJS_Value& vRet,
21 CFX_WideString& sError); 21 CFX_WideString& sError);
22 static FX_BOOL AFNumber_Keystroke(IFXJS_Context* cc, 22 static FX_BOOL AFNumber_Keystroke(IFXJS_Context* cc,
23 const CJS_Parameters& params, 23 const CJS_Parameters& params,
24 CJS_Value& vRet, 24 CJS_Value& vRet,
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 static FX_BOOL maskSatisfied(wchar_t c_Change, wchar_t c_Mask); 176 static FX_BOOL maskSatisfied(wchar_t c_Change, wchar_t c_Mask);
177 static FX_BOOL isReservedMaskChar(wchar_t ch); 177 static FX_BOOL isReservedMaskChar(wchar_t ch);
178 178
179 static double AF_Simple(const FX_WCHAR* sFuction, 179 static double AF_Simple(const FX_WCHAR* sFuction,
180 double dValue1, 180 double dValue1,
181 double dValue2); 181 double dValue2);
182 static CJS_Array AF_MakeArrayFromList(v8::Isolate* isolate, CJS_Value val); 182 static CJS_Array AF_MakeArrayFromList(v8::Isolate* isolate, CJS_Value val);
183 }; 183 };
184 184
185 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_PUBLICMETHODS_H_ 185 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_PUBLICMETHODS_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/javascript/JS_Value.h ('k') | fpdfsdk/include/javascript/app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698