summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_checkbox.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-14 09:01:37 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-14 09:01:37 -0800
commitc64b76c97c7f469ebd4126f314badceeb8a78b8b (patch)
treeb2a77865503271247156447e30c9ab2a9db2f6f4 /xfa/fwl/core/ifwl_checkbox.cpp
parent27e66753c8bd6e664f26d05c1a468dc68be01913 (diff)
downloadpdfium-c64b76c97c7f469ebd4126f314badceeb8a78b8b.tar.xz
Cleanup remaining IFWL files for visiblity and usage.
This CL cleans up the remaining ifwl_* files to fixup visibility, remove unused methods and remove unused FWL_Error return codes. Review-Url: https://codereview.chromium.org/2502653002
Diffstat (limited to 'xfa/fwl/core/ifwl_checkbox.cpp')
-rw-r--r--xfa/fwl/core/ifwl_checkbox.cpp31
1 files changed, 6 insertions, 25 deletions
diff --git a/xfa/fwl/core/ifwl_checkbox.cpp b/xfa/fwl/core/ifwl_checkbox.cpp
index 3aac3598c2..76a377acbf 100644
--- a/xfa/fwl/core/ifwl_checkbox.cpp
+++ b/xfa/fwl/core/ifwl_checkbox.cpp
@@ -143,39 +143,20 @@ void IFWL_CheckBox::DrawWidget(CFX_Graphics* pGraphics,
}
}
-int32_t IFWL_CheckBox::GetCheckState() {
- if ((m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CKB_3State) &&
- ((m_pProperties->m_dwStates & FWL_STATE_CKB_CheckMask) ==
- FWL_STATE_CKB_Neutral)) {
- return 2;
- }
- if ((m_pProperties->m_dwStates & FWL_STATE_CKB_CheckMask) ==
- FWL_STATE_CKB_Checked) {
- return 1;
- }
- return 0;
-}
-
-FWL_Error IFWL_CheckBox::SetCheckState(int32_t iCheck) {
+void IFWL_CheckBox::SetCheckState(int32_t iCheck) {
m_pProperties->m_dwStates &= ~FWL_STATE_CKB_CheckMask;
switch (iCheck) {
- case 0: {
- break;
- }
- case 1: {
+ case 1:
m_pProperties->m_dwStates |= FWL_STATE_CKB_Checked;
break;
- }
- case 2: {
- if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CKB_3State) {
+ case 2:
+ if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CKB_3State)
m_pProperties->m_dwStates |= FWL_STATE_CKB_Neutral;
- }
break;
- }
- default: {}
+ default:
+ break;
}
Repaint(&m_rtClient);
- return FWL_Error::Succeeded;
}
void IFWL_CheckBox::Layout() {