| 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 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 | 904 |
| 905 T2* GetPtrAt(int32_t nIndex) { return (T2*)m_Data.GetAt(nIndex); } | 905 T2* GetPtrAt(int32_t nIndex) { return (T2*)m_Data.GetAt(nIndex); } |
| 906 | 906 |
| 907 protected: | 907 protected: |
| 908 T1 m_Data; | 908 T1 m_Data; |
| 909 }; | 909 }; |
| 910 typedef CFX_ListArrayTemplate<CFX_SortListArray<sizeof(FX_FILESIZE)>, | 910 typedef CFX_ListArrayTemplate<CFX_SortListArray<sizeof(FX_FILESIZE)>, |
| 911 FX_FILESIZE> CFX_FileSizeListArray; | 911 FX_FILESIZE> CFX_FileSizeListArray; |
| 912 | 912 |
| 913 #ifdef PDF_ENABLE_XFA | 913 #ifdef PDF_ENABLE_XFA |
| 914 class IFX_Unknown { | 914 class IFX_Retainable { |
| 915 public: | 915 public: |
| 916 virtual ~IFX_Unknown() {} | 916 virtual uint32_t Retain() = 0; |
| 917 virtual uint32_t Release() = 0; | 917 virtual uint32_t Release() = 0; |
| 918 virtual uint32_t AddRef() = 0; | 918 |
| 919 protected: |
| 920 virtual ~IFX_Retainable() {} |
| 919 }; | 921 }; |
| 920 #define FX_IsOdd(a) ((a)&1) | 922 #define FX_IsOdd(a) ((a)&1) |
| 921 #endif // PDF_ENABLE_XFA | 923 #endif // PDF_ENABLE_XFA |
| 922 | 924 |
| 923 class CFX_Vector_3by1 { | 925 class CFX_Vector_3by1 { |
| 924 public: | 926 public: |
| 925 CFX_Vector_3by1() : a(0.0f), b(0.0f), c(0.0f) {} | 927 CFX_Vector_3by1() : a(0.0f), b(0.0f), c(0.0f) {} |
| 926 | 928 |
| 927 CFX_Vector_3by1(FX_FLOAT a1, FX_FLOAT b1, FX_FLOAT c1) | 929 CFX_Vector_3by1(FX_FLOAT a1, FX_FLOAT b1, FX_FLOAT c1) |
| 928 : a(a1), b(b1), c(c1) {} | 930 : a(a1), b(b1), c(c1) {} |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 FX_FLOAT e; | 970 FX_FLOAT e; |
| 969 FX_FLOAT f; | 971 FX_FLOAT f; |
| 970 FX_FLOAT g; | 972 FX_FLOAT g; |
| 971 FX_FLOAT h; | 973 FX_FLOAT h; |
| 972 FX_FLOAT i; | 974 FX_FLOAT i; |
| 973 }; | 975 }; |
| 974 | 976 |
| 975 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits); | 977 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits); |
| 976 | 978 |
| 977 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ | 979 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ |
| OLD | NEW |