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

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

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

Powered by Google App Engine
This is Rietveld 408576698