diff options
author | dsinclair <dsinclair@chromium.org> | 2016-11-15 12:00:41 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-15 12:00:41 -0800 |
commit | 05b9a317d66c29f740e4b0e89ea87143a11d61fc (patch) | |
tree | 642bca12314f6730071c9d6fd0d871e73f9b0b29 /xfa/fwl/core/ifwl_widget.cpp | |
parent | 70c4afd5c3c5c44cd24f814423a23a6ef05bba02 (diff) | |
download | pdfium-05b9a317d66c29f740e4b0e89ea87143a11d61fc.tar.xz |
Cleaning methods and visibility in cfwl_* files.
First pass at cleaning up visibility, return values and const'ness of
cfwl_* class.
Review-Url: https://codereview.chromium.org/2501743002
Diffstat (limited to 'xfa/fwl/core/ifwl_widget.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_widget.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/xfa/fwl/core/ifwl_widget.cpp b/xfa/fwl/core/ifwl_widget.cpp index 0768f38915..c9decffe24 100644 --- a/xfa/fwl/core/ifwl_widget.cpp +++ b/xfa/fwl/core/ifwl_widget.cpp @@ -416,23 +416,26 @@ void IFWL_Widget::SetGrab(bool bSet) { pDriver->SetGrab(this, bSet); } -bool IFWL_Widget::GetPopupPos(FX_FLOAT fMinHeight, +void IFWL_Widget::GetPopupPos(FX_FLOAT fMinHeight, FX_FLOAT fMaxHeight, const CFX_RectF& rtAnchor, CFX_RectF& rtPopup) { if (GetClassID() == FWL_Type::ComboBox) { if (m_pWidgetMgr->IsFormDisabled()) { - return m_pWidgetMgr->GetAdapterPopupPos(this, fMinHeight, fMaxHeight, - rtAnchor, rtPopup); + m_pWidgetMgr->GetAdapterPopupPos(this, fMinHeight, fMaxHeight, rtAnchor, + rtPopup); + return; } - return GetPopupPosComboBox(fMinHeight, fMaxHeight, rtAnchor, rtPopup); + GetPopupPosComboBox(fMinHeight, fMaxHeight, rtAnchor, rtPopup); + return; } if (GetClassID() == FWL_Type::DateTimePicker && m_pWidgetMgr->IsFormDisabled()) { - return m_pWidgetMgr->GetAdapterPopupPos(this, fMinHeight, fMaxHeight, - rtAnchor, rtPopup); + m_pWidgetMgr->GetAdapterPopupPos(this, fMinHeight, fMaxHeight, rtAnchor, + rtPopup); + return; } - return GetPopupPosGeneral(fMinHeight, fMaxHeight, rtAnchor, rtPopup); + GetPopupPosGeneral(fMinHeight, fMaxHeight, rtAnchor, rtPopup); } bool IFWL_Widget::GetPopupPosMenu(FX_FLOAT fMinHeight, |