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

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

Issue 2450183003: Fix some FX_BOOL / int noise in fxcrt. (Closed)
Patch Set: moar Created 4 years, 1 month 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/fxcrt_stream.cpp ('k') | core/fxcrt/fxcrt_windows.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_FXCRT_WINDOWS_H_ 7 #ifndef CORE_FXCRT_FXCRT_WINDOWS_H_
8 #define CORE_FXCRT_FXCRT_WINDOWS_H_ 8 #define CORE_FXCRT_FXCRT_WINDOWS_H_
9 9
10 #include "core/fxcrt/extension.h" 10 #include "core/fxcrt/extension.h"
11 11
12 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 12 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
13 class CFXCRT_FileAccess_Win64 : public IFXCRT_FileAccess { 13 class CFXCRT_FileAccess_Win64 : public IFXCRT_FileAccess {
14 public: 14 public:
15 CFXCRT_FileAccess_Win64(); 15 CFXCRT_FileAccess_Win64();
16 ~CFXCRT_FileAccess_Win64() override; 16 ~CFXCRT_FileAccess_Win64() override;
17 17
18 // IFXCRT_FileAccess 18 // IFXCRT_FileAccess
19 FX_BOOL Open(const CFX_ByteStringC& fileName, uint32_t dwMode) override; 19 bool Open(const CFX_ByteStringC& fileName, uint32_t dwMode) override;
20 FX_BOOL Open(const CFX_WideStringC& fileName, uint32_t dwMode) override; 20 bool Open(const CFX_WideStringC& fileName, uint32_t dwMode) override;
21 void Close() override; 21 void Close() override;
22 FX_FILESIZE GetSize() const override; 22 FX_FILESIZE GetSize() const override;
23 FX_FILESIZE GetPosition() const override; 23 FX_FILESIZE GetPosition() const override;
24 FX_FILESIZE SetPosition(FX_FILESIZE pos) override; 24 FX_FILESIZE SetPosition(FX_FILESIZE pos) override;
25 size_t Read(void* pBuffer, size_t szBuffer) override; 25 size_t Read(void* pBuffer, size_t szBuffer) override;
26 size_t Write(const void* pBuffer, size_t szBuffer) override; 26 size_t Write(const void* pBuffer, size_t szBuffer) override;
27 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override; 27 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override;
28 size_t WritePos(const void* pBuffer, 28 size_t WritePos(const void* pBuffer,
29 size_t szBuffer, 29 size_t szBuffer,
30 FX_FILESIZE pos) override; 30 FX_FILESIZE pos) override;
31 FX_BOOL Flush() override; 31 bool Flush() override;
32 FX_BOOL Truncate(FX_FILESIZE szFile) override; 32 bool Truncate(FX_FILESIZE szFile) override;
33 33
34 protected: 34 protected:
35 void* m_hFile; 35 void* m_hFile;
36 }; 36 };
37 #endif 37 #endif
38 38
39 #endif // CORE_FXCRT_FXCRT_WINDOWS_H_ 39 #endif // CORE_FXCRT_FXCRT_WINDOWS_H_
OLDNEW
« no previous file with comments | « core/fxcrt/fxcrt_stream.cpp ('k') | core/fxcrt/fxcrt_windows.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698