summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_widgettp.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-04-21 06:22:11 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-21 06:22:11 -0700
commitf87058d19a3448face48202c7040ee4d95ba39c1 (patch)
treedca273099a27add24bcfbc6a2ce5e46cf262dbc5 /xfa/fwl/theme/cfwl_widgettp.cpp
parentb4e8708ce506be308fefc3eb85a427206ef320d8 (diff)
downloadpdfium-f87058d19a3448face48202c7040ee4d95ba39c1.tar.xz
Convert some FWL defines to enums.
This CL converts FWL_WGTCAPACITY_* defines to the CFWL_WidgetCapacity enum class. The FWL_PART_* defines to the FWL_Part enum class and the FWL_PartState_* defines to an enum. Review URL: https://codereview.chromium.org/1898713003
Diffstat (limited to 'xfa/fwl/theme/cfwl_widgettp.cpp')
-rw-r--r--xfa/fwl/theme/cfwl_widgettp.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/xfa/fwl/theme/cfwl_widgettp.cpp b/xfa/fwl/theme/cfwl_widgettp.cpp
index d60069b85e..1ce5d46caf 100644
--- a/xfa/fwl/theme/cfwl_widgettp.cpp
+++ b/xfa/fwl/theme/cfwl_widgettp.cpp
@@ -81,53 +81,53 @@ FX_BOOL CFWL_WidgetTP::DrawText(CFWL_ThemeText* pParams) {
return TRUE;
}
void* CFWL_WidgetTP::GetCapacity(CFWL_ThemePart* pThemePart,
- uint32_t dwCapacity) {
+ CFWL_WidgetCapacity dwCapacity) {
switch (dwCapacity) {
- case FWL_WGTCAPACITY_CXBorder: {
+ case CFWL_WidgetCapacity::CXBorder: {
m_fValue = FWLTHEME_CAPACITY_CXBorder;
break;
}
- case FWL_WGTCAPACITY_CYBorder: {
+ case CFWL_WidgetCapacity::CYBorder: {
m_fValue = FWLTHEME_CAPACITY_CYBorder;
break;
}
- case FWL_WGTCAPACITY_EdgeFlat: {
+ case CFWL_WidgetCapacity::EdgeFlat: {
m_fValue = FWLTHEME_CAPACITY_EdgeFlat;
break;
}
- case FWL_WGTCAPACITY_EdgeRaised: {
+ case CFWL_WidgetCapacity::EdgeRaised: {
m_fValue = FWLTHEME_CAPACITY_EdgeRaised;
break;
}
- case FWL_WGTCAPACITY_EdgeSunken: {
+ case CFWL_WidgetCapacity::EdgeSunken: {
m_fValue = FWLTHEME_CAPACITY_EdgeSunken;
break;
}
- case FWL_WGTCAPACITY_FontSize: {
+ case CFWL_WidgetCapacity::FontSize: {
m_fValue = FWLTHEME_CAPACITY_FontSize;
break;
}
- case FWL_WGTCAPACITY_TextColor: {
+ case CFWL_WidgetCapacity::TextColor: {
m_dwValue = FWLTHEME_CAPACITY_TextColor;
return &m_dwValue;
}
- case FWL_WGTCAPACITY_ScrollBarWidth: {
+ case CFWL_WidgetCapacity::ScrollBarWidth: {
m_fValue = FWLTHEME_CAPACITY_ScrollBarWidth;
break;
}
- case FWL_WGTCAPACITY_Font: {
+ case CFWL_WidgetCapacity::Font: {
return m_pFDEFont;
}
- case FWL_WGTCAPACITY_TextSelColor: {
+ case CFWL_WidgetCapacity::TextSelColor: {
m_dwValue = (m_dwThemeID == 0) ? FWLTHEME_CAPACITY_TextSelColor
: FWLTHEME_COLOR_Green_BKSelected;
return &m_dwValue;
}
- case FWL_WGTCAPACITY_LineHeight: {
+ case CFWL_WidgetCapacity::LineHeight: {
m_fValue = FWLTHEME_CAPACITY_LineHeight;
break;
}
- case FWL_WGTCAPACITY_UIMargin: {
+ case CFWL_WidgetCapacity::UIMargin: {
m_rtMargin.Set(0, 0, 0, 0);
return &m_rtMargin;
}