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 |
11 #include "xfa/fwl/core/fwl_formimp.h" | 11 #include "xfa/fwl/core/fwl_formimp.h" |
12 #include "xfa/fwl/core/fwl_noteimp.h" | 12 #include "xfa/fwl/core/fwl_noteimp.h" |
13 #include "xfa/fwl/core/fwl_targetimp.h" | |
14 #include "xfa/fwl/core/fwl_threadimp.h" | |
15 #include "xfa/fwl/core/fwl_widgetimp.h" | 13 #include "xfa/fwl/core/fwl_widgetimp.h" |
16 | 14 |
17 CFWL_ToolTip* CFWL_ToolTip::Create() { | 15 CFWL_ToolTip* CFWL_ToolTip::Create() { |
18 return new CFWL_ToolTip; | 16 return new CFWL_ToolTip; |
19 } | 17 } |
20 | 18 |
21 FWL_ERR CFWL_ToolTip::Initialize(const CFWL_WidgetProperties* pProperties) { | 19 FWL_ERR CFWL_ToolTip::Initialize(const CFWL_WidgetProperties* pProperties) { |
22 if (m_pIface) | 20 if (m_pIface) |
23 return FWL_ERR_Indefinite; | 21 return FWL_ERR_Indefinite; |
24 if (pProperties) { | 22 if (pProperties) { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 } | 122 } |
125 | 123 |
126 CFX_SizeF CFWL_ToolTip::CFWL_ToolTipDP::GetToolTipIconSize( | 124 CFX_SizeF CFWL_ToolTip::CFWL_ToolTipDP::GetToolTipIconSize( |
127 IFWL_Widget* pWidget) { | 125 IFWL_Widget* pWidget) { |
128 return m_fIconSize; | 126 return m_fIconSize; |
129 } | 127 } |
130 | 128 |
131 CFX_RectF CFWL_ToolTip::CFWL_ToolTipDP::GetAnchor() { | 129 CFX_RectF CFWL_ToolTip::CFWL_ToolTipDP::GetAnchor() { |
132 return m_fAnchor; | 130 return m_fAnchor; |
133 } | 131 } |
OLD | NEW |