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

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

Issue 2557103002: Cleanup FWL default values part II. (Closed)
Patch Set: Unused 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
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 IsButtonEnabled(bool bUp);
49 void DrawUpButton(CFX_Graphics* pGraphics, 49 void DrawUpButton(CFX_Graphics* pGraphics,
50 IFWL_ThemeProvider* pTheme, 50 IFWL_ThemeProvider* pTheme,
51 const CFX_Matrix* pMatrix); 51 const CFX_Matrix* pMatrix);
52 void DrawDownButton(CFX_Graphics* pGraphics, 52 void DrawDownButton(CFX_Graphics* pGraphics,
53 IFWL_ThemeProvider* pTheme, 53 IFWL_ThemeProvider* pTheme,
54 const CFX_Matrix* pMatrix); 54 const CFX_Matrix* pMatrix);
55 void OnFocusChanged(CFWL_Message* pMsg, bool bSet); 55 void OnFocusChanged(CFWL_Message* pMsg, bool bSet);
56 void OnLButtonDown(CFWL_MsgMouse* pMsg); 56 void OnLButtonDown(CFWL_MsgMouse* pMsg);
57 void OnLButtonUp(CFWL_MsgMouse* pMsg); 57 void OnLButtonUp(CFWL_MsgMouse* pMsg);
58 void OnMouseMove(CFWL_MsgMouse* pMsg); 58 void OnMouseMove(CFWL_MsgMouse* pMsg);
59 void OnMouseLeave(CFWL_MsgMouse* pMsg); 59 void OnMouseLeave(CFWL_MsgMouse* pMsg);
60 void OnKeyDown(CFWL_MsgKey* pMsg); 60 void OnKeyDown(CFWL_MsgKey* pMsg);
61 61
62 CFX_RectF m_rtClient; 62 CFX_RectF m_rtClient;
63 CFX_RectF m_rtUpButton; 63 CFX_RectF m_rtUpButton;
64 CFX_RectF m_rtDnButton; 64 CFX_RectF m_rtDnButton;
65 uint32_t m_dwUpState; 65 uint32_t m_dwUpState;
66 uint32_t m_dwDnState; 66 uint32_t m_dwDnState;
67 int32_t m_iButtonIndex; 67 int32_t m_iButtonIndex;
68 bool m_bLButtonDwn; 68 bool m_bLButtonDwn;
69 CFWL_TimerInfo* m_pTimerInfo; 69 CFWL_TimerInfo* m_pTimerInfo;
70 CFWL_SpinButton::Timer m_Timer; 70 CFWL_SpinButton::Timer m_Timer;
71 }; 71 };
72 72
73 #endif // XFA_FWL_CORE_CFWL_SPINBUTTON_H_ 73 #endif // XFA_FWL_CORE_CFWL_SPINBUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698