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

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

Issue 1948583002: Remove FWL_WGTHITTEST_* defines in favour of enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
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/basewidget/fwl_listboximp.cpp ('k') | xfa/fwl/basewidget/fwl_spinbuttonimp.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_BASEWIDGET_FWL_SPINBUTTONIMP_H_ 7 #ifndef XFA_FWL_BASEWIDGET_FWL_SPINBUTTONIMP_H_
8 #define XFA_FWL_BASEWIDGET_FWL_SPINBUTTONIMP_H_ 8 #define XFA_FWL_BASEWIDGET_FWL_SPINBUTTONIMP_H_
9 9
10 #include "xfa/fwl/core/fwl_widgetimp.h" 10 #include "xfa/fwl/core/fwl_widgetimp.h"
11 #include "xfa/fwl/core/ifwl_timer.h" 11 #include "xfa/fwl/core/ifwl_timer.h"
12 #include "xfa/fwl/core/ifwl_widget.h" 12 #include "xfa/fwl/core/ifwl_widget.h"
13 13
14 class CFWL_MsgMouse; 14 class CFWL_MsgMouse;
15 class CFWL_SpinButtonImpDelegate; 15 class CFWL_SpinButtonImpDelegate;
16 class CFWL_WidgetImpProperties; 16 class CFWL_WidgetImpProperties;
17 17
18 class CFWL_SpinButtonImp : public CFWL_WidgetImp, public IFWL_Timer { 18 class CFWL_SpinButtonImp : public CFWL_WidgetImp, public IFWL_Timer {
19 public: 19 public:
20 CFWL_SpinButtonImp(const CFWL_WidgetImpProperties& properties, 20 CFWL_SpinButtonImp(const CFWL_WidgetImpProperties& properties,
21 IFWL_Widget* pOuter); 21 IFWL_Widget* pOuter);
22 ~CFWL_SpinButtonImp(); 22 ~CFWL_SpinButtonImp();
23 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; 23 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const;
24 virtual uint32_t GetClassID() const; 24 virtual uint32_t GetClassID() const;
25 virtual FWL_ERR Initialize(); 25 virtual FWL_ERR Initialize();
26 virtual FWL_ERR Finalize(); 26 virtual FWL_ERR Finalize();
27 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 27 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
28 virtual FWL_ERR Update(); 28 virtual FWL_ERR Update();
29 virtual uint32_t HitTest(FX_FLOAT fx, FX_FLOAT fy); 29 virtual FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy);
30 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, 30 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics,
31 const CFX_Matrix* pMatrix = NULL); 31 const CFX_Matrix* pMatrix = NULL);
32 virtual int32_t Run(FWL_HTIMER hTimer); 32 virtual int32_t Run(FWL_HTIMER hTimer);
33 FWL_ERR EnableButton(FX_BOOL bEnable, FX_BOOL bUp = TRUE); 33 FWL_ERR EnableButton(FX_BOOL bEnable, FX_BOOL bUp = TRUE);
34 FX_BOOL IsButtonEnable(FX_BOOL bUp = TRUE); 34 FX_BOOL IsButtonEnable(FX_BOOL bUp = TRUE);
35 35
36 protected: 36 protected:
37 void DrawUpButton(CFX_Graphics* pGraphics, 37 void DrawUpButton(CFX_Graphics* pGraphics,
38 IFWL_ThemeProvider* pTheme, 38 IFWL_ThemeProvider* pTheme,
39 const CFX_Matrix* pMatrix); 39 const CFX_Matrix* pMatrix);
(...skipping 22 matching lines...) Expand all
62 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 62 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
63 void OnLButtonDown(CFWL_MsgMouse* pMsg); 63 void OnLButtonDown(CFWL_MsgMouse* pMsg);
64 void OnLButtonUp(CFWL_MsgMouse* pMsg); 64 void OnLButtonUp(CFWL_MsgMouse* pMsg);
65 void OnMouseMove(CFWL_MsgMouse* pMsg); 65 void OnMouseMove(CFWL_MsgMouse* pMsg);
66 void OnMouseLeave(CFWL_MsgMouse* pMsg); 66 void OnMouseLeave(CFWL_MsgMouse* pMsg);
67 void OnKeyDown(CFWL_MsgKey* pMsg); 67 void OnKeyDown(CFWL_MsgKey* pMsg);
68 CFWL_SpinButtonImp* m_pOwner; 68 CFWL_SpinButtonImp* m_pOwner;
69 }; 69 };
70 70
71 #endif // XFA_FWL_BASEWIDGET_FWL_SPINBUTTONIMP_H_ 71 #endif // XFA_FWL_BASEWIDGET_FWL_SPINBUTTONIMP_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_listboximp.cpp ('k') | xfa/fwl/basewidget/fwl_spinbuttonimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698