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

Side by Side Diff: core/fxcrt/include/fx_basic.h

Issue 2005933002: Rename IFX_Unknown to IFX_Retainable. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Alphabetical order. Created 4 years, 7 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 | « no previous file | core/fxcrt/include/fx_ucd.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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | core/fxcrt/include/fx_ucd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698