| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "xfa/fwl/basewidget/fwl_tooltipctrlimp.h" | 7 #include "xfa/fwl/basewidget/fwl_tooltipctrlimp.h" |
| 8 | 8 |
| 9 #include "xfa/fde/tto/fde_textout.h" | 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fwl/basewidget/ifwl_tooltip.h" | 10 #include "xfa/fwl/basewidget/ifwl_tooltip.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 IFWL_ToolTip::IFWL_ToolTip() {} | 42 IFWL_ToolTip::IFWL_ToolTip() {} |
| 43 | 43 |
| 44 CFWL_ToolTipImp::CFWL_ToolTipImp(const CFWL_WidgetImpProperties& properties, | 44 CFWL_ToolTipImp::CFWL_ToolTipImp(const CFWL_WidgetImpProperties& properties, |
| 45 IFWL_Widget* pOuter) | 45 IFWL_Widget* pOuter) |
| 46 : CFWL_FormImp(properties, pOuter), | 46 : CFWL_FormImp(properties, pOuter), |
| 47 m_bBtnDown(FALSE), | 47 m_bBtnDown(FALSE), |
| 48 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine), | 48 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine), |
| 49 m_iTTOAlign(FDE_TTOALIGNMENT_Center), | 49 m_iTTOAlign(FDE_TTOALIGNMENT_Center), |
| 50 m_pTimerInfoShow(nullptr), | 50 m_pTimerInfoShow(nullptr), |
| 51 m_pTimerInfoHide(nullptr), | 51 m_pTimerInfoHide(nullptr) { |
| 52 m_pTimer(nullptr) { | |
| 53 m_rtClient.Set(0, 0, 0, 0); | 52 m_rtClient.Set(0, 0, 0, 0); |
| 54 m_rtCaption.Set(0, 0, 0, 0); | 53 m_rtCaption.Set(0, 0, 0, 0); |
| 55 m_rtAnchor.Set(0, 0, 0, 0); | 54 m_rtAnchor.Set(0, 0, 0, 0); |
| 56 m_TimerShow.m_pToolTip = this; | 55 m_TimerShow.m_pToolTip = this; |
| 57 m_TimerHide.m_pToolTip = this; | 56 m_TimerHide.m_pToolTip = this; |
| 58 } | 57 } |
| 59 | 58 |
| 60 CFWL_ToolTipImp::~CFWL_ToolTipImp() { | 59 CFWL_ToolTipImp::~CFWL_ToolTipImp() {} |
| 61 delete m_pTimer; | |
| 62 m_pTimer = nullptr; | |
| 63 } | |
| 64 | 60 |
| 65 FWL_Error CFWL_ToolTipImp::GetClassName(CFX_WideString& wsClass) const { | 61 FWL_Error CFWL_ToolTipImp::GetClassName(CFX_WideString& wsClass) const { |
| 66 wsClass = FWL_CLASS_ToolTip; | 62 wsClass = FWL_CLASS_ToolTip; |
| 67 return FWL_Error::Succeeded; | 63 return FWL_Error::Succeeded; |
| 68 } | 64 } |
| 69 | 65 |
| 70 FWL_Type CFWL_ToolTipImp::GetClassID() const { | 66 FWL_Type CFWL_ToolTipImp::GetClassID() const { |
| 71 return FWL_Type::ToolTip; | 67 return FWL_Type::ToolTip; |
| 72 } | 68 } |
| 73 | 69 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 void CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { | 291 void CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { |
| 296 CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); | 292 CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); |
| 297 } | 293 } |
| 298 | 294 |
| 299 void CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {} | 295 void CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {} |
| 300 | 296 |
| 301 void CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, | 297 void CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, |
| 302 const CFX_Matrix* pMatrix) { | 298 const CFX_Matrix* pMatrix) { |
| 303 m_pOwner->DrawWidget(pGraphics, pMatrix); | 299 m_pOwner->DrawWidget(pGraphics, pMatrix); |
| 304 } | 300 } |
| OLD | NEW |