| 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 #ifndef XFA_FWL_CORE_IFWL_TOOLTIP_H_ | 7 #ifndef XFA_FWL_CORE_IFWL_TOOLTIP_H_ |
| 8 #define XFA_FWL_CORE_IFWL_TOOLTIP_H_ | 8 #define XFA_FWL_CORE_IFWL_TOOLTIP_H_ |
| 9 | 9 |
| 10 #include "xfa/fwl/core/ifwl_form.h" | 10 #include "xfa/fwl/core/ifwl_form.h" |
| 11 #include "xfa/fwl/core/ifwl_timer.h" | 11 #include "xfa/fwl/core/ifwl_timer.h" |
| 12 | 12 |
| 13 class CFWL_WidgetProperties; | 13 class CFWL_WidgetProperties; |
| 14 class IFWL_Widget; | 14 class IFWL_Widget; |
| 15 class CFWL_ToolTipImpDelegate; | 15 class CFWL_ToolTipImpDelegate; |
| 16 | 16 |
| 17 #define FWL_STYLEEXT_TTP_Rectangle (0L << 3) | 17 #define FWL_STYLEEXT_TTP_Rectangle (0L << 3) |
| 18 #define FWL_STYLEEXT_TTP_RoundCorner (1L << 3) | 18 #define FWL_STYLEEXT_TTP_RoundCorner (1L << 3) |
| 19 #define FWL_STYLEEXT_TTP_Balloon (1L << 4) | 19 #define FWL_STYLEEXT_TTP_Balloon (1L << 4) |
| 20 #define FWL_STYLEEXT_TTP_Multiline (1L << 5) | 20 #define FWL_STYLEEXT_TTP_Multiline (1L << 5) |
| 21 #define FWL_STYLEEXT_TTP_NoAnchor (1L << 6) | 21 #define FWL_STYLEEXT_TTP_NoAnchor (1L << 6) |
| 22 | 22 |
| 23 class IFWL_ToolTipDP : public IFWL_DataProvider { | 23 class IFWL_ToolTipDP : public IFWL_DataProvider { |
| 24 public: | 24 public: |
| 25 // IFWL_DataProvider | 25 // IFWL_DataProvider |
| 26 FWL_Error GetCaption(IFWL_Widget* pWidget, | 26 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override = 0; |
| 27 CFX_WideString& wsCaption) override = 0; | |
| 28 | 27 |
| 29 virtual int32_t GetInitialDelay(IFWL_Widget* pWidget) = 0; | 28 virtual int32_t GetInitialDelay(IFWL_Widget* pWidget) = 0; |
| 30 virtual int32_t GetAutoPopDelay(IFWL_Widget* pWidget) = 0; | 29 virtual int32_t GetAutoPopDelay(IFWL_Widget* pWidget) = 0; |
| 31 virtual CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) = 0; | 30 virtual CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) = 0; |
| 32 virtual CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) = 0; | 31 virtual CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) = 0; |
| 33 }; | 32 }; |
| 34 | 33 |
| 35 class IFWL_ToolTip : public IFWL_Form { | 34 class IFWL_ToolTip : public IFWL_Form { |
| 36 public: | 35 public: |
| 37 IFWL_ToolTip(const IFWL_App* app, | 36 IFWL_ToolTip(const IFWL_App* app, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 uint32_t m_dwTTOStyles; | 73 uint32_t m_dwTTOStyles; |
| 75 int32_t m_iTTOAlign; | 74 int32_t m_iTTOAlign; |
| 76 CFX_RectF m_rtAnchor; | 75 CFX_RectF m_rtAnchor; |
| 77 IFWL_TimerInfo* m_pTimerInfoShow; | 76 IFWL_TimerInfo* m_pTimerInfoShow; |
| 78 IFWL_TimerInfo* m_pTimerInfoHide; | 77 IFWL_TimerInfo* m_pTimerInfoHide; |
| 79 IFWL_ToolTip::Timer m_TimerShow; | 78 IFWL_ToolTip::Timer m_TimerShow; |
| 80 IFWL_ToolTip::Timer m_TimerHide; | 79 IFWL_ToolTip::Timer m_TimerHide; |
| 81 }; | 80 }; |
| 82 | 81 |
| 83 #endif // XFA_FWL_CORE_IFWL_TOOLTIP_H_ | 82 #endif // XFA_FWL_CORE_IFWL_TOOLTIP_H_ |
| OLD | NEW |