| OLD | NEW |
| 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_JAVASCRIPT_JS_GLOBALDATA_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_JS_GLOBALDATA_H_ |
| 8 #define FPDFSDK_JAVASCRIPT_JS_GLOBALDATA_H_ | 8 #define FPDFSDK_JAVASCRIPT_JS_GLOBALDATA_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 void Copy(const CJS_GlobalVariableArray& array); | 32 void Copy(const CJS_GlobalVariableArray& array); |
| 33 | 33 |
| 34 void Empty(); | 34 void Empty(); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 CFX_ArrayTemplate<CJS_KeyValue*> m_Array; | 37 CFX_ArrayTemplate<CJS_KeyValue*> m_Array; |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 class CJS_KeyValue { | 40 class CJS_KeyValue { |
| 41 public: | 41 public: |
| 42 CJS_KeyValue() {} | 42 CJS_KeyValue(); |
| 43 virtual ~CJS_KeyValue() {} | 43 virtual ~CJS_KeyValue(); |
| 44 | 44 |
| 45 CFX_ByteString sKey; | 45 CFX_ByteString sKey; |
| 46 int nType; // 0:int 1:bool 2:string 3:obj | 46 int nType; // 0:int 1:bool 2:string 3:obj |
| 47 double dData; | 47 double dData; |
| 48 bool bData; | 48 bool bData; |
| 49 CFX_ByteString sData; | 49 CFX_ByteString sData; |
| 50 CJS_GlobalVariableArray objData; | 50 CJS_GlobalVariableArray objData; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 class CJS_GlobalData_Element { | 53 class CJS_GlobalData_Element { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void MakeByteString(const CFX_ByteString& name, | 105 void MakeByteString(const CFX_ByteString& name, |
| 106 CJS_KeyValue* pData, | 106 CJS_KeyValue* pData, |
| 107 CFX_BinaryBuf& sData); | 107 CFX_BinaryBuf& sData); |
| 108 | 108 |
| 109 size_t m_RefCount; | 109 size_t m_RefCount; |
| 110 std::vector<std::unique_ptr<CJS_GlobalData_Element>> m_arrayGlobalData; | 110 std::vector<std::unique_ptr<CJS_GlobalData_Element>> m_arrayGlobalData; |
| 111 CFX_WideString m_sFilePath; | 111 CFX_WideString m_sFilePath; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 #endif // FPDFSDK_JAVASCRIPT_JS_GLOBALDATA_H_ | 114 #endif // FPDFSDK_JAVASCRIPT_JS_GLOBALDATA_H_ |
| OLD | NEW |