| 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/src/fwl/basewidget/fwl_tooltipctrlimp.h" | 7 #include "xfa/fwl/basewidget/fwl_tooltipctrlimp.h" |
| 8 | 8 |
| 9 #include "xfa/fde/tto/fde_textout.h" |
| 10 #include "xfa/fwl/core/fwl_formimp.h" |
| 11 #include "xfa/fwl/core/fwl_noteimp.h" |
| 12 #include "xfa/fwl/core/fwl_panelimp.h" |
| 13 #include "xfa/fwl/core/fwl_targetimp.h" |
| 14 #include "xfa/fwl/core/fwl_widgetimp.h" |
| 9 #include "xfa/include/fwl/basewidget/fwl_tooltipctrl.h" | 15 #include "xfa/include/fwl/basewidget/fwl_tooltipctrl.h" |
| 10 #include "xfa/include/fwl/core/fwl_theme.h" | 16 #include "xfa/include/fwl/core/fwl_theme.h" |
| 11 #include "xfa/src/fde/tto/fde_textout.h" | |
| 12 #include "xfa/src/fwl/core/fwl_formimp.h" | |
| 13 #include "xfa/src/fwl/core/fwl_noteimp.h" | |
| 14 #include "xfa/src/fwl/core/fwl_panelimp.h" | |
| 15 #include "xfa/src/fwl/core/fwl_targetimp.h" | |
| 16 #include "xfa/src/fwl/core/fwl_widgetimp.h" | |
| 17 | 17 |
| 18 // static | 18 // static |
| 19 IFWL_ToolTip* IFWL_ToolTip::Create(const CFWL_WidgetImpProperties& properties, | 19 IFWL_ToolTip* IFWL_ToolTip::Create(const CFWL_WidgetImpProperties& properties, |
| 20 IFWL_Widget* pOuter) { | 20 IFWL_Widget* pOuter) { |
| 21 IFWL_ToolTip* pToolTip = new IFWL_ToolTip; | 21 IFWL_ToolTip* pToolTip = new IFWL_ToolTip; |
| 22 CFWL_ToolTipImp* pToolTipImpl = new CFWL_ToolTipImp(properties, pOuter); | 22 CFWL_ToolTipImp* pToolTipImpl = new CFWL_ToolTipImp(properties, pOuter); |
| 23 pToolTip->SetImpl(pToolTipImpl); | 23 pToolTip->SetImpl(pToolTipImpl); |
| 24 pToolTipImpl->SetInterface(pToolTip); | 24 pToolTipImpl->SetInterface(pToolTip); |
| 25 return pToolTip; | 25 return pToolTip; |
| 26 } | 26 } |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 int32_t CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { | 284 int32_t CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { |
| 285 return CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); | 285 return CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); |
| 286 } | 286 } |
| 287 FWL_ERR CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) { | 287 FWL_ERR CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) { |
| 288 return FWL_ERR_Succeeded; | 288 return FWL_ERR_Succeeded; |
| 289 } | 289 } |
| 290 FWL_ERR CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, | 290 FWL_ERR CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, |
| 291 const CFX_Matrix* pMatrix) { | 291 const CFX_Matrix* pMatrix) { |
| 292 return m_pOwner->DrawWidget(pGraphics, pMatrix); | 292 return m_pOwner->DrawWidget(pGraphics, pMatrix); |
| 293 } | 293 } |
| OLD | NEW |