diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-02-14 15:42:11 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-14 21:20:37 +0000 |
commit | 5f2d381028b2c09bd09a843368328155b1399c5e (patch) | |
tree | 39f0accddf4ba23fdff3f06c4b953137a4b68e36 /fpdfsdk/pdfwindow/cpwl_pathdata.h | |
parent | 7d4ccd7b5dd9ebb14e97ad35fb3bc093225b939a (diff) | |
download | pdfium-5f2d381028b2c09bd09a843368328155b1399c5e.tar.xz |
Replace CPWL_Point with CFX_PointFchromium/3013
The CPWL_Point is a subclass of CFX_PointF but adds no behaviour. Replacing
with parent class.
Change-Id: I5b971eb455a19c1e2bfebde86e4c8e2132bc62ad
Reviewed-on: https://pdfium-review.googlesource.com/2654
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_pathdata.h')
-rw-r--r-- | fpdfsdk/pdfwindow/cpwl_pathdata.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_pathdata.h b/fpdfsdk/pdfwindow/cpwl_pathdata.h new file mode 100644 index 0000000000..de969b66ae --- /dev/null +++ b/fpdfsdk/pdfwindow/cpwl_pathdata.h @@ -0,0 +1,30 @@ +// Copyright 2017 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com + +#ifndef FPDFSDK_PDFWINDOW_CPWL_PATHDATA_H_ +#define FPDFSDK_PDFWINDOW_CPWL_PATHDATA_H_ + +#include "core/fxcrt/fx_coordinates.h" + +enum PWL_PATHDATA_TYPE { + PWLPT_MOVETO, + PWLPT_LINETO, + PWLPT_BEZIERTO, + PWLPT_UNKNOWN +}; + +class CPWL_PathData { + public: + CPWL_PathData(); + CPWL_PathData(const CFX_PointF& pt, PWL_PATHDATA_TYPE tp); + CPWL_PathData(const CPWL_PathData&); + ~CPWL_PathData(); + + CFX_PointF point; + PWL_PATHDATA_TYPE type; +}; + +#endif // FPDFSDK_PDFWINDOW_CPWL_PATHDATA_H_ |