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

Unified Diff: xfa/fde/cfde_path.h

Issue 1896893003: Cleanup FDE interfaces. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa.gyp ('k') | xfa/fde/cfde_path.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fde/cfde_path.h
diff --git a/xfa/fde/fde_geobject.h b/xfa/fde/cfde_path.h
similarity index 51%
rename from xfa/fde/fde_geobject.h
rename to xfa/fde/cfde_path.h
index debec6ab2e14c84ffcac5cf223fddb6fdbf8eb60..c4b66f063e18347a543aceb0c44172a8c9f3d344 100644
--- a/xfa/fde/fde_geobject.h
+++ b/xfa/fde/cfde_path.h
@@ -4,35 +4,34 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef XFA_FDE_FDE_GEOBJECT_H_
-#define XFA_FDE_FDE_GEOBJECT_H_
+#ifndef XFA_FDE_CFDE_PATH_H_
+#define XFA_FDE_CFDE_PATH_H_
#include "core/fxge/include/fx_ge.h"
-#include "xfa/fde/fde_path.h"
#include "xfa/fgas/crt/fgas_memory.h"
-class CFDE_Path : public IFDE_Path, public CFX_Target {
+class CFDE_Path : public CFX_Target {
public:
- virtual void Release() { delete this; }
+ void Release() { delete this; }
- virtual FX_BOOL StartFigure();
- virtual FX_BOOL CloseFigure();
+ FX_BOOL StartFigure();
+ FX_BOOL CloseFigure();
- virtual void AddBezier(const CFX_PointsF& points);
- virtual void AddBeziers(const CFX_PointsF& points);
- virtual void AddCurve(const CFX_PointsF& points,
- FX_BOOL bClosed,
- FX_FLOAT fTension = 0.5f);
- virtual void AddEllipse(const CFX_RectF& rect);
- virtual void AddLines(const CFX_PointsF& points);
- virtual void AddLine(const CFX_PointF& pt1, const CFX_PointF& pt2);
- virtual void AddPath(const IFDE_Path* pSrc, FX_BOOL bConnect);
- virtual void AddPolygon(const CFX_PointsF& points);
- virtual void AddRectangle(const CFX_RectF& rect);
- virtual void GetBBox(CFX_RectF& bbox) const;
- virtual void GetBBox(CFX_RectF& bbox,
- FX_FLOAT fLineWidth,
- FX_FLOAT fMiterLimit) const;
+ void AddBezier(const CFX_PointsF& points);
+ void AddBeziers(const CFX_PointsF& points);
+ void AddCurve(const CFX_PointsF& points,
+ FX_BOOL bClosed,
+ FX_FLOAT fTension = 0.5f);
+ void AddEllipse(const CFX_RectF& rect);
+ void AddLines(const CFX_PointsF& points);
+ void AddLine(const CFX_PointF& pt1, const CFX_PointF& pt2);
+ void AddPath(const CFDE_Path* pSrc, FX_BOOL bConnect);
+ void AddPolygon(const CFX_PointsF& points);
+ void AddRectangle(const CFX_RectF& rect);
+ void GetBBox(CFX_RectF& bbox) const;
+ void GetBBox(CFX_RectF& bbox,
+ FX_FLOAT fLineWidth,
+ FX_FLOAT fMiterLimit) const;
FX_PATHPOINT* AddPoints(int32_t iCount);
FX_PATHPOINT* GetLastPoint(int32_t iCount = 1) const;
FX_BOOL FigureClosed() const;
@@ -54,4 +53,4 @@ class CFDE_Path : public IFDE_Path, public CFX_Target {
CFX_PathData m_Path;
};
-#endif // XFA_FDE_FDE_GEOBJECT_H_
+#endif // XFA_FDE_CFDE_PATH_H_
« no previous file with comments | « xfa.gyp ('k') | xfa/fde/cfde_path.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698