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

Side by Side Diff: fpdfsdk/include/fsdk_define.h

Issue 2180443002: Use actual type instead CFX_Deletable (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: one more fix Created 4 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/fsdk_rendercontext.cpp ('k') | fpdfsdk/include/fsdk_pauseadapter.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/fpdfapi/fpdf_parser/include/cpdf_parser.h" 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h"
(...skipping 13 matching lines...) Expand all
24 #define FX_ARGBTOCOLORREF(argb) \ 24 #define FX_ARGBTOCOLORREF(argb) \
25 ((((uint32_t)argb & 0x00FF0000) >> 16) | ((uint32_t)argb & 0x0000FF00) | \ 25 ((((uint32_t)argb & 0x00FF0000) >> 16) | ((uint32_t)argb & 0x0000FF00) | \
26 (((uint32_t)argb & 0x000000FF) << 16)) 26 (((uint32_t)argb & 0x000000FF) << 16))
27 27
28 // Convert a #FX_COLORREF to a #FX_ARGB. 28 // Convert a #FX_COLORREF to a #FX_ARGB.
29 #define FX_COLORREFTOARGB(rgb) \ 29 #define FX_COLORREFTOARGB(rgb) \
30 ((uint32_t)0xFF000000 | (((uint32_t)rgb & 0x000000FF) << 16) | \ 30 ((uint32_t)0xFF000000 | (((uint32_t)rgb & 0x000000FF) << 16) | \
31 ((uint32_t)rgb & 0x0000FF00) | (((uint32_t)rgb & 0x00FF0000) >> 16)) 31 ((uint32_t)rgb & 0x0000FF00) | (((uint32_t)rgb & 0x00FF0000) >> 16))
32 32
33 typedef unsigned int FX_UINT; 33 typedef unsigned int FX_UINT;
34 class CRenderContext; 34 class CPDF_PageRenderContext;
35 class IFSDK_PAUSE_Adapter; 35 class IFSDK_PAUSE_Adapter;
36 36
37 class CPDF_CustomAccess final : public IFX_FileRead { 37 class CPDF_CustomAccess final : public IFX_FileRead {
38 public: 38 public:
39 explicit CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess); 39 explicit CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess);
40 ~CPDF_CustomAccess() override {} 40 ~CPDF_CustomAccess() override {}
41 41
42 // IFX_FileRead 42 // IFX_FileRead
43 FX_FILESIZE GetSize() override; 43 FX_FILESIZE GetSize() override;
44 void Release() override; 44 void Release() override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // Conversions to/from FPDF_ types. 105 // Conversions to/from FPDF_ types.
106 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc); 106 CPDF_Document* CPDFDocumentFromFPDFDocument(FPDF_DOCUMENT doc);
107 FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc); 107 FPDF_DOCUMENT FPDFDocumentFromCPDFDocument(CPDF_Document* doc);
108 108
109 CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page); 109 CPDF_Page* CPDFPageFromFPDFPage(FPDF_PAGE page);
110 110
111 CFX_DIBitmap* CFXBitmapFromFPDFBitmap(FPDF_BITMAP bitmap); 111 CFX_DIBitmap* CFXBitmapFromFPDFBitmap(FPDF_BITMAP bitmap);
112 112
113 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable); 113 void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable);
114 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy); 114 FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy);
115 void FPDF_RenderPage_Retail(CRenderContext* pContext, 115 void FPDF_RenderPage_Retail(CPDF_PageRenderContext* pContext,
116 FPDF_PAGE page, 116 FPDF_PAGE page,
117 int start_x, 117 int start_x,
118 int start_y, 118 int start_y,
119 int size_x, 119 int size_x,
120 int size_y, 120 int size_y,
121 int rotate, 121 int rotate,
122 int flags, 122 int flags,
123 FX_BOOL bNeedToRestore, 123 FX_BOOL bNeedToRestore,
124 IFSDK_PAUSE_Adapter* pause); 124 IFSDK_PAUSE_Adapter* pause);
125 125
126 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); 126 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code);
127 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); 127 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot);
128 void ProcessParseError(CPDF_Parser::Error err); 128 void ProcessParseError(CPDF_Parser::Error err);
129 129
130 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ 130 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_
OLDNEW
« no previous file with comments | « fpdfsdk/fsdk_rendercontext.cpp ('k') | fpdfsdk/include/fsdk_pauseadapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698