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

Side by Side Diff: xfa/src/fdp/src/fde/fde_object.h

Issue 1747123002: Fix and enable lint checks. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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 XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_ 7 #ifndef XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_
8 #define XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_ 8 #define XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_
9 9
10 #include <cstdint> 10 #include <cstdint>
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return bForegroundColor ? m_ForeColor : m_BackColor; 136 return bForegroundColor ? m_ForeColor : m_BackColor;
137 } 137 }
138 virtual void SetColor(FX_ARGB color, FX_BOOL bForegroundColor) { 138 virtual void SetColor(FX_ARGB color, FX_BOOL bForegroundColor) {
139 if (bForegroundColor) { 139 if (bForegroundColor) {
140 m_ForeColor = color; 140 m_ForeColor = color;
141 } else { 141 } else {
142 m_BackColor = color; 142 m_BackColor = color;
143 } 143 }
144 } 144 }
145 145
146 virtual int32_t GetHatchStyle() const { return m_iStyle; }; 146 virtual int32_t GetHatchStyle() const { return m_iStyle; }
147 virtual FX_BOOL SetHatchStyle(int32_t iHatchStyle) { 147 virtual FX_BOOL SetHatchStyle(int32_t iHatchStyle) {
148 m_iStyle = iHatchStyle; 148 m_iStyle = iHatchStyle;
149 return m_iStyle >= FDE_HATCHSTYLE_Min && m_iStyle <= FDE_HATCHSTYLE_Max; 149 return m_iStyle >= FDE_HATCHSTYLE_Min && m_iStyle <= FDE_HATCHSTYLE_Max;
150 } 150 }
151 int32_t m_iStyle; 151 int32_t m_iStyle;
152 FX_ARGB m_BackColor; 152 FX_ARGB m_BackColor;
153 FX_ARGB m_ForeColor; 153 FX_ARGB m_ForeColor;
154 CFX_Matrix m_Matrix; 154 CFX_Matrix m_Matrix;
155 }; 155 };
156 class CFDE_TextureBrush : public IFDE_TextureBrush, public CFX_Target { 156 class CFDE_TextureBrush : public IFDE_TextureBrush, public CFX_Target {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 CFX_PointF m_EndPoint; 237 CFX_PointF m_EndPoint;
238 CFX_PointF m_StartPoint; 238 CFX_PointF m_StartPoint;
239 FX_ARGB m_EndColor; 239 FX_ARGB m_EndColor;
240 FX_ARGB m_StartColor; 240 FX_ARGB m_StartColor;
241 CFDE_GradientColors m_GradColors; 241 CFDE_GradientColors m_GradColors;
242 int32_t m_iWrapMode; 242 int32_t m_iWrapMode;
243 CFX_Matrix m_Matrix; 243 CFX_Matrix m_Matrix;
244 }; 244 };
245 245
246 #endif // XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_ 246 #endif // XFA_SRC_FDP_SRC_FDE_FDE_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698