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

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

Issue 2432423002: Merge the CFWL_*Imp classes into the IFWL_* classes. (Closed)
Patch Set: Review feedback Created 4 years, 2 months 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 | « xfa/fwl/basewidget/ifwl_spinbutton.h ('k') | xfa/fwl/core/cfwl_message.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FWL_BASEWIDGET_IFWL_TOOLTIP_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_TOOLTIP_H_
9
10 #include "xfa/fwl/core/ifwl_form.h"
11
12 class CFWL_WidgetImpProperties;
13 class IFWL_ToolTip;
14
15 #define FWL_CLASS_ToolTip L"FWL_TOOLTIP"
16 #define FWL_STYLEEXT_TTP_Rectangle (0L << 3)
17 #define FWL_STYLEEXT_TTP_RoundCorner (1L << 3)
18 #define FWL_STYLEEXT_TTP_Balloon (1L << 4)
19 #define FWL_STYLEEXT_TTP_Multiline (1L << 5)
20 #define FWL_STYLEEXT_TTP_NoAnchor (1L << 6)
21
22 class IFWL_ToolTipDP : public IFWL_DataProvider {
23 public:
24 // IFWL_DataProvider
25 FWL_Error GetCaption(IFWL_Widget* pWidget,
26 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 {
35 public:
36 static IFWL_ToolTip* Create(const CFWL_WidgetImpProperties& properties,
37 IFWL_Widget* pOuter);
38
39 void SetAnchor(const CFX_RectF& rtAnchor);
40 void Show();
41 void Hide();
42
43 protected:
44 IFWL_ToolTip();
45 };
46
47 #endif // XFA_FWL_BASEWIDGET_IFWL_TOOLTIP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/ifwl_spinbutton.h ('k') | xfa/fwl/core/cfwl_message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698