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