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

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

Issue 2557103002: Cleanup FWL default values part II. (Closed)
Patch Set: Rebase to master Created 4 years 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/cfwl_scrollbar.cpp ('k') | xfa/fwl/core/cfwl_spinbutton.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_CORE_CFWL_SPINBUTTON_H_ 7 #ifndef XFA_FWL_CORE_CFWL_SPINBUTTON_H_
8 #define XFA_FWL_CORE_CFWL_SPINBUTTON_H_ 8 #define XFA_FWL_CORE_CFWL_SPINBUTTON_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 26 matching lines...) Expand all
37 private: 37 private:
38 class Timer : public CFWL_Timer { 38 class Timer : public CFWL_Timer {
39 public: 39 public:
40 explicit Timer(CFWL_SpinButton* pToolTip); 40 explicit Timer(CFWL_SpinButton* pToolTip);
41 ~Timer() override {} 41 ~Timer() override {}
42 42
43 void Run(CFWL_TimerInfo* pTimerInfo) override; 43 void Run(CFWL_TimerInfo* pTimerInfo) override;
44 }; 44 };
45 friend class CFWL_SpinButton::Timer; 45 friend class CFWL_SpinButton::Timer;
46 46
47 void EnableButton(bool bEnable, bool bUp = true); 47 void DisableButton();
48 bool IsButtonEnabled(bool bUp = true); 48 bool IsUpButtonEnabled();
49 bool IsDownButtonEnabled();
49 void DrawUpButton(CFX_Graphics* pGraphics, 50 void DrawUpButton(CFX_Graphics* pGraphics,
50 IFWL_ThemeProvider* pTheme, 51 IFWL_ThemeProvider* pTheme,
51 const CFX_Matrix* pMatrix); 52 const CFX_Matrix* pMatrix);
52 void DrawDownButton(CFX_Graphics* pGraphics, 53 void DrawDownButton(CFX_Graphics* pGraphics,
53 IFWL_ThemeProvider* pTheme, 54 IFWL_ThemeProvider* pTheme,
54 const CFX_Matrix* pMatrix); 55 const CFX_Matrix* pMatrix);
55 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); 56 void OnFocusChanged(CFWL_Message* pMsg, bool bSet);
56 void OnLButtonDown(CFWL_MsgMouse* pMsg); 57 void OnLButtonDown(CFWL_MsgMouse* pMsg);
57 void OnLButtonUp(CFWL_MsgMouse* pMsg); 58 void OnLButtonUp(CFWL_MsgMouse* pMsg);
58 void OnMouseMove(CFWL_MsgMouse* pMsg); 59 void OnMouseMove(CFWL_MsgMouse* pMsg);
59 void OnMouseLeave(CFWL_MsgMouse* pMsg); 60 void OnMouseLeave(CFWL_MsgMouse* pMsg);
60 void OnKeyDown(CFWL_MsgKey* pMsg); 61 void OnKeyDown(CFWL_MsgKey* pMsg);
61 62
62 CFX_RectF m_rtClient; 63 CFX_RectF m_rtClient;
63 CFX_RectF m_rtUpButton; 64 CFX_RectF m_rtUpButton;
64 CFX_RectF m_rtDnButton; 65 CFX_RectF m_rtDnButton;
65 uint32_t m_dwUpState; 66 uint32_t m_dwUpState;
66 uint32_t m_dwDnState; 67 uint32_t m_dwDnState;
67 int32_t m_iButtonIndex; 68 int32_t m_iButtonIndex;
68 bool m_bLButtonDwn; 69 bool m_bLButtonDwn;
69 CFWL_TimerInfo* m_pTimerInfo; 70 CFWL_TimerInfo* m_pTimerInfo;
70 CFWL_SpinButton::Timer m_Timer; 71 CFWL_SpinButton::Timer m_Timer;
71 }; 72 };
72 73
73 #endif // XFA_FWL_CORE_CFWL_SPINBUTTON_H_ 74 #endif // XFA_FWL_CORE_CFWL_SPINBUTTON_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_scrollbar.cpp ('k') | xfa/fwl/core/cfwl_spinbutton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698