summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/include/cpdf_defaultappearance.h
diff options
context:
space:
mode:
authorjaepark <jaepark@google.com>2016-08-02 12:25:15 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-02 12:25:15 -0700
commitb2e63373054f0f1c3dbcdfa5e75acf2831b113f6 (patch)
tree5ff5f07b7ca26e3bfd5e814edc2ee4453db248d7 /core/fpdfdoc/include/cpdf_defaultappearance.h
parent448c4337f2be2523727451b265311d48e9550ee5 (diff)
downloadpdfium-b2e63373054f0f1c3dbcdfa5e75acf2831b113f6.tar.xz
Use PaintOperation instead of bFillOrStroke in CPVT_GenerateAP.
Also, use PaintOperation instead of bStrokingOperation in CPDF_DefaultAppearance. Review-Url: https://codereview.chromium.org/2197353002
Diffstat (limited to 'core/fpdfdoc/include/cpdf_defaultappearance.h')
-rw-r--r--core/fpdfdoc/include/cpdf_defaultappearance.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/fpdfdoc/include/cpdf_defaultappearance.h b/core/fpdfdoc/include/cpdf_defaultappearance.h
index c45d4eeffc..c0fd3de709 100644
--- a/core/fpdfdoc/include/cpdf_defaultappearance.h
+++ b/core/fpdfdoc/include/cpdf_defaultappearance.h
@@ -14,6 +14,7 @@
#include "core/fxge/include/fx_dib.h"
enum class BorderStyle { SOLID, DASH, BEVELED, INSET, UNDERLINE };
+enum class PaintOperation { STROKE, FILL };
class CPDF_DefaultAppearance {
public:
@@ -30,14 +31,15 @@ class CPDF_DefaultAppearance {
CFX_ByteString GetFontString();
void GetFont(CFX_ByteString& csFontNameTag, FX_FLOAT& fFontSize);
- FX_BOOL HasColor(FX_BOOL bStrokingOperation = FALSE);
- CFX_ByteString GetColorString(FX_BOOL bStrokingOperation = FALSE);
+ FX_BOOL HasColor(PaintOperation nOperation = PaintOperation::FILL);
+ CFX_ByteString GetColorString(
+ PaintOperation nOperation = PaintOperation::FILL);
void GetColor(int& iColorType,
FX_FLOAT fc[4],
- FX_BOOL bStrokingOperation = FALSE);
+ PaintOperation nOperation = PaintOperation::FILL);
void GetColor(FX_ARGB& color,
int& iColorType,
- FX_BOOL bStrokingOperation = FALSE);
+ PaintOperation nOperation = PaintOperation::FILL);
FX_BOOL HasTextMatrix();
CFX_ByteString GetTextMatrixString();