diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-01-03 15:46:55 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-01-03 21:10:00 +0000 |
commit | c635c93c974db1c55032c36e81e98f3d214a249f (patch) | |
tree | 145a60ec7a1d43755e85e36890f73ba0e4625361 /xfa/fwl/theme/cfwl_widgettp.h | |
parent | 3cdcfeb04b5c496199d8c88ebd2402c3db4413ab (diff) | |
download | pdfium-c635c93c974db1c55032c36e81e98f3d214a249f.tar.xz |
Remove the ::GetCapacity methods.
The GetCapacity methods return a void* because they return different types of
internal class memory based on what the calling parameter was. This is confusing
and makes it difficult to tell when then enum values can be removed.
This CL removes GetCapacity and adds methods as needed to get the real values.
Change-Id: I64c2edc858220624880e27f4ed49c2dae080f462
Reviewed-on: https://pdfium-review.googlesource.com/2137
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fwl/theme/cfwl_widgettp.h')
-rw-r--r-- | xfa/fwl/theme/cfwl_widgettp.h | 60 |
1 files changed, 2 insertions, 58 deletions
diff --git a/xfa/fwl/theme/cfwl_widgettp.h b/xfa/fwl/theme/cfwl_widgettp.h index 11135121c0..50dd478cfd 100644 --- a/xfa/fwl/theme/cfwl_widgettp.h +++ b/xfa/fwl/theme/cfwl_widgettp.h @@ -16,59 +16,6 @@ #include "xfa/fwl/theme/cfwl_utils.h" #include "xfa/fxgraphics/cfx_graphics.h" -enum class CFWL_WidgetCapacity { - None = 0, - - BigIcon, - ComboFormHandler, - CXBorder, - CYBorder, - CYCaption, - CYNarrowCaption, - DatesCellHeight, - DatesCellWidth, - EdgeFlat, - EdgeRaised, - EdgeSunken, - Font, - FontSize, - HeaderBtnHeight, - HeaderBtnHMargin, - HeaderBtnVMargin, - HeaderBtnWidth, - HeaderHeight, - HeaderTextHeight, - HeaderTextHMargin, - HeaderTextVMargin, - HeaderTextWidth, - HeaderWidth, - Height, - HSepHeight, - HSepWidth, - LineHeight, - Margin, - ScrollBarWidth, - SepDOffset, - SepX, - SepY, - Size, - SmallIcon, - SpaceAboveBelow, - TextColor, - TextSelColor, - TodayFlagWidth, - TodayHeight, - TodayWidth, - UIMargin, - VSepHeight, - VSepWidth, - WeekHeight, - WeekNumHeight, - WeekNumWidth, - WeekWidth, - Width -}; - class CFDE_TextOut; class CFGAS_GEFont; class CFWL_ThemeBackground; @@ -92,10 +39,10 @@ class CFWL_WidgetTP { virtual void DrawBackground(CFWL_ThemeBackground* pParams); virtual void DrawText(CFWL_ThemeText* pParams); - virtual void* GetCapacity(CFWL_ThemePart* pThemePart, - CFWL_WidgetCapacity dwCapacity); virtual void CalcTextRect(CFWL_ThemeText* pParams, CFX_RectF& rect); + CFGAS_GEFont* GetFont() const { return m_pFDEFont; } + void SetFont(CFWL_Widget* pWidget, const FX_WCHAR* strFont, FX_FLOAT fFontSize, @@ -186,9 +133,6 @@ class CFWL_WidgetTP { uint32_t m_dwRefCount; std::unique_ptr<CFDE_TextOut> m_pTextOut; CFGAS_GEFont* m_pFDEFont; - FX_FLOAT m_fValue; - uint32_t m_dwValue; - CFX_RectF m_rtMargin; }; void FWLTHEME_Release(); |