diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-07-13 14:17:10 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-13 19:08:45 +0000 |
commit | 7f55a5410f665cfdbb5796d6d9a5387a5f6fa2eb (patch) | |
tree | 7211973789a60892f27db6e2810f805ff0bd8f37 /fpdfsdk/pdfwindow/cpwl_wnd.cpp | |
parent | fe75997a8a8d7fc555d91c3aad595112a46ad7a2 (diff) | |
download | pdfium-7f55a5410f665cfdbb5796d6d9a5387a5f6fa2eb.tar.xz |
Rename CPWL_Color to CFX_Color
This CL moves fpdfsdk/pdfwindow/cpwl_color to core/fxge/cfx_color.
Change-Id: Ia95b7fba2c76a1b9a438014d3598c7aa55bbb2ab
Reviewed-on: https://pdfium-review.googlesource.com/7753
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_wnd.cpp')
-rw-r--r-- | fpdfsdk/pdfwindow/cpwl_wnd.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_wnd.cpp b/fpdfsdk/pdfwindow/cpwl_wnd.cpp index 552c901f06..5aae2dfa92 100644 --- a/fpdfsdk/pdfwindow/cpwl_wnd.cpp +++ b/fpdfsdk/pdfwindow/cpwl_wnd.cpp @@ -500,15 +500,15 @@ void CPWL_Wnd::AddFlag(uint32_t dwFlags) { m_sPrivateParam.dwFlags |= dwFlags; } -CPWL_Color CPWL_Wnd::GetBackgroundColor() const { +CFX_Color CPWL_Wnd::GetBackgroundColor() const { return m_sPrivateParam.sBackgroundColor; } -void CPWL_Wnd::SetBackgroundColor(const CPWL_Color& color) { +void CPWL_Wnd::SetBackgroundColor(const CFX_Color& color) { m_sPrivateParam.sBackgroundColor = color; } -CPWL_Color CPWL_Wnd::GetTextColor() const { +CFX_Color CPWL_Wnd::GetTextColor() const { return m_sPrivateParam.sTextColor; } @@ -529,8 +529,8 @@ int32_t CPWL_Wnd::GetInnerBorderWidth() const { return 0; } -CPWL_Color CPWL_Wnd::GetBorderColor() const { - return HasFlag(PWS_BORDER) ? m_sPrivateParam.sBorderColor : CPWL_Color(); +CFX_Color CPWL_Wnd::GetBorderColor() const { + return HasFlag(PWS_BORDER) ? m_sPrivateParam.sBorderColor : CFX_Color(); } const CPWL_Dash& CPWL_Wnd::GetBorderDash() const { @@ -737,25 +737,25 @@ IPVT_FontMap* CPWL_Wnd::GetFontMap() const { return m_sPrivateParam.pFontMap; } -CPWL_Color CPWL_Wnd::GetBorderLeftTopColor(BorderStyle nBorderStyle) const { +CFX_Color CPWL_Wnd::GetBorderLeftTopColor(BorderStyle nBorderStyle) const { switch (nBorderStyle) { case BorderStyle::BEVELED: - return CPWL_Color(COLORTYPE_GRAY, 1); + return CFX_Color(COLORTYPE_GRAY, 1); case BorderStyle::INSET: - return CPWL_Color(COLORTYPE_GRAY, 0.5f); + return CFX_Color(COLORTYPE_GRAY, 0.5f); default: - return CPWL_Color(); + return CFX_Color(); } } -CPWL_Color CPWL_Wnd::GetBorderRightBottomColor(BorderStyle nBorderStyle) const { +CFX_Color CPWL_Wnd::GetBorderRightBottomColor(BorderStyle nBorderStyle) const { switch (nBorderStyle) { case BorderStyle::BEVELED: return GetBackgroundColor() / 2.0f; case BorderStyle::INSET: - return CPWL_Color(COLORTYPE_GRAY, 0.75f); + return CFX_Color(COLORTYPE_GRAY, 0.75f); default: - return CPWL_Color(); + return CFX_Color(); } } |