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/include/fwl/lightwidget/tooltipctrl.h" | 7 #include "xfa/include/fwl/lightwidget/tooltipctrl.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "xfa/src/fwl/src/core/fwl_formimp.h" | 11 #include "xfa/src/fwl/core/fwl_formimp.h" |
12 #include "xfa/src/fwl/src/core/fwl_noteimp.h" | 12 #include "xfa/src/fwl/core/fwl_noteimp.h" |
13 #include "xfa/src/fwl/src/core/fwl_panelimp.h" | 13 #include "xfa/src/fwl/core/fwl_panelimp.h" |
14 #include "xfa/src/fwl/src/core/fwl_targetimp.h" | 14 #include "xfa/src/fwl/core/fwl_targetimp.h" |
15 #include "xfa/src/fwl/src/core/fwl_threadimp.h" | 15 #include "xfa/src/fwl/core/fwl_threadimp.h" |
16 #include "xfa/src/fwl/src/core/fwl_widgetimp.h" | 16 #include "xfa/src/fwl/core/fwl_widgetimp.h" |
17 | 17 |
18 CFWL_ToolTip* CFWL_ToolTip::Create() { | 18 CFWL_ToolTip* CFWL_ToolTip::Create() { |
19 return new CFWL_ToolTip; | 19 return new CFWL_ToolTip; |
20 } | 20 } |
21 FWL_ERR CFWL_ToolTip::Initialize(const CFWL_WidgetProperties* pProperties) { | 21 FWL_ERR CFWL_ToolTip::Initialize(const CFWL_WidgetProperties* pProperties) { |
22 if (m_pIface) | 22 if (m_pIface) |
23 return FWL_ERR_Indefinite; | 23 return FWL_ERR_Indefinite; |
24 if (pProperties) { | 24 if (pProperties) { |
25 *m_pProperties = *pProperties; | 25 *m_pProperties = *pProperties; |
26 } | 26 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 IFWL_Widget* pWidget) { | 102 IFWL_Widget* pWidget) { |
103 return m_pBitmap; | 103 return m_pBitmap; |
104 } | 104 } |
105 CFX_SizeF CFWL_ToolTip::CFWL_ToolTipDP::GetToolTipIconSize( | 105 CFX_SizeF CFWL_ToolTip::CFWL_ToolTipDP::GetToolTipIconSize( |
106 IFWL_Widget* pWidget) { | 106 IFWL_Widget* pWidget) { |
107 return m_fIconSize; | 107 return m_fIconSize; |
108 } | 108 } |
109 CFX_RectF CFWL_ToolTip::CFWL_ToolTipDP::GetAnchor() { | 109 CFX_RectF CFWL_ToolTip::CFWL_ToolTipDP::GetAnchor() { |
110 return m_fAnchor; | 110 return m_fAnchor; |
111 } | 111 } |
OLD | NEW |