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

Side by Side Diff: xfa/include/fwl/basewidget/fwl_tooltipctrl.h

Issue 1722803002: Sort includes in xfa/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Review cleanups Created 4 years, 10 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/include/fwl/basewidget/fwl_spinbutton.h ('k') | xfa/include/fwl/core/fwl_form.h » ('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_INCLUDE_FWL_BASEWIDGET_FWL_TOOLTIPCTRL_H_ 7 #ifndef XFA_INCLUDE_FWL_BASEWIDGET_FWL_TOOLTIPCTRL_H_
8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_TOOLTIPCTRL_H_ 8 #define XFA_INCLUDE_FWL_BASEWIDGET_FWL_TOOLTIPCTRL_H_
9 9
10 #include "xfa/include/fwl/core/fwl_form.h"
11
10 class CFWL_WidgetImpProperties; 12 class CFWL_WidgetImpProperties;
11 class IFWL_Form;
12 class IFWL_ToolTipDP; 13 class IFWL_ToolTipDP;
13 class IFWL_ToolTip; 14 class IFWL_ToolTip;
15
14 #define FWL_CLASS_ToolTip L"FWL_TOOLTIP" 16 #define FWL_CLASS_ToolTip L"FWL_TOOLTIP"
15 #define FWL_CLASSHASH_ToolTip 1111984755 17 #define FWL_CLASSHASH_ToolTip 1111984755
16 #define FWL_STYLEEXT_TTP_Rectangle (0L << 3) 18 #define FWL_STYLEEXT_TTP_Rectangle (0L << 3)
17 #define FWL_STYLEEXT_TTP_RoundCorner (1L << 3) 19 #define FWL_STYLEEXT_TTP_RoundCorner (1L << 3)
18 #define FWL_STYLEEXT_TTP_Balloon (1L << 4) 20 #define FWL_STYLEEXT_TTP_Balloon (1L << 4)
19 #define FWL_STYLEEXT_TTP_Multiline (1L << 5) 21 #define FWL_STYLEEXT_TTP_Multiline (1L << 5)
20 #define FWL_STYLEEXT_TTP_NoAnchor (1L << 6) 22 #define FWL_STYLEEXT_TTP_NoAnchor (1L << 6)
21 #define FWL_PART_TTP_Border 1 23 #define FWL_PART_TTP_Border 1
22 #define FWL_PART_TTP_Background 2 24 #define FWL_PART_TTP_Background 2
23 #define FWL_PART_TTP_Caption 3 25 #define FWL_PART_TTP_Caption 3
26
24 class IFWL_ToolTipDP : public IFWL_DataProvider { 27 class IFWL_ToolTipDP : public IFWL_DataProvider {
25 public: 28 public:
26 virtual FWL_ERR GetCaption(IFWL_Widget* pWidget, 29 virtual FWL_ERR GetCaption(IFWL_Widget* pWidget,
27 CFX_WideString& wsCaption) = 0; 30 CFX_WideString& wsCaption) = 0;
28 virtual int32_t GetInitialDelay(IFWL_Widget* pWidget) = 0; 31 virtual int32_t GetInitialDelay(IFWL_Widget* pWidget) = 0;
29 virtual int32_t GetAutoPopDelay(IFWL_Widget* pWidget) = 0; 32 virtual int32_t GetAutoPopDelay(IFWL_Widget* pWidget) = 0;
30 virtual CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) = 0; 33 virtual CFX_DIBitmap* GetToolTipIcon(IFWL_Widget* pWidget) = 0;
31 virtual CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) = 0; 34 virtual CFX_SizeF GetToolTipIconSize(IFWL_Widget* pWidget) = 0;
32 }; 35 };
33 class IFWL_ToolTip : public IFWL_Form { 36 class IFWL_ToolTip : public IFWL_Form {
34 public: 37 public:
35 static IFWL_ToolTip* Create(const CFWL_WidgetImpProperties& properties, 38 static IFWL_ToolTip* Create(const CFWL_WidgetImpProperties& properties,
36 IFWL_Widget* pOuter); 39 IFWL_Widget* pOuter);
37 40
38 FWL_ERR SetAnchor(const CFX_RectF& rtAnchor); 41 FWL_ERR SetAnchor(const CFX_RectF& rtAnchor);
39 FWL_ERR Show(); 42 FWL_ERR Show();
40 FWL_ERR Hide(); 43 FWL_ERR Hide();
41 44
42 protected: 45 protected:
43 IFWL_ToolTip(); 46 IFWL_ToolTip();
44 }; 47 };
45 48
46 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_TOOLTIPCTRL_H_ 49 #endif // XFA_INCLUDE_FWL_BASEWIDGET_FWL_TOOLTIPCTRL_H_
OLDNEW
« no previous file with comments | « xfa/include/fwl/basewidget/fwl_spinbutton.h ('k') | xfa/include/fwl/core/fwl_form.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698