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

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

Issue 2382723003: Move core/fxcrt/include to core/fxcrt (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 | « core/fxcrt/fx_arb.h ('k') | core/fxcrt/fx_basic_array.cpp » ('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_FX_BASIC_H_
8 #define CORE_FXCRT_INCLUDE_FX_BASIC_H_ 8 #define CORE_FXCRT_FX_BASIC_H_
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <memory> 11 #include <memory>
12 12
13 #include "core/fxcrt/include/fx_memory.h" 13 #include "core/fxcrt/fx_memory.h"
14 #include "core/fxcrt/include/fx_stream.h" 14 #include "core/fxcrt/fx_stream.h"
15 #include "core/fxcrt/include/fx_string.h" 15 #include "core/fxcrt/fx_string.h"
16 #include "core/fxcrt/include/fx_system.h" 16 #include "core/fxcrt/fx_system.h"
17 17
18 class CFX_BinaryBuf { 18 class CFX_BinaryBuf {
19 public: 19 public:
20 CFX_BinaryBuf(); 20 CFX_BinaryBuf();
21 explicit CFX_BinaryBuf(FX_STRSIZE size); 21 explicit CFX_BinaryBuf(FX_STRSIZE size);
22 ~CFX_BinaryBuf(); 22 ~CFX_BinaryBuf();
23 23
24 uint8_t* GetBuffer() const { return m_pBuffer.get(); } 24 uint8_t* GetBuffer() const { return m_pBuffer.get(); }
25 FX_STRSIZE GetSize() const { return m_DataSize; } 25 FX_STRSIZE GetSize() const { return m_DataSize; }
26 26
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 ASSERT(data); 781 ASSERT(data);
782 return (T2&)(*(volatile T2*)data); 782 return (T2&)(*(volatile T2*)data);
783 } 783 }
784 784
785 T2* GetPtrAt(int32_t nIndex) { return (T2*)m_Data.GetAt(nIndex); } 785 T2* GetPtrAt(int32_t nIndex) { return (T2*)m_Data.GetAt(nIndex); }
786 786
787 protected: 787 protected:
788 T1 m_Data; 788 T1 m_Data;
789 }; 789 };
790 typedef CFX_ListArrayTemplate<CFX_SortListArray<sizeof(FX_FILESIZE)>, 790 typedef CFX_ListArrayTemplate<CFX_SortListArray<sizeof(FX_FILESIZE)>,
791 FX_FILESIZE> CFX_FileSizeListArray; 791 FX_FILESIZE>
792 CFX_FileSizeListArray;
792 793
793 #ifdef PDF_ENABLE_XFA 794 #ifdef PDF_ENABLE_XFA
794 class IFX_Retainable { 795 class IFX_Retainable {
795 public: 796 public:
796 virtual uint32_t Retain() = 0; 797 virtual uint32_t Retain() = 0;
797 virtual uint32_t Release() = 0; 798 virtual uint32_t Release() = 0;
798 799
799 protected: 800 protected:
800 virtual ~IFX_Retainable() {} 801 virtual ~IFX_Retainable() {}
801 }; 802 };
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 FX_FLOAT d; 850 FX_FLOAT d;
850 FX_FLOAT e; 851 FX_FLOAT e;
851 FX_FLOAT f; 852 FX_FLOAT f;
852 FX_FLOAT g; 853 FX_FLOAT g;
853 FX_FLOAT h; 854 FX_FLOAT h;
854 FX_FLOAT i; 855 FX_FLOAT i;
855 }; 856 };
856 857
857 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits); 858 uint32_t GetBits32(const uint8_t* pData, int bitpos, int nbits);
858 859
859 #endif // CORE_FXCRT_INCLUDE_FX_BASIC_H_ 860 #endif // CORE_FXCRT_FX_BASIC_H_
OLDNEW
« no previous file with comments | « core/fxcrt/fx_arb.h ('k') | core/fxcrt/fx_basic_array.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698