| 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" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 CFX_WideString& wsCaption) override = 0; | 28 CFX_WideString& wsCaption) override = 0; |
| 29 | 29 |
| 30 virtual int32_t GetInitialDelay(IFWL_Widget* pWidget) = 0; | 30 virtual int32_t GetInitialDelay(IFWL_Widget* pWidget) = 0; |
| 31 virtual int32_t GetAutoPopDelay(IFWL_Widget* pWidget) = 0; | 31 virtual int32_t GetAutoPopDelay(IFWL_Widget* pWidget) = 0; |
| 32 virtual CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) = 0; | 32 virtual CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) = 0; |
| 33 virtual CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) = 0; | 33 virtual CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) = 0; |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 class IFWL_ToolTip : public IFWL_Form { | 36 class IFWL_ToolTip : public IFWL_Form { |
| 37 public: | 37 public: |
| 38 static IFWL_ToolTip* Create(const CFWL_WidgetImpProperties& properties, | |
| 39 IFWL_Widget* pOuter); | |
| 40 | |
| 41 IFWL_ToolTip(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); | 38 IFWL_ToolTip(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter); |
| 42 ~IFWL_ToolTip() override; | 39 ~IFWL_ToolTip() override; |
| 43 | 40 |
| 44 // IFWL_Widget | 41 // IFWL_Widget |
| 45 FWL_Error GetClassName(CFX_WideString& wsClass) const override; | 42 FWL_Error GetClassName(CFX_WideString& wsClass) const override; |
| 46 FWL_Type GetClassID() const override; | 43 FWL_Type GetClassID() const override; |
| 47 FWL_Error Initialize() override; | 44 FWL_Error Initialize() override; |
| 48 FWL_Error Finalize() override; | 45 FWL_Error Finalize() override; |
| 49 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; | 46 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; |
| 50 FWL_Error Update() override; | 47 FWL_Error Update() override; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); | 102 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); |
| 106 void OnLButtonDown(CFWL_MsgMouse* pMsg); | 103 void OnLButtonDown(CFWL_MsgMouse* pMsg); |
| 107 void OnLButtonUp(CFWL_MsgMouse* pMsg); | 104 void OnLButtonUp(CFWL_MsgMouse* pMsg); |
| 108 void OnMouseMove(CFWL_MsgMouse* pMsg); | 105 void OnMouseMove(CFWL_MsgMouse* pMsg); |
| 109 void OnMouseLeave(CFWL_MsgMouse* pMsg); | 106 void OnMouseLeave(CFWL_MsgMouse* pMsg); |
| 110 void OnKeyDown(CFWL_MsgKey* pMsg); | 107 void OnKeyDown(CFWL_MsgKey* pMsg); |
| 111 IFWL_ToolTip* m_pOwner; | 108 IFWL_ToolTip* m_pOwner; |
| 112 }; | 109 }; |
| 113 | 110 |
| 114 #endif // XFA_FWL_CORE_IFWL_TOOLTIP_H_ | 111 #endif // XFA_FWL_CORE_IFWL_TOOLTIP_H_ |
| OLD | NEW |