diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-05 16:46:58 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-05 16:46:58 -0800 |
commit | c2fb35f2bbcf6c8fcf37380000544ae39d9a8cec (patch) | |
tree | 6b8da05d1624cbbe5a0c7042c9820f02180f442c /fpdfsdk/src/pdfwindow/PWL_Signature.cpp | |
parent | 62664cee15230d6cbe08ed010721a4557b36dc22 (diff) | |
download | pdfium-c2fb35f2bbcf6c8fcf37380000544ae39d9a8cec.tar.xz |
Merge to XFA: Remove header files that only have includes.
Also do some cleanups in affected files.
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1552583002 .
(cherry picked from commit d794d34b5deb6ad691c19af758090f9ce46015a3)
Review URL: https://codereview.chromium.org/1566583002 .
Diffstat (limited to 'fpdfsdk/src/pdfwindow/PWL_Signature.cpp')
-rw-r--r-- | fpdfsdk/src/pdfwindow/PWL_Signature.cpp | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/fpdfsdk/src/pdfwindow/PWL_Signature.cpp b/fpdfsdk/src/pdfwindow/PWL_Signature.cpp index dead655da0..f7c73d0a7d 100644 --- a/fpdfsdk/src/pdfwindow/PWL_Signature.cpp +++ b/fpdfsdk/src/pdfwindow/PWL_Signature.cpp @@ -4,16 +4,12 @@ // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com -#include "fpdfsdk/include/pdfwindow/PDFWindow.h" #include "fpdfsdk/include/pdfwindow/PWL_Icon.h" #include "fpdfsdk/include/pdfwindow/PWL_Label.h" #include "fpdfsdk/include/pdfwindow/PWL_Signature.h" #include "fpdfsdk/include/pdfwindow/PWL_Utils.h" #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" -/* --------------------------------- CPWL_Signature_Image - * --------------------------------- */ - CPWL_Signature_Image::CPWL_Signature_Image() : m_pImage(NULL) {} CPWL_Signature_Image::~CPWL_Signature_Image() {} @@ -58,9 +54,6 @@ void CPWL_Signature_Image::GetScale(FX_FLOAT& fHScale, FX_FLOAT& fVScale) { fVScale = rcClient.Height() / fImageH; } -/* --------------------------------- CPWL_Signature - * --------------------------------- */ - CPWL_Signature::CPWL_Signature() : m_pText(NULL), m_pDescription(NULL), @@ -169,34 +162,13 @@ void CPWL_Signature::DrawThisAppearance(CFX_RenderDevice* pDevice, CFX_Matrix* pUser2Device) { CPWL_Wnd::DrawThisAppearance(pDevice, pUser2Device); - if (m_bFlagExist) + if (m_bFlagExist) { CPWL_Utils::DrawIconAppStream( pDevice, pUser2Device, PWL_ICONTYPE_FOXIT, CPWL_Utils::GetCenterSquare(GetClientRect()), CPWL_Color(COLORTYPE_RGB, 0.91f, 0.855f, 0.92f), CPWL_Color(COLORTYPE_TRANSPARENT), 255); - - /* - CPDF_Rect rcClient = GetClientRect(); - - CFX_PathData path; - - path.SetPointCount(2); - path.SetPoint(0, rcClient.left, (rcClient.top + rcClient.bottom) * 0.5f, - FXPT_MOVETO); - path.SetPoint(1, rcClient.right, (rcClient.top + rcClient.bottom) * 0.5f, - FXPT_LINETO); - - CFX_GraphStateData gsd; - gsd.SetDashCount(2); - gsd.m_DashArray[0] = 6.0f; - gsd.m_DashArray[1] = 6.0f; - gsd.m_DashPhase = 0; - - gsd.m_LineWidth = 10.0f; - pDevice->DrawPath(&path, pUser2Device, &gsd, 0, ArgbEncode(255,255,0,0), - FXFILL_ALTERNATE); - */ + } } void CPWL_Signature::GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) { |