From 72f50f2021cd9f66016c962df8d27fc0c34748cd Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 3 Jan 2017 15:47:20 -0500 Subject: Cleanup ThemeProvider code Remove unused methods, fold the arrow data into the CFWL_WidgetTP instead of a custom class and global object. Change-Id: Ie942052555d6c8668d27072c1fcc5e8e00597518 Reviewed-on: https://pdfium-review.googlesource.com/2139 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fwl/theme/cfwl_pushbuttontp.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'xfa/fwl/theme/cfwl_pushbuttontp.cpp') diff --git a/xfa/fwl/theme/cfwl_pushbuttontp.cpp b/xfa/fwl/theme/cfwl_pushbuttontp.cpp index bf3baedd50..a1e57836fa 100644 --- a/xfa/fwl/theme/cfwl_pushbuttontp.cpp +++ b/xfa/fwl/theme/cfwl_pushbuttontp.cpp @@ -21,10 +21,6 @@ CFWL_PushButtonTP::CFWL_PushButtonTP() : m_pThemeData(new PBThemeData) { CFWL_PushButtonTP::~CFWL_PushButtonTP() {} -bool CFWL_PushButtonTP::IsValidWidget(CFWL_Widget* pWidget) { - return pWidget && pWidget->GetClassID() == FWL_Type::PushButton; -} - void CFWL_PushButtonTP::DrawBackground(CFWL_ThemeBackground* pParams) { switch (pParams->m_iPart) { case CFWL_Part::Border: { @@ -83,16 +79,6 @@ void CFWL_PushButtonTP::DrawBackground(CFWL_ThemeBackground* pParams) { } } -void CFWL_PushButtonTP::Initialize() { - InitTTO(); - CFWL_WidgetTP::Initialize(); -} - -void CFWL_PushButtonTP::Finalize() { - FinalizeTTO(); - CFWL_WidgetTP::Finalize(); -} - void CFWL_PushButtonTP::SetThemeData() { m_pThemeData->clrBorder[0] = ArgbEncode(255, 0, 60, 116); m_pThemeData->clrBorder[1] = ArgbEncode(255, 0, 60, 116); -- cgit v1.2.3