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

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

Issue 1265503005: clang-format all pdfium code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: sigh Created 5 years, 4 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
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_WINDOWS_H_ 7 #ifndef CORE_SRC_FXCRT_FXCRT_WINDOWS_H_
8 #define CORE_SRC_FXCRT_FXCRT_WINDOWS_H_ 8 #define CORE_SRC_FXCRT_FXCRT_WINDOWS_H_
9 9
10 #include "extension.h" 10 #include "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 { 14 public:
15 public: 15 CFXCRT_FileAccess_Win64();
16 CFXCRT_FileAccess_Win64(); 16 virtual ~CFXCRT_FileAccess_Win64();
17 virtual ~CFXCRT_FileAccess_Win64(); 17 virtual FX_BOOL Open(const CFX_ByteStringC& fileName, FX_DWORD dwMode);
18 virtual FX_BOOL» » Open(const CFX_ByteStringC& fileName, FX_DWORD d wMode); 18 virtual FX_BOOL Open(const CFX_WideStringC& fileName, FX_DWORD dwMode);
19 virtual FX_BOOL» » Open(const CFX_WideStringC& fileName, FX_DWORD d wMode); 19 virtual void Close();
20 virtual void» » Close(); 20 virtual void Release();
21 virtual void» » Release(); 21 virtual FX_FILESIZE GetSize() const;
22 virtual FX_FILESIZE»GetSize() const; 22 virtual FX_FILESIZE GetPosition() const;
23 virtual FX_FILESIZE»GetPosition() const; 23 virtual FX_FILESIZE SetPosition(FX_FILESIZE pos);
24 virtual FX_FILESIZE»SetPosition(FX_FILESIZE pos); 24 virtual size_t Read(void* pBuffer, size_t szBuffer);
25 virtual size_t» » Read(void* pBuffer, size_t szBuffer); 25 virtual size_t Write(const void* pBuffer, size_t szBuffer);
26 virtual size_t» » Write(const void* pBuffer, size_t szBuffer); 26 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos);
27 virtual size_t» » ReadPos(void* pBuffer, size_t szBuffer, FX_FILES IZE pos); 27 virtual size_t WritePos(const void* pBuffer,
28 virtual size_t» » WritePos(const void* pBuffer, size_t szBuffer, F X_FILESIZE pos); 28 size_t szBuffer,
29 virtual FX_BOOL» » Flush(); 29 FX_FILESIZE pos);
30 virtual FX_BOOL» » Truncate(FX_FILESIZE szFile); 30 virtual FX_BOOL Flush();
31 protected: 31 virtual FX_BOOL Truncate(FX_FILESIZE szFile);
32 void*» m_hFile; 32
33 protected:
34 void* m_hFile;
33 }; 35 };
34 #endif 36 #endif
35 37
36 #endif // CORE_SRC_FXCRT_FXCRT_WINDOWS_H_ 38 #endif // CORE_SRC_FXCRT_FXCRT_WINDOWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698