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

Side by Side Diff: xfa/fde/fde_brush.h

Issue 1866333003: Remove IFDE_Image, IFDE_PathSet, IFDE_ImageSet, and IFDE_WidgetSet. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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_FDE_FDE_BRUSH_H_ 7 #ifndef XFA_FDE_FDE_BRUSH_H_
8 #define XFA_FDE_FDE_BRUSH_H_ 8 #define XFA_FDE_FDE_BRUSH_H_
9 9
10 #include "core/fxcrt/include/fx_system.h" 10 #include "core/fxcrt/include/fx_system.h"
11 #include "core/fxge/include/fx_dib.h" 11 #include "core/fxge/include/fx_dib.h"
12 12
13 class IFDE_Image;
14
15 #define FDE_BRUSHTYPE_Unknown -1 13 #define FDE_BRUSHTYPE_Unknown -1
16 #define FDE_BRUSHTYPE_Solid 0 14 #define FDE_BRUSHTYPE_Solid 0
17 #define FDE_BRUSHTYPE_Hatch 1 15 #define FDE_BRUSHTYPE_Hatch 1
18 #define FDE_BRUSHTYPE_Texture 2 16 #define FDE_BRUSHTYPE_Texture 2
19 #define FDE_BRUSHTYPE_LinearGradient 3 17 #define FDE_BRUSHTYPE_LinearGradient 3
20 #define FDE_BRUSHTYPE_MAX 3 18 #define FDE_BRUSHTYPE_MAX 3
21 #define FDE_WRAPMODE_Tile 0 19 #define FDE_WRAPMODE_Tile 0
22 #define FDE_WRAPMODE_TileFlipX 1 20 #define FDE_WRAPMODE_TileFlipX 1
23 #define FDE_WRAPMODE_TileFlipY 2 21 #define FDE_WRAPMODE_TileFlipY 2
24 #define FDE_WRAPMODE_TileFlipXY 3 22 #define FDE_WRAPMODE_TileFlipXY 3
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 class IFDE_HatchBrush : public IFDE_Brush { 110 class IFDE_HatchBrush : public IFDE_Brush {
113 public: 111 public:
114 virtual FX_ARGB GetColor(FX_BOOL bForegroundColor) const = 0; 112 virtual FX_ARGB GetColor(FX_BOOL bForegroundColor) const = 0;
115 virtual void SetColor(FX_ARGB color, FX_BOOL bForegroundColor) = 0; 113 virtual void SetColor(FX_ARGB color, FX_BOOL bForegroundColor) = 0;
116 virtual int32_t GetHatchStyle() const = 0; 114 virtual int32_t GetHatchStyle() const = 0;
117 virtual FX_BOOL SetHatchStyle(int32_t iHatchStyle) = 0; 115 virtual FX_BOOL SetHatchStyle(int32_t iHatchStyle) = 0;
118 }; 116 };
119 117
120 class IFDE_TextureBrush : public IFDE_Brush { 118 class IFDE_TextureBrush : public IFDE_Brush {
121 public: 119 public:
122 virtual IFDE_Image* GetImage() const = 0;
123 virtual void SetImage(IFDE_Image* pImage, FX_BOOL bAutoRelease) = 0;
dsinclair 2016/04/07 14:35:27 SetImage was never called, so I also removed GetIm
124 virtual int32_t GetWrapMode() const = 0; 120 virtual int32_t GetWrapMode() const = 0;
125 virtual void SetWrapMode(int32_t iWrapMode) = 0; 121 virtual void SetWrapMode(int32_t iWrapMode) = 0;
126 }; 122 };
127 123
128 #define FDE_LINEARGRADIENTMODE_Horizontal 0 124 #define FDE_LINEARGRADIENTMODE_Horizontal 0
129 #define FDE_LINEARGRADIENTMODE_Vertical 1 125 #define FDE_LINEARGRADIENTMODE_Vertical 1
130 #define FDE_LINEARGRADIENTMODE_ForwardDiagonal 2 126 #define FDE_LINEARGRADIENTMODE_ForwardDiagonal 2
131 #define FDE_LINEARGRADIENTMODE_BackwardDiagonal 3 127 #define FDE_LINEARGRADIENTMODE_BackwardDiagonal 3
132 128
133 class IFDE_LinearGradientBrush : public IFDE_Brush { 129 class IFDE_LinearGradientBrush : public IFDE_Brush {
134 public: 130 public:
135 virtual void GetLinearPoints(CFX_PointF& startingPoint, 131 virtual void GetLinearPoints(CFX_PointF& startingPoint,
136 CFX_PointF& endingPoint) const = 0; 132 CFX_PointF& endingPoint) const = 0;
137 virtual void SetLinearPoints(const CFX_PointF& startingPoint, 133 virtual void SetLinearPoints(const CFX_PointF& startingPoint,
138 const CFX_PointF& endingPoint) = 0; 134 const CFX_PointF& endingPoint) = 0;
139 virtual void GetLinearColors(FX_ARGB& startingColor, 135 virtual void GetLinearColors(FX_ARGB& startingColor,
140 FX_ARGB& endingColor) const = 0; 136 FX_ARGB& endingColor) const = 0;
141 virtual void SetLinearColors(const FX_ARGB& startingColor, 137 virtual void SetLinearColors(const FX_ARGB& startingColor,
142 const FX_ARGB& endingColor) = 0; 138 const FX_ARGB& endingColor) = 0;
143 virtual int32_t CountGradientColors() const = 0; 139 virtual int32_t CountGradientColors() const = 0;
144 virtual FX_BOOL GetGradientColors(CFDE_GradientColors& colors) const = 0; 140 virtual FX_BOOL GetGradientColors(CFDE_GradientColors& colors) const = 0;
145 virtual FX_BOOL SetGradientColors(const CFDE_GradientColors& colors) = 0; 141 virtual FX_BOOL SetGradientColors(const CFDE_GradientColors& colors) = 0;
146 virtual int32_t GetWrapMode() const = 0; 142 virtual int32_t GetWrapMode() const = 0;
147 virtual void SetWrapMode(int32_t iWrapMode) = 0; 143 virtual void SetWrapMode(int32_t iWrapMode) = 0;
148 }; 144 };
149 145
150 #endif // XFA_FDE_FDE_BRUSH_H_ 146 #endif // XFA_FDE_FDE_BRUSH_H_
OLDNEW
« no previous file with comments | « xfa.gyp ('k') | xfa/fde/fde_gedevice.cpp » ('j') | xfa/fde/fde_gedevice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698