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_comboboxproxy.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_comboboxproxy.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_comboboxproxy.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/xfa/fwl/core/ifwl_comboboxproxy.cpp b/xfa/fwl/core/ifwl_comboboxproxy.cpp index a0afcd1d72..0675a3b9ec 100644 --- a/xfa/fwl/core/ifwl_comboboxproxy.cpp +++ b/xfa/fwl/core/ifwl_comboboxproxy.cpp @@ -16,8 +16,8 @@ IFWL_ComboBoxProxy::IFWL_ComboBoxProxy( const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter) : IFWL_FormProxy(app, properties, pOuter), - m_bLButtonDown(FALSE), - m_bLButtonUpSelf(FALSE), + m_bLButtonDown(false), + m_bLButtonUpSelf(false), m_pComboBox(pComboBox) {} IFWL_ComboBoxProxy::~IFWL_ComboBoxProxy() {} @@ -47,10 +47,10 @@ void IFWL_ComboBoxProxy::OnProcessMessage(CFWL_Message* pMessage) { OnDeactive(static_cast<CFWL_MsgDeactivate*>(pMessage)); break; case CFWL_MessageType::KillFocus: - OnFocusChanged(static_cast<CFWL_MsgKillFocus*>(pMessage), FALSE); + OnFocusChanged(static_cast<CFWL_MsgKillFocus*>(pMessage), false); break; case CFWL_MessageType::SetFocus: - OnFocusChanged(static_cast<CFWL_MsgKillFocus*>(pMessage), TRUE); + OnFocusChanged(static_cast<CFWL_MsgKillFocus*>(pMessage), true); break; default: break; @@ -74,45 +74,45 @@ void IFWL_ComboBoxProxy::OnLButtonDown(CFWL_MsgMouse* pMsg) { GetWidgetRect(rtWidget); rtWidget.left = rtWidget.top = 0; if (rtWidget.Contains(pMsg->m_fx, pMsg->m_fy)) { - m_bLButtonDown = TRUE; - pDriver->SetGrab(this, TRUE); + m_bLButtonDown = true; + pDriver->SetGrab(this, true); } else { - m_bLButtonDown = FALSE; - pDriver->SetGrab(this, FALSE); - m_pComboBox->ShowDropList(FALSE); + m_bLButtonDown = false; + pDriver->SetGrab(this, false); + m_pComboBox->ShowDropList(false); } } void IFWL_ComboBoxProxy::OnLButtonUp(CFWL_MsgMouse* pMsg) { - m_bLButtonDown = FALSE; + m_bLButtonDown = false; const IFWL_App* pApp = GetOwnerApp(); if (!pApp) return; CFWL_NoteDriver* pDriver = static_cast<CFWL_NoteDriver*>(pApp->GetNoteDriver()); - pDriver->SetGrab(this, FALSE); + pDriver->SetGrab(this, false); if (m_bLButtonUpSelf) { CFX_RectF rect; GetWidgetRect(rect); rect.left = rect.top = 0; if (!rect.Contains(pMsg->m_fx, pMsg->m_fy) && m_pComboBox->IsDropListShowed()) { - m_pComboBox->ShowDropList(FALSE); + m_pComboBox->ShowDropList(false); } } else { - m_bLButtonUpSelf = TRUE; + m_bLButtonUpSelf = true; } } void IFWL_ComboBoxProxy::OnDeactive(CFWL_MsgDeactivate* pMsg) { - m_pComboBox->ShowDropList(FALSE); + m_pComboBox->ShowDropList(false); } -void IFWL_ComboBoxProxy::OnFocusChanged(CFWL_MsgKillFocus* pMsg, FX_BOOL bSet) { +void IFWL_ComboBoxProxy::OnFocusChanged(CFWL_MsgKillFocus* pMsg, bool bSet) { if (bSet) return; if (!pMsg->m_pSetFocus) - m_pComboBox->ShowDropList(FALSE); + m_pComboBox->ShowDropList(false); } |