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

Side by Side Diff: fpdfsdk/include/fsdk_define.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 | « fpdfsdk/include/fsdk_baseform.h ('k') | fpdfsdk/include/fsdk_mgr.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 FPDFSDK_INCLUDE_FSDK_DEFINE_H_ 7 #ifndef FPDFSDK_INCLUDE_FSDK_DEFINE_H_
8 #define FPDFSDK_INCLUDE_FSDK_DEFINE_H_ 8 #define FPDFSDK_INCLUDE_FSDK_DEFINE_H_
9 9
10 #include "../../core/include/fpdfapi/fpdf_module.h" 10 #include "../../core/include/fpdfapi/fpdf_module.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class CPDF_CustomAccess final : public IFX_FileRead 42 class CPDF_CustomAccess final : public IFX_FileRead
43 { 43 {
44 public: 44 public:
45 CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess); 45 CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess);
46 ~CPDF_CustomAccess() {} 46 ~CPDF_CustomAccess() {}
47 47
48 virtual FX_FILESIZE GetSize() override { return m_FileAccess.m_FileL en; } 48 virtual FX_FILESIZE GetSize() override { return m_FileAccess.m_FileL en; }
49 49
50 virtual void Release() override { delete this; } 50 virtual void Release() override { delete this; }
51 51
52 » virtual FX_BOOL»» ReadBlock(void* buffer, FX_FILESIZE offset, size _t size) override; 52 » virtual bool» » ReadBlock(void* buffer, FX_FILESIZE offset, size _t size) override;
53 53
54 private: 54 private:
55 FPDF_FILEACCESS m_FileAccess; 55 FPDF_FILEACCESS m_FileAccess;
56 }; 56 };
57 57
58 void DropContext(void* data); 58 void DropContext(void* data);
59 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); 59 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable);
60 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); 60 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy);
61 void FPDF_RenderPage_Retail(CRenderContext* pContext, FPDF_PAGE page, 61 void FPDF_RenderPage_Retail(CRenderContext* pContext, FPDF_PAGE page,
62 int start_x, int start_y, int size_x, int size_y, 62 int start_x, int start_y, int size_x, int size_y,
63 int rotate, int flags, FX_BOOL bNeedToRestore, 63 int rotate, int flags, bool bNeedToRestore,
64 IFSDK_PAUSE_Adapter* pause); 64 IFSDK_PAUSE_Adapter* pause);
65 65
66 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ 66 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/fsdk_baseform.h ('k') | fpdfsdk/include/fsdk_mgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698