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

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

Issue 1692413002: One less PI, one less Bezier. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: One less bezier, too. Created 4 years, 10 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 | « core/include/fxcrt/fx_system.h ('k') | fpdfsdk/src/pdfwindow/PWL_Utils.cpp » ('j') | 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_INCLUDE_PDFWINDOW_PWL_UTILS_H_ 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_
9 9
10 #include "PWL_Wnd.h" 10 #include "PWL_Wnd.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #define PWL_ICONTYPE_UNKNOWN -1 58 #define PWL_ICONTYPE_UNKNOWN -1
59 59
60 // checkbox & radiobutton style 60 // checkbox & radiobutton style
61 #define PCS_CHECK 0 61 #define PCS_CHECK 0
62 #define PCS_CIRCLE 1 62 #define PCS_CIRCLE 1
63 #define PCS_CROSS 2 63 #define PCS_CROSS 2
64 #define PCS_DIAMOND 3 64 #define PCS_DIAMOND 3
65 #define PCS_SQUARE 4 65 #define PCS_SQUARE 4
66 #define PCS_STAR 5 66 #define PCS_STAR 5
67 67
68 #define PWL_PI 3.14159265358979f
69 #define PWL_BEZIER 0.5522847498308f
70
71 // pushbutton layout style 68 // pushbutton layout style
72 #define PPBL_LABEL 0 69 #define PPBL_LABEL 0
73 #define PPBL_ICON 1 70 #define PPBL_ICON 1
74 #define PPBL_ICONTOPLABELBOTTOM 2 71 #define PPBL_ICONTOPLABELBOTTOM 2
75 #define PPBL_LABELTOPICONBOTTOM 3 72 #define PPBL_LABELTOPICONBOTTOM 3
76 #define PPBL_ICONLEFTLABELRIGHT 4 73 #define PPBL_ICONLEFTLABELRIGHT 4
77 #define PPBL_LABELLEFTICONRIGHT 5 74 #define PPBL_LABELLEFTICONRIGHT 5
78 #define PPBL_LABELOVERICON 6 75 #define PPBL_LABELOVERICON 6
79 76
80 class CPWL_Point : public CPDF_Point { 77 class CPWL_Point : public CPDF_Point {
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 CFX_PathData& path, 400 CFX_PathData& path,
404 const CPDF_Rect& crBBox, 401 const CPDF_Rect& crBBox,
405 const PWL_PATH_TYPE type); 402 const PWL_PATH_TYPE type);
406 static void GetGraphics_Foxit(CFX_ByteString& sPathData, 403 static void GetGraphics_Foxit(CFX_ByteString& sPathData,
407 CFX_PathData& path, 404 CFX_PathData& path,
408 const CPDF_Rect& crBBox, 405 const CPDF_Rect& crBBox,
409 const PWL_PATH_TYPE type); 406 const PWL_PATH_TYPE type);
410 }; 407 };
411 408
412 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_ 409 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_system.h ('k') | fpdfsdk/src/pdfwindow/PWL_Utils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698