summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_comboboxtp.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-05-04 13:52:07 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-04 13:52:07 -0700
commitef43608928148bac9b73f6919188efd87feccf95 (patch)
treed3ea9363547fd7a00486c693442601c4d9dd6020 /xfa/fwl/theme/cfwl_comboboxtp.cpp
parent8f4bf9a8ac211e150f7fa4d8ed061f264cb3aa9e (diff)
downloadpdfium-ef43608928148bac9b73f6919188efd87feccf95.tar.xz
Convert some theme defines to values.
This Cl updates several of the theme defines to be constant values instead of defines. Some of the items were re-ordered so the calculations would work correctly. Review-Url: https://codereview.chromium.org/1945183004
Diffstat (limited to 'xfa/fwl/theme/cfwl_comboboxtp.cpp')
-rw-r--r--xfa/fwl/theme/cfwl_comboboxtp.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/xfa/fwl/theme/cfwl_comboboxtp.cpp b/xfa/fwl/theme/cfwl_comboboxtp.cpp
index 131e6388f7..b02caf8a3e 100644
--- a/xfa/fwl/theme/cfwl_comboboxtp.cpp
+++ b/xfa/fwl/theme/cfwl_comboboxtp.cpp
@@ -13,7 +13,11 @@
#include "xfa/fxgraphics/cfx_color.h"
#include "xfa/fxgraphics/cfx_path.h"
-#define FWLTHEME_CAPACITY_ComboFormHandler 8.0f
+namespace {
+
+const float kComboFormHandler = 8.0f;
+
+} // namespace
CFWL_ComboBoxTP::CFWL_ComboBoxTP() {
m_dwThemeID = 0;
@@ -85,7 +89,7 @@ void CFWL_ComboBoxTP::DrawStrethHandler(CFWL_ThemeBackground* pParams,
void* CFWL_ComboBoxTP::GetCapacity(CFWL_ThemePart* pThemePart,
CFWL_WidgetCapacity dwCapacity) {
if (dwCapacity == CFWL_WidgetCapacity::ComboFormHandler) {
- m_fValue = FWLTHEME_CAPACITY_ComboFormHandler;
+ m_fValue = kComboFormHandler;
return &m_fValue;
}
return CFWL_WidgetTP::GetCapacity(pThemePart, dwCapacity);