diff options
Diffstat (limited to 'xfa/fwl/core/ifwl_tooltip.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_tooltip.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/xfa/fwl/core/ifwl_tooltip.cpp b/xfa/fwl/core/ifwl_tooltip.cpp index 371709772e..200cf7adab 100644 --- a/xfa/fwl/core/ifwl_tooltip.cpp +++ b/xfa/fwl/core/ifwl_tooltip.cpp @@ -32,8 +32,6 @@ IFWL_ToolTip::IFWL_ToolTip(const IFWL_App* app, m_rtAnchor.Set(0, 0, 0, 0); m_pProperties->m_dwStyles &= ~FWL_WGTSTYLE_Child; m_pProperties->m_dwStyles |= FWL_WGTSTYLE_Popup; - - SetDelegate(pdfium::MakeUnique<CFWL_ToolTipImpDelegate>(this)); } IFWL_ToolTip::~IFWL_ToolTip() {} @@ -228,6 +226,11 @@ void IFWL_ToolTip::RefreshToolTipPos() { } } +void IFWL_ToolTip::OnDrawWidget(CFX_Graphics* pGraphics, + const CFX_Matrix* pMatrix) { + DrawWidget(pGraphics, pMatrix); +} + IFWL_ToolTip::Timer::Timer(IFWL_ToolTip* pToolTip) : IFWL_Timer(pToolTip) {} void IFWL_ToolTip::Timer::Run(IFWL_TimerInfo* pTimerInfo) { @@ -248,17 +251,3 @@ void IFWL_ToolTip::Timer::Run(IFWL_TimerInfo* pTimerInfo) { pToolTip->m_pTimerInfoHide = nullptr; } } - -CFWL_ToolTipImpDelegate::CFWL_ToolTipImpDelegate(IFWL_ToolTip* pOwner) - : m_pOwner(pOwner) {} - -void CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { - CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); -} - -void CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {} - -void CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, - const CFX_Matrix* pMatrix) { - m_pOwner->DrawWidget(pGraphics, pMatrix); -} |