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

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

Issue 971033002: Kill off JS_ErrorString type. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Tabs. Created 5 years, 9 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/event.h ('k') | fpdfsdk/include/javascript/report.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 _GLOBAL_H_ 7 #ifndef _GLOBAL_H_
8 #define _GLOBAL_H_ 8 #define _GLOBAL_H_
9 9
10 class CJS_GlobalData; 10 class CJS_GlobalData;
(...skipping 23 matching lines...) Expand all
34 bool bDeleted; 34 bool bDeleted;
35 }; 35 };
36 36
37 class global_alternate : public CJS_EmbedObj 37 class global_alternate : public CJS_EmbedObj
38 { 38 {
39 public: 39 public:
40 global_alternate(CJS_Object* pJSObject); 40 global_alternate(CJS_Object* pJSObject);
41 virtual ~global_alternate(); 41 virtual ~global_alternate();
42 42
43 public: 43 public:
44 » FX_BOOL»» » » » » setPersistent(IFXJS_Cont ext* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError); 44 » FX_BOOL»» » » » » setPersistent(IFXJS_Cont ext* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
45 45
46 public: 46 public:
47 FX_BOOL QueryProperty(FX_LPCWSTR propname); 47 FX_BOOL QueryProperty(FX_LPCWSTR propname);
48 » FX_BOOL»» » » » » DoProperty(IFXJS_Context * cc, FX_LPCWSTR propname, CJS_PropValue & vp, JS_ErrorString & sError); 48 » FX_BOOL»» » » » » DoProperty(IFXJS_Context * cc, FX_LPCWSTR propname, CJS_PropValue & vp, CFX_WideString & sError);
49 » FX_BOOL»» » » » » DelProperty(IFXJS_Contex t* cc, FX_LPCWSTR propname, JS_ErrorString & sError); 49 » FX_BOOL»» » » » » DelProperty(IFXJS_Contex t* cc, FX_LPCWSTR propname, CFX_WideString & sError);
50 50
51 void Initial(CPDFDoc_Environm ent* pApp); 51 void Initial(CPDFDoc_Environm ent* pApp);
52 52
53 private: 53 private:
54 void UpdateGlobalPersistentVa riables(); 54 void UpdateGlobalPersistentVa riables();
55 void CommitGlobalPersisitentV ariables(); 55 void CommitGlobalPersisitentV ariables();
56 void DestroyGlobalPersisitent Variables(); 56 void DestroyGlobalPersisitent Variables();
57 FX_BOOL SetGlobalVariables(FX_LP CSTR propname, int nType, 57 FX_BOOL SetGlobalVariables(FX_LP CSTR propname, int nType,
58 double d Data, bool bData, const CFX_ByteString& sData, JSObject pData, bool bDefaultPers istent); 58 double d Data, bool bData, const CFX_ByteString& sData, JSObject pData, bool bDefaultPers istent);
59 59
(...skipping 16 matching lines...) Expand all
76 76
77 virtual FX_BOOL InitInstance(IFXJS_Context* cc); 77 virtual FX_BOOL InitInstance(IFXJS_Context* cc);
78 78
79 DECLARE_SPECIAL_JS_CLASS(CJS_Global); 79 DECLARE_SPECIAL_JS_CLASS(CJS_Global);
80 80
81 JS_SPECIAL_STATIC_METHOD(setPersistent, global_alternate, global); 81 JS_SPECIAL_STATIC_METHOD(setPersistent, global_alternate, global);
82 82
83 }; 83 };
84 84
85 #endif //_GLOBAL_H_ 85 #endif //_GLOBAL_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/javascript/event.h ('k') | fpdfsdk/include/javascript/report.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698