Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: xfa/fwl/core/ifwl_comboedit.cpp

Issue 2467203003: Remove FX_BOOL from xfa. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/core/ifwl_comboedit.h ('k') | xfa/fwl/core/ifwl_combolist.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/core/ifwl_comboedit.cpp
diff --git a/xfa/fwl/core/ifwl_comboedit.cpp b/xfa/fwl/core/ifwl_comboedit.cpp
index ece35417efd8d419ab4599c08801829dcd35b609..26106e14cf1335d76ebb3c6fcf180187ffb1c72d 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;
}
« no previous file with comments | « xfa/fwl/core/ifwl_comboedit.h ('k') | xfa/fwl/core/ifwl_combolist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698