diff options
author | tsepez <tsepez@chromium.org> | 2016-11-02 15:43:18 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-02 15:43:19 -0700 |
commit | d19e912dd469e4bdad9f3020e1f6eb98f10f3470 (patch) | |
tree | 239cb568a80445f14a1ab9b63dcaaddcce67e1cc /xfa/fwl/core/ifwl_comboedit.cpp | |
parent | 12f3e4a58f05850b93af35619cb04f0231d86acc (diff) | |
download | pdfium-d19e912dd469e4bdad9f3020e1f6eb98f10f3470.tar.xz |
Remove FX_BOOL from xfa.
Review-Url: https://codereview.chromium.org/2467203003
Diffstat (limited to 'xfa/fwl/core/ifwl_comboedit.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_comboedit.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xfa/fwl/core/ifwl_comboedit.cpp b/xfa/fwl/core/ifwl_comboedit.cpp index ece35417ef..26106e14cf 100644 --- a/xfa/fwl/core/ifwl_comboedit.cpp +++ b/xfa/fwl/core/ifwl_comboedit.cpp @@ -22,7 +22,7 @@ void IFWL_ComboEdit::ClearSelected() { } void IFWL_ComboEdit::SetSelected() { - FlagFocus(TRUE); + FlagFocus(true); EndCaret(); AddSelRange(0); } @@ -31,16 +31,16 @@ void IFWL_ComboEdit::EndCaret() { m_pEdtEngine->MoveCaretPos(MC_End); } -void IFWL_ComboEdit::FlagFocus(FX_BOOL bSet) { +void IFWL_ComboEdit::FlagFocus(bool bSet) { if (bSet) { m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused; } else { m_pProperties->m_dwStates &= ~FWL_WGTSTATE_Focused; - ShowCaret(FALSE); + ShowCaret(false); } } -void IFWL_ComboEdit::SetComboBoxFocus(FX_BOOL bSet) { +void IFWL_ComboEdit::SetComboBoxFocus(bool bSet) { m_pOuter->SetFocus(bSet); } @@ -48,16 +48,16 @@ void IFWL_ComboEdit::OnProcessMessage(CFWL_Message* pMessage) { if (!pMessage) return; - FX_BOOL backDefault = TRUE; + bool backDefault = true; switch (pMessage->GetClassID()) { case CFWL_MessageType::SetFocus: { m_pProperties->m_dwStates |= FWL_WGTSTATE_Focused; - backDefault = FALSE; + backDefault = false; break; } case CFWL_MessageType::KillFocus: { m_pProperties->m_dwStates &= ~FWL_WGTSTATE_Focused; - backDefault = FALSE; + backDefault = false; break; } case CFWL_MessageType::Mouse: { @@ -65,7 +65,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); + SetComboBoxFocus(true); } break; } |