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

Side by Side Diff: xfa/fxgraphics/cfx_shading.h

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month 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 | « xfa/fxgraphics/cfx_path_generator.cpp ('k') | xfa/fxgraphics/cfx_shading.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 XFA_FXGRAPHICS_CFX_SHADING_H_ 7 #ifndef XFA_FXGRAPHICS_CFX_SHADING_H_
8 #define XFA_FXGRAPHICS_CFX_SHADING_H_ 8 #define XFA_FXGRAPHICS_CFX_SHADING_H_
9 9
10 #include "core/fxcrt/fx_coordinates.h" 10 #include "core/fxcrt/fx_coordinates.h"
11 #include "core/fxcrt/fx_system.h" 11 #include "core/fxcrt/fx_system.h"
12 #include "core/fxge/fx_dib.h" 12 #include "core/fxge/fx_dib.h"
13 13
14 #define FX_SHADING_Steps 256 14 #define FX_SHADING_Steps 256
15 15
16 enum CFX_Shading_Type { FX_SHADING_Axial = 1, FX_SHADING_Radial }; 16 enum CFX_Shading_Type { FX_SHADING_Axial = 1, FX_SHADING_Radial };
17 17
18 class CFX_Shading { 18 class CFX_Shading {
19 public: 19 public:
20 // Axial shading. 20 // Axial shading.
21 CFX_Shading(const CFX_PointF& beginPoint, 21 CFX_Shading(const CFX_PointF& beginPoint,
22 const CFX_PointF& endPoint, 22 const CFX_PointF& endPoint,
23 FX_BOOL isExtendedBegin, 23 bool isExtendedBegin,
24 FX_BOOL isExtendedEnd, 24 bool isExtendedEnd,
25 const FX_ARGB beginArgb, 25 const FX_ARGB beginArgb,
26 const FX_ARGB endArgb); 26 const FX_ARGB endArgb);
27 27
28 // Radial shading. 28 // Radial shading.
29 CFX_Shading(const CFX_PointF& beginPoint, 29 CFX_Shading(const CFX_PointF& beginPoint,
30 const CFX_PointF& endPoint, 30 const CFX_PointF& endPoint,
31 const FX_FLOAT beginRadius, 31 const FX_FLOAT beginRadius,
32 const FX_FLOAT endRadius, 32 const FX_FLOAT endRadius,
33 FX_BOOL isExtendedBegin, 33 bool isExtendedBegin,
34 FX_BOOL isExtendedEnd, 34 bool isExtendedEnd,
35 const FX_ARGB beginArgb, 35 const FX_ARGB beginArgb,
36 const FX_ARGB endArgb); 36 const FX_ARGB endArgb);
37 virtual ~CFX_Shading(); 37 virtual ~CFX_Shading();
38 38
39 private: 39 private:
40 friend class CFX_Graphics; 40 friend class CFX_Graphics;
41 41
42 void InitArgbArray(); 42 void InitArgbArray();
43 43
44 const CFX_Shading_Type m_type; 44 const CFX_Shading_Type m_type;
45 const CFX_PointF m_beginPoint; 45 const CFX_PointF m_beginPoint;
46 const CFX_PointF m_endPoint; 46 const CFX_PointF m_endPoint;
47 const FX_FLOAT m_beginRadius; 47 const FX_FLOAT m_beginRadius;
48 const FX_FLOAT m_endRadius; 48 const FX_FLOAT m_endRadius;
49 const FX_BOOL m_isExtendedBegin; 49 const bool m_isExtendedBegin;
50 const FX_BOOL m_isExtendedEnd; 50 const bool m_isExtendedEnd;
51 const FX_ARGB m_beginArgb; 51 const FX_ARGB m_beginArgb;
52 const FX_ARGB m_endArgb; 52 const FX_ARGB m_endArgb;
53 FX_ARGB m_argbArray[FX_SHADING_Steps]; 53 FX_ARGB m_argbArray[FX_SHADING_Steps];
54 }; 54 };
55 55
56 #endif // XFA_FXGRAPHICS_CFX_SHADING_H_ 56 #endif // XFA_FXGRAPHICS_CFX_SHADING_H_
OLDNEW
« no previous file with comments | « xfa/fxgraphics/cfx_path_generator.cpp ('k') | xfa/fxgraphics/cfx_shading.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698