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

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

Issue 2343693002: Replace FX_UINT with unsigned int (Closed)
Patch Set: Remove include 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
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. 23 // Convert a #FX_ARGB to a #FX_COLORREF.
Tom Sepez 2016/09/15 16:42:16 nit: can we lose the #s while we're at it?
dsinclair 2016/09/15 17:38:32 Done.
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.
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; 28 class CPDF_Annot;
36 class CPDF_Page; 29 class CPDF_Page;
37 class CPDF_PageRenderContext; 30 class CPDF_PageRenderContext;
38 class IFSDK_PAUSE_Adapter; 31 class IFSDK_PAUSE_Adapter;
39 32
40 class CPDF_CustomAccess final : public IFX_FileRead { 33 class CPDF_CustomAccess final : public IFX_FileRead {
41 public: 34 public:
42 explicit CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess); 35 explicit CPDF_CustomAccess(FPDF_FILEACCESS* pFileAccess);
43 ~CPDF_CustomAccess() override {} 36 ~CPDF_CustomAccess() override {}
44 37
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int rotate, 117 int rotate,
125 int flags, 118 int flags,
126 FX_BOOL bNeedToRestore, 119 FX_BOOL bNeedToRestore,
127 IFSDK_PAUSE_Adapter* pause); 120 IFSDK_PAUSE_Adapter* pause);
128 121
129 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code); 122 void CheckUnSupportError(CPDF_Document* pDoc, uint32_t err_code);
130 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot); 123 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot);
131 void ProcessParseError(CPDF_Parser::Error err); 124 void ProcessParseError(CPDF_Parser::Error err);
132 125
133 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_ 126 #endif // FPDFSDK_INCLUDE_FSDK_DEFINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698