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

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

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
Patch Set: Created 4 years, 7 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/core/ifwl_timer.h ('k') | xfa/fwl/core/ifwl_widget.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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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_TOOLTIPTARGET_H_ 7 #ifndef XFA_FWL_CORE_IFWL_TOOLTIPTARGET_H_
8 #define XFA_FWL_CORE_IFWL_TOOLTIPTARGET_H_ 8 #define XFA_FWL_CORE_IFWL_TOOLTIPTARGET_H_
9 9
10 #include "core/fxcrt/include/fx_coordinates.h" 10 #include "core/fxcrt/include/fx_coordinates.h"
11 #include "core/fxcrt/include/fx_string.h" 11 #include "core/fxcrt/include/fx_string.h"
12 #include "core/fxcrt/include/fx_system.h" 12 #include "core/fxcrt/include/fx_system.h"
13 #include "xfa/fwl/core/fwl_error.h" 13 #include "xfa/fwl/core/fwl_error.h"
14 14
15 class CFX_Graphics; 15 class CFX_Graphics;
16 class IFWL_Widget; 16 class IFWL_Widget;
17 17
18 class IFWL_ToolTipTarget { 18 class IFWL_ToolTipTarget {
19 public: 19 public:
20 virtual ~IFWL_ToolTipTarget() {} 20 virtual ~IFWL_ToolTipTarget() {}
21 virtual IFWL_Widget* GetWidget() = 0; 21 virtual IFWL_Widget* GetWidget() = 0;
22 virtual FX_BOOL IsShowed() = 0; 22 virtual FX_BOOL IsShowed() = 0;
23 virtual FWL_ERR DrawToolTip(CFX_Graphics* pGraphics, 23 virtual FWL_Error DrawToolTip(CFX_Graphics* pGraphics,
24 const CFX_Matrix* pMatrix, 24 const CFX_Matrix* pMatrix,
25 IFWL_Widget* pToolTip) = 0; 25 IFWL_Widget* pToolTip) = 0;
26 virtual FX_BOOL UseDefaultTheme() = 0; 26 virtual FX_BOOL UseDefaultTheme() = 0;
27 virtual FWL_ERR GetCaption(CFX_WideString& wsCaption) = 0; 27 virtual FWL_Error GetCaption(CFX_WideString& wsCaption) = 0;
28 virtual FWL_ERR GetToolTipSize(CFX_SizeF& sz) = 0; 28 virtual FWL_Error GetToolTipSize(CFX_SizeF& sz) = 0;
29 virtual FWL_ERR GetToolTipPos(CFX_PointF& pt) { return FWL_ERR_Indefinite; } 29 virtual FWL_Error GetToolTipPos(CFX_PointF& pt) {
30 return FWL_Error::Indefinite;
31 }
30 }; 32 };
31 33
32 #endif // XFA_FWL_CORE_IFWL_TOOLTIPTARGET_H_ 34 #endif // XFA_FWL_CORE_IFWL_TOOLTIPTARGET_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_timer.h ('k') | xfa/fwl/core/ifwl_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698