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

Side by Side Diff: core/include/fxcrt/fx_stream.h

Issue 1129433002: Kill FX_DEFINEHANDLE (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | core/include/fxcrt/fx_system.h » ('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 _FX_STREAM_H_ 7 #ifndef _FX_STREAM_H_
8 #define _FX_STREAM_H_ 8 #define _FX_STREAM_H_
9 9
10 #include "fx_memory.h" 10 #include "fx_memory.h"
11 #include "fx_string.h" 11 #include "fx_string.h"
12 12
13 void* FX_OpenFolder(FX_LPCSTR path); 13 void* FX_OpenFolder(FX_LPCSTR path);
14 void* FX_OpenFolder(FX_LPCWSTR path); 14 void* FX_OpenFolder(FX_LPCWSTR path);
15 FX_BOOL FX_GetNextFile(void* handle, CFX_ByteString& filename, FX_BOOL& bFolder) ; 15 FX_BOOL FX_GetNextFile(void* handle, CFX_ByteString& filename, FX_BOOL& bFolder) ;
16 FX_BOOL FX_GetNextFile(void* handle, CFX_WideString& filename, FX_BOOL& bFolder) ; 16 FX_BOOL FX_GetNextFile(void* handle, CFX_WideString& filename, FX_BOOL& bFolder) ;
17 void FX_CloseFolder(void* handle); 17 void FX_CloseFolder(void* handle);
18 FX_WCHAR FX_GetFolderSeparator(); 18 FX_WCHAR FX_GetFolderSeparator();
19 FX_DEFINEHANDLE(FX_HFILE) 19 typedef struct FX_HFILE_ {
20 FX_LPVOID pData;
21 }* FX_HFILE;
20 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 22 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
21 #define FX_FILESIZE FX_INT32 23 #define FX_FILESIZE FX_INT32
22 #else 24 #else
23 #include <fcntl.h> 25 #include <fcntl.h>
24 #include <unistd.h> 26 #include <unistd.h>
25 #include <sys/stat.h> 27 #include <sys/stat.h>
26 #ifndef O_BINARY 28 #ifndef O_BINARY
27 #define O_BINARY 0 29 #define O_BINARY 0
28 #endif 30 #endif
29 #ifndef O_LARGEFILE 31 #ifndef O_LARGEFILE
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 194
193 virtual FX_BOOL ReadNextBlock(FX_BOOL bRestart = FALSE) = 0; 195 virtual FX_BOOL ReadNextBlock(FX_BOOL bRestart = FALSE) = 0;
194 196
195 virtual FX_LPCBYTE GetBlockBuffer() = 0; 197 virtual FX_LPCBYTE GetBlockBuffer() = 0;
196 198
197 virtual size_t GetBlockSize() = 0; 199 virtual size_t GetBlockSize() = 0;
198 200
199 virtual FX_FILESIZE GetBlockOffset() = 0; 201 virtual FX_FILESIZE GetBlockOffset() = 0;
200 }; 202 };
201 #endif 203 #endif
OLDNEW
« no previous file with comments | « no previous file | core/include/fxcrt/fx_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698