diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-22 09:34:44 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-22 09:34:44 -0800 |
commit | e50184c087ee6f90568ad1166a55f5d25be4d09e (patch) | |
tree | 21210006ff0ab85bb069f0e3682093b6ce40c4f1 /xfa/fwl/core/ifwl_combobox.cpp | |
parent | 4572c8a20beee5cbab2eb1a90cb6cadcc5fa512c (diff) | |
download | pdfium-e50184c087ee6f90568ad1166a55f5d25be4d09e.tar.xz |
Rename common methods between ifwl and cfwl.
This CL renames some methods in IFWL which have the same name as the CFWL
methods but the CFWL methods are not proxy methods.
Review-Url: https://codereview.chromium.org/2520413002
Diffstat (limited to 'xfa/fwl/core/ifwl_combobox.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_combobox.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/xfa/fwl/core/ifwl_combobox.cpp b/xfa/fwl/core/ifwl_combobox.cpp index e632120417..82d9d3d5e7 100644 --- a/xfa/fwl/core/ifwl_combobox.cpp +++ b/xfa/fwl/core/ifwl_combobox.cpp @@ -207,7 +207,7 @@ void IFWL_ComboBox::DrawWidget(CFX_Graphics* pGraphics, static_cast<IFWL_ComboBox::DataProvider*>( m_pProperties->m_pDataProvider); CFWL_ListItem* hItem = pData->GetItem(this, m_iCurSel); - m_pListBox->GetItemText(hItem, wsText); + m_pListBox->GetDataProviderItemText(hItem, wsText); CFWL_ThemeText theme_text; theme_text.m_pWidget = this; @@ -261,7 +261,7 @@ void IFWL_ComboBox::SetCurSel(int32_t iSel) { static_cast<IFWL_ComboBox::DataProvider*>( m_pProperties->m_pDataProvider); CFWL_ListItem* hItem = pData->GetItem(this, iSel); - m_pListBox->GetItemText(hItem, wsText); + m_pListBox->GetDataProviderItemText(hItem, wsText); m_pEdit->SetText(wsText); } m_pEdit->Update(); @@ -298,7 +298,7 @@ void IFWL_ComboBox::GetEditText(CFX_WideString& wsText, IFWL_ComboBox::DataProvider* pData = static_cast<IFWL_ComboBox::DataProvider*>(m_pProperties->m_pDataProvider); CFWL_ListItem* hItem = pData->GetItem(this, m_iCurSel); - m_pListBox->GetItemText(hItem, wsText); + m_pListBox->GetDataProviderItemText(hItem, wsText); } void IFWL_ComboBox::OpenDropDownList(bool bActivate) { @@ -327,7 +327,7 @@ void IFWL_ComboBox::EditModifyStylesEx(uint32_t dwStylesExAdded, m_pEdit->ModifyStylesEx(dwStylesExAdded, dwStylesExRemoved); } -FX_FLOAT IFWL_ComboBox::GetListHeight() { +FX_FLOAT IFWL_ComboBox::GetDataProviderListHeight() { return static_cast<IFWL_ComboBox::DataProvider*>( m_pProperties->m_pDataProvider) ->GetListHeight(this); @@ -371,9 +371,9 @@ void IFWL_ComboBox::ShowDropList(bool bActivate) { (FWL_STYLEEXT_CMB_Sort | FWL_STYLEEXT_CMB_OwnerDraw); m_pListBox->ModifyStylesEx(dwStyleAdd, 0); m_pListBox->GetWidgetRect(m_rtList, true); - FX_FLOAT fHeight = GetListHeight(); - if (fHeight > 0 && m_rtList.height > GetListHeight()) { - m_rtList.height = GetListHeight(); + FX_FLOAT fHeight = GetDataProviderListHeight(); + if (fHeight > 0 && m_rtList.height > fHeight) { + m_rtList.height = fHeight; m_pListBox->ModifyStyles(FWL_WGTSTYLE_VScroll, 0); } @@ -435,7 +435,7 @@ void IFWL_ComboBox::SyncEditText(int32_t iListItem) { IFWL_ComboBox::DataProvider* pData = static_cast<IFWL_ComboBox::DataProvider*>(m_pProperties->m_pDataProvider); CFWL_ListItem* hItem = pData->GetItem(this, iListItem); - m_pListBox->GetItemText(hItem, wsText); + m_pListBox->GetDataProviderItemText(hItem, wsText); m_pEdit->SetText(wsText); m_pEdit->Update(); m_pEdit->SetSelected(); @@ -468,7 +468,7 @@ void IFWL_ComboBox::Layout() { static_cast<IFWL_ComboBox::DataProvider*>( m_pProperties->m_pDataProvider); CFWL_ListItem* hItem = pData->GetItem(this, m_iCurSel); - m_pListBox->GetItemText(hItem, wsText); + m_pListBox->GetDataProviderItemText(hItem, wsText); m_pEdit->LockUpdate(); m_pEdit->SetText(wsText); m_pEdit->UnlockUpdate(); @@ -804,7 +804,7 @@ void IFWL_ComboBox::DisForm_Layout() { static_cast<IFWL_ComboBox::DataProvider*>( m_pProperties->m_pDataProvider); CFWL_ListItem* hItem = pData->GetItem(this, m_iCurSel); - m_pListBox->GetItemText(hItem, wsText); + m_pListBox->GetDataProviderItemText(hItem, wsText); m_pEdit->LockUpdate(); m_pEdit->SetText(wsText); m_pEdit->UnlockUpdate(); @@ -990,7 +990,7 @@ void IFWL_ComboBox::DoSubCtrlKey(CFWL_MsgKey* pMsg) { static_cast<IFWL_ComboBox::DataProvider*>( m_pProperties->m_pDataProvider); CFWL_ListItem* hItem = pData->GetItem(this, iCurSel); - m_pListBox->GetItemText(hItem, wsTemp); + m_pListBox->GetDataProviderItemText(hItem, wsTemp); bMatchEqual = wsText == wsTemp; } } @@ -1126,7 +1126,7 @@ void IFWL_ComboBox::DisForm_OnKey(CFWL_MsgKey* pMsg) { if (iCurSel >= 0) { CFX_WideString wsTemp; CFWL_ListItem* item = m_pListBox->GetSelItem(iCurSel); - m_pListBox->GetItemText(item, wsTemp); + m_pListBox->GetDataProviderItemText(item, wsTemp); bMatchEqual = wsText == wsTemp; } } |