diff options
author | dsinclair <dsinclair@chromium.org> | 2016-10-17 18:14:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-17 18:14:25 -0700 |
commit | 878dd5b121b38e6eaba5b3f3a90d0a9abf60feaf (patch) | |
tree | 6b490d5e54c0d2e213d18b5e4bfe106f61eb1390 /xfa/fwl/theme/cfwl_widgettp.cpp | |
parent | 8021a646f18d76518be32c36907a04f213a0e21c (diff) | |
download | pdfium-878dd5b121b38e6eaba5b3f3a90d0a9abf60feaf.tar.xz |
Cleanup unneeded FWL theme code.
This CL removes FWL theme code methods which do not have implementations.
Review-Url: https://codereview.chromium.org/2422373002
Diffstat (limited to 'xfa/fwl/theme/cfwl_widgettp.cpp')
-rw-r--r-- | xfa/fwl/theme/cfwl_widgettp.cpp | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/xfa/fwl/theme/cfwl_widgettp.cpp b/xfa/fwl/theme/cfwl_widgettp.cpp index a1b458cb41..5c54afd8fc 100644 --- a/xfa/fwl/theme/cfwl_widgettp.cpp +++ b/xfa/fwl/theme/cfwl_widgettp.cpp @@ -36,19 +36,6 @@ const float kCYBorder = 1.0f; } // namespace -static void FWL_SetChildThemeID(IFWL_Widget* pParent, uint32_t dwThemeID) { - CFWL_WidgetMgr* pWidgetMgr = CFWL_WidgetMgr::GetInstance(); - IFWL_Widget* pChild = pWidgetMgr->GetFirstChildWidget(pParent); - while (pChild) { - IFWL_ThemeProvider* pTheme = pChild->GetThemeProvider(); - if (pTheme) { - pTheme->SetThemeID(pChild, dwThemeID, FALSE); - } - FWL_SetChildThemeID(pChild, dwThemeID); - pChild = pWidgetMgr->GetNextSiblingWidget(pChild); - } -} - bool CFWL_WidgetTP::IsValidWidget(IFWL_Widget* pWidget) { return FALSE; } @@ -57,17 +44,11 @@ uint32_t CFWL_WidgetTP::GetThemeID(IFWL_Widget* pWidget) { return m_dwThemeID; } -uint32_t CFWL_WidgetTP::SetThemeID(IFWL_Widget* pWidget, - uint32_t dwThemeID, - FX_BOOL bChildren) { +uint32_t CFWL_WidgetTP::SetThemeID(IFWL_Widget* pWidget, uint32_t dwThemeID) { uint32_t dwOld = m_dwThemeID; m_dwThemeID = dwThemeID; - if (CFWL_ArrowData::HasInstance()) { + if (CFWL_ArrowData::HasInstance()) CFWL_ArrowData::GetInstance()->SetColorData(FWL_GetThemeColor(dwThemeID)); - } - if (bChildren) { - FWL_SetChildThemeID(pWidget, dwThemeID); - } return dwOld; } @@ -165,17 +146,6 @@ FX_BOOL CFWL_WidgetTP::IsCustomizedLayout(IFWL_Widget* pWidget) { return FWL_GetThemeLayout(m_dwThemeID); } -FWL_Error CFWL_WidgetTP::GetPartRect(CFWL_ThemePart* pThemePart, - CFX_RectF& rect) { - return FWL_Error::Succeeded; -} - -FX_BOOL CFWL_WidgetTP::IsInPart(CFWL_ThemePart* pThemePart, - FX_FLOAT fx, - FX_FLOAT fy) { - return TRUE; -} - FX_BOOL CFWL_WidgetTP::CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect) { if (!pParams) return FALSE; @@ -757,10 +727,6 @@ CFGAS_GEFont* CFWL_FontManager::FindFont(const CFX_WideStringC& wsFontFamily, return m_FontsArray.back()->GetFont(); } -FX_BOOL FWLTHEME_Init() { - return TRUE; -} - void FWLTHEME_Release() { CFWL_ArrowData::DestroyInstance(); CFWL_FontManager::DestroyInstance(); |