diff options
author | Lei Zhang <thestig@chromium.org> | 2016-01-05 16:41:04 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2016-01-05 16:41:04 -0800 |
commit | d794d34b5deb6ad691c19af758090f9ce46015a3 (patch) | |
tree | 2cf3a108d472bf8ef6989e6883aa553dd6ba0afe /fpdfsdk/src/pdfwindow/PWL_Signature.cpp | |
parent | dbfaa8d11404a53b4807b3dbd0185047367bbff6 (diff) | |
download | pdfium-d794d34b5deb6ad691c19af758090f9ce46015a3.tar.xz |
Remove header files that only have includes.
Also do some cleanups in affected files.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1552583002 .
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) { |