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/lightwidget/cfwl_tooltip.h" | 7 #include "xfa/fwl/lightwidget/cfwl_tooltip.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 | 83 |
84 void CFWL_ToolTip::Hide() { | 84 void CFWL_ToolTip::Hide() { |
85 static_cast<IFWL_ToolTip*>(m_pIface)->Hide(); | 85 static_cast<IFWL_ToolTip*>(m_pIface)->Hide(); |
86 } | 86 } |
87 | 87 |
88 CFWL_ToolTip::CFWL_ToolTip() {} | 88 CFWL_ToolTip::CFWL_ToolTip() {} |
89 | 89 |
90 CFWL_ToolTip::~CFWL_ToolTip() {} | 90 CFWL_ToolTip::~CFWL_ToolTip() {} |
91 | 91 |
92 CFWL_ToolTip::CFWL_ToolTipDP::CFWL_ToolTipDP() : m_pBitmap(NULL) { | 92 CFWL_ToolTip::CFWL_ToolTipDP::CFWL_ToolTipDP() : m_pBitmap(nullptr) { |
93 m_wsCaption = L""; | 93 m_wsCaption = L""; |
94 m_nInitDelayTime = 500; | 94 m_nInitDelayTime = 500; |
95 m_nAutoPopDelayTime = 50000; | 95 m_nAutoPopDelayTime = 50000; |
96 m_fAnchor.Set(0.0, 0.0, 0.0, 0.0); | 96 m_fAnchor.Set(0.0, 0.0, 0.0, 0.0); |
97 } | 97 } |
98 | 98 |
99 FWL_Error CFWL_ToolTip::CFWL_ToolTipDP::GetCaption(IFWL_Widget* pWidget, | 99 FWL_Error CFWL_ToolTip::CFWL_ToolTipDP::GetCaption(IFWL_Widget* pWidget, |
100 CFX_WideString& wsCaption) { | 100 CFX_WideString& wsCaption) { |
101 wsCaption = m_wsCaption; | 101 wsCaption = m_wsCaption; |
102 return FWL_Error::Succeeded; | 102 return FWL_Error::Succeeded; |
(...skipping 13 matching lines...) Expand all Loading... |
116 } | 116 } |
117 | 117 |
118 CFX_SizeF CFWL_ToolTip::CFWL_ToolTipDP::GetToolTipIconSize( | 118 CFX_SizeF CFWL_ToolTip::CFWL_ToolTipDP::GetToolTipIconSize( |
119 IFWL_Widget* pWidget) { | 119 IFWL_Widget* pWidget) { |
120 return m_fIconSize; | 120 return m_fIconSize; |
121 } | 121 } |
122 | 122 |
123 CFX_RectF CFWL_ToolTip::CFWL_ToolTipDP::GetAnchor() { | 123 CFX_RectF CFWL_ToolTip::CFWL_ToolTipDP::GetAnchor() { |
124 return m_fAnchor; | 124 return m_fAnchor; |
125 } | 125 } |
OLD | NEW |