diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-16 11:38:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-16 11:38:28 -0700 |
commit | 92cb5e580cecf0412b74d51e8863ed557e2bd47a (patch) | |
tree | acdc33aa1bd876742ae62bd5901183413b2ead1b /core/fpdfdoc/cpvt_generateap.h | |
parent | 719a7a71d4cf1b714ad7f76e5f9ca28cfd5b74d3 (diff) | |
download | pdfium-92cb5e580cecf0412b74d51e8863ed557e2bd47a.tar.xz |
Convert border style defines to an enum class.
There were two defines, BBS_ and PBS_ for the various border styles in the
system. They were the same, except PBS_ had an extra SHADOW define which was
never used.
This CL combines both of those into a single BorderStyle enum class and updates
the code as needed.
Also, removes ADDBIT, GETBIT unused defines. Updates barcode code to use
the util.h defines instead of redefinition. fsdk_baseannot names starting with _ were cleaned up and some #defines moved to constants.
Review-Url: https://codereview.chromium.org/1980973002
Diffstat (limited to 'core/fpdfdoc/cpvt_generateap.h')
-rw-r--r-- | core/fpdfdoc/cpvt_generateap.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/core/fpdfdoc/cpvt_generateap.h b/core/fpdfdoc/cpvt_generateap.h index 924de40ed4..1258643d3e 100644 --- a/core/fpdfdoc/cpvt_generateap.h +++ b/core/fpdfdoc/cpvt_generateap.h @@ -10,18 +10,11 @@ #include "core/fpdfdoc/cpvt_color.h" #include "core/fpdfdoc/cpvt_dash.h" #include "core/fpdfdoc/include/cpdf_variabletext.h" +#include "core/fpdfdoc/include/fpdf_doc.h" #include "core/fxcrt/include/fx_coordinates.h" #include "core/fxcrt/include/fx_string.h" #include "core/fxcrt/include/fx_system.h" -// border style -#define PBS_SOLID 0 -#define PBS_DASH 1 -#define PBS_BEVELED 2 -#define PBS_INSET 3 -#define PBS_UNDERLINED 4 -#define PBS_SHADOW 5 - class CPDF_Dictionary; class CPDF_Document; class IPVT_FontMap; @@ -48,7 +41,7 @@ class CPVT_GenerateAP { const CPVT_Color& color, const CPVT_Color& crLeftTop, const CPVT_Color& crRightBottom, - int32_t nStyle, + BorderStyle nStyle, const CPVT_Dash& dash); static CFX_ByteString GenerateColorAP(const CPVT_Color& color, const FX_BOOL& bFillOrStroke); |