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

Side by Side Diff: core/src/fxcrt/fxcrt_platforms.h

Issue 1252613002: FX_BOOL considered harmful. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Manual edits. Created 5 years, 5 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/src/fxcrt/fx_xml_parser.cpp ('k') | core/src/fxcrt/fxcrt_platforms.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_SRC_FXCRT_FXCRT_PLATFORMS_H_ 7 #ifndef CORE_SRC_FXCRT_FXCRT_PLATFORMS_H_
8 #define CORE_SRC_FXCRT_FXCRT_PLATFORMS_H_ 8 #define CORE_SRC_FXCRT_FXCRT_PLATFORMS_H_
9 9
10 #include "extension.h" 10 #include "extension.h"
11 11
12 #if _FX_OS_ == _FX_ANDROID_ 12 #if _FX_OS_ == _FX_ANDROID_
13 void FXCRT_GetFileModeString(FX_DWORD dwModes, CFX_ByteString &bsMode); 13 void FXCRT_GetFileModeString(FX_DWORD dwModes, CFX_ByteString &bsMode);
14 void FXCRT_GetFileModeString(FX_DWORD dwModes, CFX_WideString &wsMode); 14 void FXCRT_GetFileModeString(FX_DWORD dwModes, CFX_WideString &wsMode);
15 class CFXCRT_FileAccess_CRT : public IFXCRT_FileAccess 15 class CFXCRT_FileAccess_CRT : public IFXCRT_FileAccess
16 { 16 {
17 public: 17 public:
18 CFXCRT_FileAccess_CRT(); 18 CFXCRT_FileAccess_CRT();
19 virtual ~CFXCRT_FileAccess_CRT(); 19 virtual ~CFXCRT_FileAccess_CRT();
20 virtual FX_BOOL» » Open(const CFX_ByteStringC& fileName, FX_DWORD d wMode); 20 virtual bool» » Open(const CFX_ByteStringC& fileName, FX_DWORD d wMode);
21 virtual FX_BOOL» » Open(const CFX_WideStringC& fileName, FX_DWORD d wMode); 21 virtual bool» » Open(const CFX_WideStringC& fileName, FX_DWORD d wMode);
22 virtual void Close(); 22 virtual void Close();
23 virtual void Release(); 23 virtual void Release();
24 virtual FX_FILESIZE GetSize() const; 24 virtual FX_FILESIZE GetSize() const;
25 virtual FX_FILESIZE GetPosition() const; 25 virtual FX_FILESIZE GetPosition() const;
26 virtual FX_FILESIZE SetPosition(FX_FILESIZE pos); 26 virtual FX_FILESIZE SetPosition(FX_FILESIZE pos);
27 virtual size_t Read(void* pBuffer, size_t szBuffer); 27 virtual size_t Read(void* pBuffer, size_t szBuffer);
28 virtual size_t Write(const void* pBuffer, size_t szBuffer); 28 virtual size_t Write(const void* pBuffer, size_t szBuffer);
29 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILES IZE pos); 29 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILES IZE pos);
30 virtual size_t WritePos(const void* pBuffer, size_t szBuffer, F X_FILESIZE pos); 30 virtual size_t WritePos(const void* pBuffer, size_t szBuffer, F X_FILESIZE pos);
31 virtual FX_BOOL» » Flush(); 31 virtual bool» » Flush();
32 virtual FX_BOOL» » Truncate(FX_FILESIZE szFile); 32 virtual bool» » Truncate(FX_FILESIZE szFile);
33 protected: 33 protected:
34 FXSYS_FILE* m_hFile; 34 FXSYS_FILE* m_hFile;
35 }; 35 };
36 #endif 36 #endif
37 37
38 #endif // CORE_SRC_FXCRT_FXCRT_PLATFORMS_H_ 38 #endif // CORE_SRC_FXCRT_FXCRT_PLATFORMS_H_
OLDNEW
« no previous file with comments | « core/src/fxcrt/fx_xml_parser.cpp ('k') | core/src/fxcrt/fxcrt_platforms.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698