Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: xfa/fwl/core/ifwl_tooltip.h

Issue 2511183002: Remove IFWL_ToolTipDP (Closed)
Patch Set: Rebase to master Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | xfa/fwl/core/ifwl_tooltip.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
16 15
17 #define FWL_STYLEEXT_TTP_Rectangle (0L << 3) 16 #define FWL_STYLEEXT_TTP_Rectangle (0L << 3)
18 #define FWL_STYLEEXT_TTP_RoundCorner (1L << 3) 17 #define FWL_STYLEEXT_TTP_RoundCorner (1L << 3)
19 #define FWL_STYLEEXT_TTP_Balloon (1L << 4) 18 #define FWL_STYLEEXT_TTP_Balloon (1L << 4)
20 #define FWL_STYLEEXT_TTP_Multiline (1L << 5) 19 #define FWL_STYLEEXT_TTP_Multiline (1L << 5)
21 #define FWL_STYLEEXT_TTP_NoAnchor (1L << 6) 20 #define FWL_STYLEEXT_TTP_NoAnchor (1L << 6)
22 21
23 class IFWL_ToolTipDP : public IFWL_DataProvider {
24 public:
25 // IFWL_DataProvider
26 void GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) override = 0;
27
28 virtual int32_t GetInitialDelay(IFWL_Widget* pWidget) = 0;
29 virtual int32_t GetAutoPopDelay(IFWL_Widget* pWidget) = 0;
30 virtual CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) = 0;
31 virtual CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) = 0;
32 };
33
34 class IFWL_ToolTip : public IFWL_Form { 22 class IFWL_ToolTip : public IFWL_Form {
35 public: 23 public:
36 IFWL_ToolTip(const IFWL_App* app, 24 IFWL_ToolTip(const IFWL_App* app,
37 std::unique_ptr<CFWL_WidgetProperties> properties, 25 std::unique_ptr<CFWL_WidgetProperties> properties,
38 IFWL_Widget* pOuter); 26 IFWL_Widget* pOuter);
39 ~IFWL_ToolTip() override; 27 ~IFWL_ToolTip() override;
40 28
41 // IFWL_Widget 29 // IFWL_Widget
42 FWL_Type GetClassID() const override; 30 FWL_Type GetClassID() const override;
43 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 31 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override;
(...skipping 29 matching lines...) Expand all
73 uint32_t m_dwTTOStyles; 61 uint32_t m_dwTTOStyles;
74 int32_t m_iTTOAlign; 62 int32_t m_iTTOAlign;
75 CFX_RectF m_rtAnchor; 63 CFX_RectF m_rtAnchor;
76 IFWL_TimerInfo* m_pTimerInfoShow; 64 IFWL_TimerInfo* m_pTimerInfoShow;
77 IFWL_TimerInfo* m_pTimerInfoHide; 65 IFWL_TimerInfo* m_pTimerInfoHide;
78 IFWL_ToolTip::Timer m_TimerShow; 66 IFWL_ToolTip::Timer m_TimerShow;
79 IFWL_ToolTip::Timer m_TimerHide; 67 IFWL_ToolTip::Timer m_TimerHide;
80 }; 68 };
81 69
82 #endif // XFA_FWL_CORE_IFWL_TOOLTIP_H_ 70 #endif // XFA_FWL_CORE_IFWL_TOOLTIP_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fwl/core/ifwl_tooltip.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698