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

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

Issue 2343693002: Replace FX_UINT with unsigned int (Closed)
Patch Set: Remove #s Created 4 years, 3 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/cpdfsdk_pageview.h ('k') | fpdfsdk/javascript/app.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 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"
11 #include "core/fxge/include/fx_dib.h" 11 #include "core/fxge/include/fx_dib.h"
12 #include "public/fpdfview.h" 12 #include "public/fpdfview.h"
13 13
14 #ifdef PDF_ENABLE_XFA 14 #ifdef PDF_ENABLE_XFA
15 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" 15 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h"
16 #endif // PDF_ENABLE_XFA 16 #endif // PDF_ENABLE_XFA
17 17
18 #ifdef _WIN32 18 #ifdef _WIN32
19 #include <math.h> 19 #include <math.h>
20 #include <tchar.h> 20 #include <tchar.h>
21 #endif 21 #endif
22 22
23 // Convert a #FX_ARGB to a #FX_COLORREF.
24 #define FX_ARGBTOCOLORREF(argb) \
25 ((((uint32_t)argb & 0x00FF0000) >> 16) | ((uint32_t)argb & 0x0000FF00) | \
26 (((uint32_t)argb & 0x000000FF) << 16))
27
28 // Convert a #FX_COLORREF to a #FX_ARGB.
29 #define FX_COLORREFTOARGB(rgb) \
30 ((uint32_t)0xFF000000 | (((uint32_t)rgb & 0x000000FF) << 16) | \
31 ((uint32_t)rgb & 0x0000FF00) | (((uint32_t)rgb & 0x00FF0000) >> 16))
32
33 typedef unsigned int FX_UINT;
34
35 class CPDF_Annot; 23 class CPDF_Annot;
36 class CPDF_Page; 24 class CPDF_Page;
37 class CPDF_PageRenderContext; 25 class CPDF_PageRenderContext;
38 class IFSDK_PAUSE_Adapter; 26 class IFSDK_PAUSE_Adapter;
39 27
40 class CPDF_CustomAccess final : public IFX_FileRead { 28 class CPDF_CustomAccess final : public IFX_FileRead {
41 public: 29 public:
42 explicit CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess); 30 explicit CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess);
43 ~CPDF_CustomAccess() override {} 31 ~CPDF_CustomAccess() override {}
44 32
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int rotate, 112 int rotate,
125 int flags, 113 int flags,
126 FX_BOOL bNeedToRestore, 114 FX_BOOL bNeedToRestore,
127 IFSDK_PAUSE_Adapter* pause); 115 IFSDK_PAUSE_Adapter* pause);
128 116
129 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); 117 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code);
130 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); 118 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot);
131 void ProcessParseError(CPDF_Parser::Error err); 119 void ProcessParseError(CPDF_Parser::Error err);
132 120
133 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ 121 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/cpdfsdk_pageview.h ('k') | fpdfsdk/javascript/app.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698