diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-14 18:56:54 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-14 18:56:54 +0000 |
commit | 5a423ef8708e61d43f1556ab09c2e09f496d700d (patch) | |
tree | 4d1858fa46836f33b7e334348cecd96318de6ea6 /xfa/fwl/theme/cfwl_scrollbartp.cpp | |
parent | c8619c8d1cebb6b64db248ec89db98ab4513ad3c (diff) | |
download | pdfium-5a423ef8708e61d43f1556ab09c2e09f496d700d.tar.xz |
Rename the fxgraphics classes
The build system doesn't like name clashes over directories in XFA.
The Pattern and and Shading classes need to be renamed to not clash with
future XFA node class names.
Change-Id: I978da492d884626c0db2e11ac236a3399e9c7e58
Reviewed-on: https://pdfium-review.googlesource.com/18290
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fwl/theme/cfwl_scrollbartp.cpp')
-rw-r--r-- | xfa/fwl/theme/cfwl_scrollbartp.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/xfa/fwl/theme/cfwl_scrollbartp.cpp b/xfa/fwl/theme/cfwl_scrollbartp.cpp index 6b998a9641..d94eed0ebf 100644 --- a/xfa/fwl/theme/cfwl_scrollbartp.cpp +++ b/xfa/fwl/theme/cfwl_scrollbartp.cpp @@ -10,8 +10,8 @@ #include "xfa/fwl/cfwl_themebackground.h" #include "xfa/fwl/cfwl_widget.h" #include "xfa/fwl/ifwl_themeprovider.h" -#include "xfa/fxgraphics/cxfa_color.h" -#include "xfa/fxgraphics/cxfa_path.h" +#include "xfa/fxgraphics/cxfa_gecolor.h" +#include "xfa/fxgraphics/cxfa_gepath.h" namespace { @@ -80,7 +80,7 @@ void CFWL_ScrollBarTP::DrawThumbBtn(CXFA_Graphics* pGraphics, if (eState < FWLTHEME_STATE_Normal || eState > FWLTHEME_STATE_Disable) return; - CXFA_Path path; + CXFA_GEPath path; CFX_RectF rect(*pRect); if (bVert) { rect.Deflate(1, 0); @@ -94,7 +94,7 @@ void CFWL_ScrollBarTP::DrawThumbBtn(CXFA_Graphics* pGraphics, FXFILL_WINDING, pMatrix); pGraphics->SaveGraphState(); pGraphics->SetStrokeColor( - CXFA_Color(m_pThemeData->clrBtnBorder[eState - 1])); + CXFA_GEColor(m_pThemeData->clrBtnBorder[eState - 1])); pGraphics->StrokePath(&path, pMatrix); pGraphics->RestoreGraphState(); } else { @@ -109,7 +109,7 @@ void CFWL_ScrollBarTP::DrawThumbBtn(CXFA_Graphics* pGraphics, FXFILL_WINDING, pMatrix); pGraphics->SaveGraphState(); pGraphics->SetStrokeColor( - CXFA_Color(m_pThemeData->clrBtnBorder[eState - 1])); + CXFA_GEColor(m_pThemeData->clrBtnBorder[eState - 1])); pGraphics->StrokePath(&path, pMatrix); pGraphics->RestoreGraphState(); } @@ -120,7 +120,7 @@ void CFWL_ScrollBarTP::DrawPaw(CXFA_Graphics* pGraphics, bool bVert, FWLTHEME_STATE eState, CFX_Matrix* pMatrix) { - CXFA_Path path; + CXFA_GEPath path; if (bVert) { float fPawLen = kPawLength; if (pRect->width / 2 <= fPawLen) { @@ -140,7 +140,7 @@ void CFWL_ScrollBarTP::DrawPaw(CXFA_Graphics* pGraphics, pGraphics->SetLineWidth(1); pGraphics->SetStrokeColor( - CXFA_Color(m_pThemeData->clrPawColorLight[eState - 1])); + CXFA_GEColor(m_pThemeData->clrPawColorLight[eState - 1])); pGraphics->StrokePath(&path, nullptr); fX++; @@ -156,7 +156,7 @@ void CFWL_ScrollBarTP::DrawPaw(CXFA_Graphics* pGraphics, pGraphics->SetLineWidth(1); pGraphics->SetStrokeColor( - CXFA_Color(m_pThemeData->clrPawColorDark[eState - 1])); + CXFA_GEColor(m_pThemeData->clrPawColorDark[eState - 1])); pGraphics->StrokePath(&path, pMatrix); } else { float fPawLen = kPawLength; @@ -177,7 +177,7 @@ void CFWL_ScrollBarTP::DrawPaw(CXFA_Graphics* pGraphics, pGraphics->SetLineWidth(1); pGraphics->SetStrokeColor( - CXFA_Color(m_pThemeData->clrPawColorLight[eState - 1])); + CXFA_GEColor(m_pThemeData->clrPawColorLight[eState - 1])); pGraphics->StrokePath(&path, pMatrix); fY++; @@ -193,7 +193,7 @@ void CFWL_ScrollBarTP::DrawPaw(CXFA_Graphics* pGraphics, pGraphics->SetLineWidth(1); pGraphics->SetStrokeColor( - CXFA_Color(m_pThemeData->clrPawColorDark[eState - 1])); + CXFA_GEColor(m_pThemeData->clrPawColorDark[eState - 1])); pGraphics->StrokePath(&path, pMatrix); } } @@ -208,7 +208,7 @@ void CFWL_ScrollBarTP::DrawTrack(CXFA_Graphics* pGraphics, return; pGraphics->SaveGraphState(); - CXFA_Path path; + CXFA_GEPath path; float fRight = pRect->right(); float fBottom = pRect->bottom(); if (bVert) { @@ -218,7 +218,7 @@ void CFWL_ScrollBarTP::DrawTrack(CXFA_Graphics* pGraphics, path.AddRectangle(pRect->left, pRect->top, pRect->width, 1); path.AddRectangle(pRect->left, fBottom - 1, pRect->width, 1); } - pGraphics->SetFillColor(CXFA_Color(ArgbEncode(255, 238, 237, 229))); + pGraphics->SetFillColor(CXFA_GEColor(ArgbEncode(255, 238, 237, 229))); pGraphics->FillPath(&path, FXFILL_WINDING, pMatrix); path.Clear(); path.AddRectangle(pRect->left + 1, pRect->top, pRect->width - 2, |