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

Side by Side Diff: fpdfsdk/pdfwindow/PWL_Utils.h

Issue 2341453002: CFX_FloatPoint default constructor and equals operators (Closed)
Patch Set: style Created 4 years, 3 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
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_EditCtrl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 FPDFSDK_PDFWINDOW_PWL_UTILS_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_UTILS_H_
8 #define FPDFSDK_PDFWINDOW_PWL_UTILS_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_UTILS_H_
9 9
10 #include "core/fpdfdoc/include/cpvt_wordrange.h" 10 #include "core/fpdfdoc/include/cpvt_wordrange.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #define PPBL_LABEL 0 69 #define PPBL_LABEL 0
70 #define PPBL_ICON 1 70 #define PPBL_ICON 1
71 #define PPBL_ICONTOPLABELBOTTOM 2 71 #define PPBL_ICONTOPLABELBOTTOM 2
72 #define PPBL_LABELTOPICONBOTTOM 3 72 #define PPBL_LABELTOPICONBOTTOM 3
73 #define PPBL_ICONLEFTLABELRIGHT 4 73 #define PPBL_ICONLEFTLABELRIGHT 4
74 #define PPBL_LABELLEFTICONRIGHT 5 74 #define PPBL_LABELLEFTICONRIGHT 5
75 #define PPBL_LABELOVERICON 6 75 #define PPBL_LABELOVERICON 6
76 76
77 class CPWL_Point : public CFX_FloatPoint { 77 class CPWL_Point : public CFX_FloatPoint {
78 public: 78 public:
79 CPWL_Point() : CFX_FloatPoint(0.0f, 0.0f) {} 79 CPWL_Point() {}
80 CPWL_Point(FX_FLOAT fx, FX_FLOAT fy) : CFX_FloatPoint(fx, fy) {} 80 CPWL_Point(FX_FLOAT fx, FX_FLOAT fy) : CFX_FloatPoint(fx, fy) {}
81 CPWL_Point(const CPWL_Point& point) : CFX_FloatPoint(point.x, point.y) {} 81 CPWL_Point(const CPWL_Point& point) : CFX_FloatPoint(point.x, point.y) {}
82 }; 82 };
83 83
84 enum PWL_PATHDATA_TYPE { 84 enum PWL_PATHDATA_TYPE {
85 PWLPT_MOVETO, 85 PWLPT_MOVETO,
86 PWLPT_LINETO, 86 PWLPT_LINETO,
87 PWLPT_BEZIERTO, 87 PWLPT_BEZIERTO,
88 PWLPT_UNKNOWN 88 PWLPT_UNKNOWN
89 }; 89 };
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 CFX_PathData& path, 390 CFX_PathData& path,
391 const CFX_FloatRect& crBBox, 391 const CFX_FloatRect& crBBox,
392 const PWL_PATH_TYPE type); 392 const PWL_PATH_TYPE type);
393 static void GetGraphics_Foxit(CFX_ByteString& sPathData, 393 static void GetGraphics_Foxit(CFX_ByteString& sPathData,
394 CFX_PathData& path, 394 CFX_PathData& path,
395 const CFX_FloatRect& crBBox, 395 const CFX_FloatRect& crBBox,
396 const PWL_PATH_TYPE type); 396 const PWL_PATH_TYPE type);
397 }; 397 };
398 398
399 #endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_ 399 #endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_EditCtrl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698