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/core/ifwl_tooltip.h" | 7 #include "xfa/fwl/core/ifwl_tooltip.h" |
8 | 8 |
9 #include "xfa/fde/tto/fde_textout.h" | 9 #include "xfa/fde/tto/fde_textout.h" |
10 #include "xfa/fwl/core/cfwl_themebackground.h" | 10 #include "xfa/fwl/core/cfwl_themebackground.h" |
11 #include "xfa/fwl/core/cfwl_themepart.h" | 11 #include "xfa/fwl/core/cfwl_themepart.h" |
12 #include "xfa/fwl/core/cfwl_themetext.h" | 12 #include "xfa/fwl/core/cfwl_themetext.h" |
13 #include "xfa/fwl/core/fwl_noteimp.h" | 13 #include "xfa/fwl/core/fwl_noteimp.h" |
14 #include "xfa/fwl/core/ifwl_themeprovider.h" | 14 #include "xfa/fwl/core/ifwl_themeprovider.h" |
15 #include "xfa/fwl/core/ifwl_tooltip.h" | 15 #include "xfa/fwl/core/ifwl_tooltip.h" |
16 #include "xfa/fwl/theme/cfwl_widgettp.h" | 16 #include "xfa/fwl/theme/cfwl_widgettp.h" |
17 | 17 |
18 // static | |
19 IFWL_ToolTip* IFWL_ToolTip::Create(const CFWL_WidgetImpProperties& properties, | |
20 IFWL_Widget* pOuter) { | |
21 return new IFWL_ToolTip(properties, pOuter); | |
22 } | |
23 | |
24 IFWL_ToolTip::IFWL_ToolTip(const CFWL_WidgetImpProperties& properties, | 18 IFWL_ToolTip::IFWL_ToolTip(const CFWL_WidgetImpProperties& properties, |
25 IFWL_Widget* pOuter) | 19 IFWL_Widget* pOuter) |
26 : IFWL_Form(properties, pOuter), | 20 : IFWL_Form(properties, pOuter), |
27 m_bBtnDown(FALSE), | 21 m_bBtnDown(FALSE), |
28 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine), | 22 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine), |
29 m_iTTOAlign(FDE_TTOALIGNMENT_Center), | 23 m_iTTOAlign(FDE_TTOALIGNMENT_Center), |
30 m_pTimerInfoShow(nullptr), | 24 m_pTimerInfoShow(nullptr), |
31 m_pTimerInfoHide(nullptr) { | 25 m_pTimerInfoHide(nullptr) { |
32 m_rtClient.Set(0, 0, 0, 0); | 26 m_rtClient.Set(0, 0, 0, 0); |
33 m_rtCaption.Set(0, 0, 0, 0); | 27 m_rtCaption.Set(0, 0, 0, 0); |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 void CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { | 271 void CFWL_ToolTipImpDelegate::OnProcessMessage(CFWL_Message* pMessage) { |
278 CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); | 272 CFWL_WidgetImpDelegate::OnProcessMessage(pMessage); |
279 } | 273 } |
280 | 274 |
281 void CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {} | 275 void CFWL_ToolTipImpDelegate::OnProcessEvent(CFWL_Event* pEvent) {} |
282 | 276 |
283 void CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, | 277 void CFWL_ToolTipImpDelegate::OnDrawWidget(CFX_Graphics* pGraphics, |
284 const CFX_Matrix* pMatrix) { | 278 const CFX_Matrix* pMatrix) { |
285 m_pOwner->DrawWidget(pGraphics, pMatrix); | 279 m_pOwner->DrawWidget(pGraphics, pMatrix); |
286 } | 280 } |
OLD | NEW |