| 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_FWL_NOTEIMP_H_ | 7 #ifndef XFA_FWL_CORE_FWL_NOTEIMP_H_ |
| 8 #define XFA_FWL_CORE_FWL_NOTEIMP_H_ | 8 #define XFA_FWL_CORE_FWL_NOTEIMP_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 CFWL_NoteDriver* m_pNoteDriver; | 126 CFWL_NoteDriver* m_pNoteDriver; |
| 127 bool m_bInvalid; | 127 bool m_bInvalid; |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 class CFWL_ToolTipContainer final : public IFWL_ToolTipDP { | 130 class CFWL_ToolTipContainer final : public IFWL_ToolTipDP { |
| 131 public: | 131 public: |
| 132 static CFWL_ToolTipContainer* getInstance(); | 132 static CFWL_ToolTipContainer* getInstance(); |
| 133 static void DeleteInstance(); | 133 static void DeleteInstance(); |
| 134 | 134 |
| 135 // IFWL_ToolTipDP | 135 // IFWL_ToolTipDP |
| 136 FWL_Error GetCaption(IFWL_Widget* pWidget, | 136 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override; |
| 137 CFX_WideString& wsCaption) override; | |
| 138 int32_t GetInitialDelay(IFWL_Widget* pWidget) override; | 137 int32_t GetInitialDelay(IFWL_Widget* pWidget) override; |
| 139 int32_t GetAutoPopDelay(IFWL_Widget* pWidget) override; | 138 int32_t GetAutoPopDelay(IFWL_Widget* pWidget) override; |
| 140 CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) override; | 139 CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) override; |
| 141 CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) override; | 140 CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) override; |
| 142 | 141 |
| 143 protected: | 142 protected: |
| 144 CFWL_ToolTipContainer(); | 143 CFWL_ToolTipContainer(); |
| 145 ~CFWL_ToolTipContainer() override; | 144 ~CFWL_ToolTipContainer() override; |
| 146 | 145 |
| 147 CFX_RectF GetAnchor(); | 146 CFX_RectF GetAnchor(); |
| 148 | 147 |
| 149 private: | 148 private: |
| 150 static CFWL_ToolTipContainer* s_pInstance; | 149 static CFWL_ToolTipContainer* s_pInstance; |
| 151 CFX_WideString m_wsCaption; | 150 CFX_WideString m_wsCaption; |
| 152 int32_t m_nInitDelayTime; | 151 int32_t m_nInitDelayTime; |
| 153 int32_t m_nAutoPopDelayTime; | 152 int32_t m_nAutoPopDelayTime; |
| 154 CFX_RectF m_fAnchor; | 153 CFX_RectF m_fAnchor; |
| 155 }; | 154 }; |
| 156 | 155 |
| 157 #endif // XFA_FWL_CORE_FWL_NOTEIMP_H_ | 156 #endif // XFA_FWL_CORE_FWL_NOTEIMP_H_ |
| OLD | NEW |