| 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 "third_party/base/ptr_util.h" | 9 #include "third_party/base/ptr_util.h" |
| 10 #include "xfa/fde/tto/fde_textout.h" | 10 #include "xfa/fde/tto/fde_textout.h" |
| 11 #include "xfa/fwl/core/cfwl_themebackground.h" | 11 #include "xfa/fwl/core/cfwl_themebackground.h" |
| 12 #include "xfa/fwl/core/cfwl_themepart.h" | 12 #include "xfa/fwl/core/cfwl_themepart.h" |
| 13 #include "xfa/fwl/core/cfwl_themetext.h" | 13 #include "xfa/fwl/core/cfwl_themetext.h" |
| 14 #include "xfa/fwl/core/fwl_noteimp.h" | 14 #include "xfa/fwl/core/fwl_noteimp.h" |
| 15 #include "xfa/fwl/core/ifwl_themeprovider.h" | 15 #include "xfa/fwl/core/ifwl_themeprovider.h" |
| 16 #include "xfa/fwl/core/ifwl_timerinfo.h" |
| 16 #include "xfa/fwl/core/ifwl_tooltip.h" | 17 #include "xfa/fwl/core/ifwl_tooltip.h" |
| 17 #include "xfa/fwl/theme/cfwl_widgettp.h" | 18 #include "xfa/fwl/theme/cfwl_widgettp.h" |
| 18 | 19 |
| 19 IFWL_ToolTip::IFWL_ToolTip(const IFWL_App* app, | 20 IFWL_ToolTip::IFWL_ToolTip(const IFWL_App* app, |
| 20 std::unique_ptr<CFWL_WidgetProperties> properties, | 21 std::unique_ptr<CFWL_WidgetProperties> properties, |
| 21 IFWL_Widget* pOuter) | 22 IFWL_Widget* pOuter) |
| 22 : IFWL_Form(app, std::move(properties), pOuter), | 23 : IFWL_Form(app, std::move(properties), pOuter), |
| 23 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine), | 24 m_dwTTOStyles(FDE_TTOSTYLE_SingleLine), |
| 24 m_iTTOAlign(FDE_TTOALIGNMENT_Center), | 25 m_iTTOAlign(FDE_TTOALIGNMENT_Center), |
| 25 m_pTimerInfoShow(nullptr), | 26 m_pTimerInfoShow(nullptr), |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 pToolTip->m_pTimerInfoShow = nullptr; | 195 pToolTip->m_pTimerInfoShow = nullptr; |
| 195 return; | 196 return; |
| 196 } | 197 } |
| 197 } | 198 } |
| 198 if (pToolTip->m_pTimerInfoHide == pTimerInfo && pToolTip->m_pTimerInfoHide) { | 199 if (pToolTip->m_pTimerInfoHide == pTimerInfo && pToolTip->m_pTimerInfoHide) { |
| 199 pToolTip->SetStates(FWL_WGTSTATE_Invisible, true); | 200 pToolTip->SetStates(FWL_WGTSTATE_Invisible, true); |
| 200 pToolTip->m_pTimerInfoHide->StopTimer(); | 201 pToolTip->m_pTimerInfoHide->StopTimer(); |
| 201 pToolTip->m_pTimerInfoHide = nullptr; | 202 pToolTip->m_pTimerInfoHide = nullptr; |
| 202 } | 203 } |
| 203 } | 204 } |
| OLD | NEW |