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

Unified Diff: core/fxcrt/extension.h

Issue 1832173003: Remove FX_DWORD from core/ and delete definition (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fxcodec/lgif/fx_gif.cpp ('k') | core/fxcrt/fx_arabic.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fxcrt/extension.h
diff --git a/core/fxcrt/extension.h b/core/fxcrt/extension.h
index 1789de33aaf5f46c8ee6d12366c99332e5183857..a9f3c23d29472251021dfe720d44a08d53ac2a4e 100644
--- a/core/fxcrt/extension.h
+++ b/core/fxcrt/extension.h
@@ -15,8 +15,8 @@
class IFXCRT_FileAccess {
public:
virtual ~IFXCRT_FileAccess() {}
- virtual FX_BOOL Open(const CFX_ByteStringC& fileName, FX_DWORD dwMode) = 0;
- virtual FX_BOOL Open(const CFX_WideStringC& fileName, FX_DWORD dwMode) = 0;
+ virtual FX_BOOL Open(const CFX_ByteStringC& fileName, uint32_t dwMode) = 0;
+ virtual FX_BOOL Open(const CFX_WideStringC& fileName, uint32_t dwMode) = 0;
virtual void Close() = 0;
virtual void Release() = 0;
virtual FX_FILESIZE GetSize() const = 0;
@@ -51,7 +51,7 @@ class CFX_CRTFileAccess : public IFX_FileAccess {
void GetPath(CFX_WideString& wsPath) override { wsPath = m_path; }
- IFX_FileStream* CreateFileStream(FX_DWORD dwModes) override {
+ IFX_FileStream* CreateFileStream(uint32_t dwModes) override {
return FX_CreateFileStream(m_path, dwModes);
}
@@ -63,7 +63,7 @@ class CFX_CRTFileAccess : public IFX_FileAccess {
protected:
CFX_WideString m_path;
- FX_DWORD m_RefCount;
+ uint32_t m_RefCount;
};
#endif // PDF_ENABLE_XFA
@@ -87,7 +87,7 @@ class CFX_CRTFileStream final : public IFX_FileStream {
protected:
IFXCRT_FileAccess* m_pFile;
- FX_DWORD m_dwCount;
+ uint32_t m_dwCount;
};
#define FX_MEMSTREAM_BlockSize (64 * 1024)
@@ -129,7 +129,7 @@ class CFX_MemoryStream final : public IFX_MemoryStream {
return this;
}
void Release() override {
- FX_DWORD nCount = --m_dwCount;
+ uint32_t nCount = --m_dwCount;
if (nCount) {
return;
}
@@ -282,12 +282,12 @@ class CFX_MemoryStream final : public IFX_MemoryStream {
protected:
CFX_ArrayTemplate<uint8_t*> m_Blocks;
- FX_DWORD m_dwCount;
+ uint32_t m_dwCount;
size_t m_nTotalSize;
size_t m_nCurSize;
size_t m_nCurPos;
size_t m_nGrowSize;
- FX_DWORD m_dwFlags;
+ uint32_t m_dwFlags;
FX_BOOL ExpandBlocks(size_t size) {
if (m_nCurSize < size) {
m_nCurSize = size;
@@ -320,12 +320,12 @@ struct FX_MTRANDOMCONTEXT {
mti = MT_N + 1;
bHaveSeed = FALSE;
}
- FX_DWORD mti;
+ uint32_t mti;
FX_BOOL bHaveSeed;
- FX_DWORD mt[MT_N];
+ uint32_t mt[MT_N];
};
#if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
-FX_BOOL FX_GenerateCryptoRandom(FX_DWORD* pBuffer, int32_t iCount);
+FX_BOOL FX_GenerateCryptoRandom(uint32_t* pBuffer, int32_t iCount);
#endif
#ifdef __cplusplus
}
« no previous file with comments | « core/fxcodec/lgif/fx_gif.cpp ('k') | core/fxcrt/fx_arabic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698