diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-11 18:09:57 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-11 18:09:57 -0800 |
commit | 27e66753c8bd6e664f26d05c1a468dc68be01913 (patch) | |
tree | 0006196c2e60225fb571946957f2e77646c6d6e2 /xfa/fwl/core/ifwl_comboedit.cpp | |
parent | 6e1d6032b7990cdf580c99ff491a1b761ee39ca6 (diff) | |
download | pdfium-27e66753c8bd6e664f26d05c1a468dc68be01913.tar.xz |
IFWL cleanup in the Combo classeschromium/2919chromium/2918
Cleanup visibility and unused methods in the IFWL combo code.
Review-Url: https://codereview.chromium.org/2494743002
Diffstat (limited to 'xfa/fwl/core/ifwl_comboedit.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_comboedit.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/xfa/fwl/core/ifwl_comboedit.cpp b/xfa/fwl/core/ifwl_comboedit.cpp index 2a7ac904e1..0896ba76df 100644 --- a/xfa/fwl/core/ifwl_comboedit.cpp +++ b/xfa/fwl/core/ifwl_comboedit.cpp @@ -24,12 +24,8 @@ void IFWL_ComboEdit::ClearSelected() { void IFWL_ComboEdit::SetSelected() { FlagFocus(true); - EndCaret(); - AddSelRange(0); -} - -void IFWL_ComboEdit::EndCaret() { GetTxtEdtEngine()->MoveCaretPos(MC_End); + AddSelRange(0); } void IFWL_ComboEdit::FlagFocus(bool bSet) { @@ -41,10 +37,6 @@ void IFWL_ComboEdit::FlagFocus(bool bSet) { } } -void IFWL_ComboEdit::SetComboBoxFocus(bool bSet) { - m_pOuter->SetFocus(bSet); -} - void IFWL_ComboEdit::OnProcessMessage(CFWL_Message* pMessage) { if (!pMessage) return; @@ -66,7 +58,7 @@ void IFWL_ComboEdit::OnProcessMessage(CFWL_Message* pMessage) { if ((pMsg->m_dwCmd == FWL_MouseCommand::LeftButtonDown) && ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0)) { SetSelected(); - SetComboBoxFocus(true); + m_pOuter->SetFocus(true); } break; } |