diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-01-03 15:47:20 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-03 21:15:57 +0000 |
commit | 72f50f2021cd9f66016c962df8d27fc0c34748cd (patch) | |
tree | 735ae945128093c89634eb5bccba29af00f4d7fb /xfa/fwl/theme/cfwl_edittp.cpp | |
parent | c635c93c974db1c55032c36e81e98f3d214a249f (diff) | |
download | pdfium-72f50f2021cd9f66016c962df8d27fc0c34748cd.tar.xz |
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 <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl/theme/cfwl_edittp.cpp')
-rw-r--r-- | xfa/fwl/theme/cfwl_edittp.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/xfa/fwl/theme/cfwl_edittp.cpp b/xfa/fwl/theme/cfwl_edittp.cpp index 5d3447eaa2..eee5423201 100644 --- a/xfa/fwl/theme/cfwl_edittp.cpp +++ b/xfa/fwl/theme/cfwl_edittp.cpp @@ -15,11 +15,8 @@ #include "xfa/fxgraphics/cfx_path.h" CFWL_EditTP::CFWL_EditTP() {} -CFWL_EditTP::~CFWL_EditTP() {} -bool CFWL_EditTP::IsValidWidget(CFWL_Widget* pWidget) { - return pWidget && pWidget->GetClassID() == FWL_Type::Edit; -} +CFWL_EditTP::~CFWL_EditTP() {} void CFWL_EditTP::DrawBackground(CFWL_ThemeBackground* pParams) { if (CFWL_Part::CombTextLine == pParams->m_iPart) { @@ -89,13 +86,3 @@ void CFWL_EditTP::DrawBackground(CFWL_ThemeBackground* pParams) { break; } } - -void CFWL_EditTP::Initialize() { - InitTTO(); - CFWL_WidgetTP::Initialize(); -} - -void CFWL_EditTP::Finalize() { - FinalizeTTO(); - CFWL_WidgetTP::Finalize(); -} |