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

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

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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_Define.h ('k') | fpdfsdk/include/javascript/util.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_JS_GLOBALDATA_H_ 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_GLOBALDATA_H_
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_JS_GLOBALDATA_H_ 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_JS_GLOBALDATA_H_
9 9
10 #include "../../../core/include/fxcrt/fx_basic.h" 10 #include "../../../core/include/fxcrt/fx_basic.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 public: 68 public:
69 void SetGloba lVariableNumber(FX_LPCSTR propname, double dData); 69 void SetGloba lVariableNumber(FX_LPCSTR propname, double dData);
70 void SetGloba lVariableBoolean(FX_LPCSTR propname, bool bData); 70 void SetGloba lVariableBoolean(FX_LPCSTR propname, bool bData);
71 void SetGloba lVariableString(FX_LPCSTR propname, const CFX_ByteString& sData); 71 void SetGloba lVariableString(FX_LPCSTR propname, const CFX_ByteString& sData);
72 void SetGloba lVariableObject(FX_LPCSTR propname, const CJS_GlobalVariableArray& array); 72 void SetGloba lVariableObject(FX_LPCSTR propname, const CJS_GlobalVariableArray& array);
73 void SetGloba lVariableNull(FX_LPCSTR propname); 73 void SetGloba lVariableNull(FX_LPCSTR propname);
74 74
75 FX_BOOL SetGloba lVariablePersistent(FX_LPCSTR propname, FX_BOOL bPersistent); 75 FX_BOOL SetGloba lVariablePersistent(FX_LPCSTR propname, FX_BOOL bPersistent);
76 FX_BOOL DeleteGl obalVariable(FX_LPCSTR propname); 76 FX_BOOL DeleteGl obalVariable(FX_LPCSTR propname);
77 77
78 » FX_INT32» » » » » » » GetSize( ) const; 78 » int32_t»» » » » » » GetSize() const;
79 CJS_GlobalData_Element* GetAt(int index) const; 79 CJS_GlobalData_Element* GetAt(int index) const;
80 80
81 private: 81 private:
82 void LoadGlob alPersistentVariables(); 82 void LoadGlob alPersistentVariables();
83 void SaveGlob alPersisitentVariables(); 83 void SaveGlob alPersisitentVariables();
84 84
85 CJS_GlobalData_Element* GetGlobalVariable(FX_LPC STR propname); 85 CJS_GlobalData_Element* GetGlobalVariable(FX_LPC STR propname);
86 int FindGlobalVariable(FX_LPCSTR propname); 86 int FindGlobalVariable(FX_LPCSTR propname);
87 87
88 » void» » » » » » » » LoadFile Buffer(FX_LPCWSTR sFilePath, FX_LPBYTE& pBuffer, FX_INT32& nLength); 88 » void» » » » » » » » LoadFile Buffer(FX_LPCWSTR sFilePath, FX_LPBYTE& pBuffer, int32_t& nLength);
89 » void» » » » » » » » WriteFil eBuffer(FX_LPCWSTR sFilePath, FX_LPCSTR pBuffer, FX_INT32 nLength); 89 » void» » » » » » » » WriteFil eBuffer(FX_LPCWSTR sFilePath, FX_LPCSTR pBuffer, int32_t nLength);
90 void MakeByte String(const CFX_ByteString& name, CJS_KeyValue* pData, CFX_BinaryBuf& sData); 90 void MakeByte String(const CFX_ByteString& name, CJS_KeyValue* pData, CFX_BinaryBuf& sData);
91 91
92 private: 92 private:
93 CFX_ArrayTemplate<CJS_GlobalData_Element*> m_arrayGlobalData; 93 CFX_ArrayTemplate<CJS_GlobalData_Element*> m_arrayGlobalData;
94 CFX_WideString m_sFilePath; 94 CFX_WideString m_sFilePath;
95 CPDFDoc_Environment* m_pApp; 95 CPDFDoc_Environment* m_pApp;
96 }; 96 };
97 97
98 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_JS_GLOBALDATA_H_ 98 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_JS_GLOBALDATA_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/javascript/JS_Define.h ('k') | fpdfsdk/include/javascript/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698