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 CORE_FXCRT_INCLUDE_FX_BASIC_H_ | 7 #ifndef CORE_FXCRT_INCLUDE_FX_BASIC_H_ |
8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_ | 8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_ |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 class CFX_PrivateData { | 632 class CFX_PrivateData { |
633 public: | 633 public: |
634 CFX_PrivateData(); | 634 CFX_PrivateData(); |
635 ~CFX_PrivateData(); | 635 ~CFX_PrivateData(); |
636 | 636 |
637 void ClearAll(); | 637 void ClearAll(); |
638 | 638 |
639 void SetPrivateData(void* module_id, | 639 void SetPrivateData(void* module_id, |
640 void* pData, | 640 void* pData, |
641 PD_CALLBACK_FREEDATA callback); | 641 PD_CALLBACK_FREEDATA callback); |
642 void SetPrivateObj(void* module_id, CFX_DestructObject* pObj); | 642 void SetPrivateObj(void* module_id, CFX_Deletable* pObj); |
643 | 643 |
644 void* GetPrivateData(void* module_id); | 644 void* GetPrivateData(void* module_id); |
645 FX_BOOL LookupPrivateData(void* module_id, void*& pData) const { | 645 FX_BOOL LookupPrivateData(void* module_id, void*& pData) const { |
646 if (!module_id) { | 646 if (!module_id) { |
647 return FALSE; | 647 return FALSE; |
648 } | 648 } |
649 uint32_t nCount = m_DataList.GetSize(); | 649 uint32_t nCount = m_DataList.GetSize(); |
650 for (uint32_t n = 0; n < nCount; n++) { | 650 for (uint32_t n = 0; n < nCount; n++) { |
651 if (m_DataList[n].m_pModuleId == module_id) { | 651 if (m_DataList[n].m_pModuleId == module_id) { |
652 pData = m_DataList[n].m_pData; | 652 pData = m_DataList[n].m_pData; |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 FX_FLOAT e; | 970 FX_FLOAT e; |
971 FX_FLOAT f; | 971 FX_FLOAT f; |
972 FX_FLOAT g; | 972 FX_FLOAT g; |
973 FX_FLOAT h; | 973 FX_FLOAT h; |
974 FX_FLOAT i; | 974 FX_FLOAT i; |
975 }; | 975 }; |
976 | 976 |
977 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits); | 977 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits); |
978 | 978 |
979 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ | 979 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ |
OLD | NEW |