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

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

Issue 2556873004: Convert GetWidgetRect to return rect. (Closed)
Patch Set: Review feedback 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>
11 11
12 #include "xfa/fwl/core/cfwl_timer.h" 12 #include "xfa/fwl/core/cfwl_timer.h"
13 #include "xfa/fwl/core/cfwl_widget.h" 13 #include "xfa/fwl/core/cfwl_widget.h"
14 #include "xfa/fxfa/cxfa_eventparam.h" 14 #include "xfa/fxfa/cxfa_eventparam.h"
15 15
16 #define FWL_STYLEEXE_SPB_Vert (1L << 0) 16 #define FWL_STYLEEXE_SPB_Vert (1L << 0)
17 17
18 class CFWL_MsgMouse; 18 class CFWL_MsgMouse;
19 class CFWL_WidgetProperties; 19 class CFWL_WidgetProperties;
20 20
21 class CFWL_SpinButton : public CFWL_Widget { 21 class CFWL_SpinButton : public CFWL_Widget {
22 public: 22 public:
23 CFWL_SpinButton(const CFWL_App* app, 23 CFWL_SpinButton(const CFWL_App* app,
24 std::unique_ptr<CFWL_WidgetProperties> properties); 24 std::unique_ptr<CFWL_WidgetProperties> properties);
25 ~CFWL_SpinButton() override; 25 ~CFWL_SpinButton() override;
26 26
27 // CFWL_Widget 27 // CFWL_Widget
28 FWL_Type GetClassID() const override; 28 FWL_Type GetClassID() const override;
29 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize) override;
30 void Update() override; 29 void Update() override;
31 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override; 30 FWL_WidgetHit HitTest(FX_FLOAT fx, FX_FLOAT fy) override;
32 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override; 31 void DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) override;
33 void OnProcessMessage(CFWL_Message* pMessage) override; 32 void OnProcessMessage(CFWL_Message* pMessage) override;
34 void OnDrawWidget(CFX_Graphics* pGraphics, 33 void OnDrawWidget(CFX_Graphics* pGraphics,
35 const CFX_Matrix* pMatrix) override; 34 const CFX_Matrix* pMatrix) override;
36 35
37 private: 36 private:
38 class Timer : public CFWL_Timer { 37 class Timer : public CFWL_Timer {
39 public: 38 public:
(...skipping 25 matching lines...) Expand all
65 CFX_RectF m_rtDnButton; 64 CFX_RectF m_rtDnButton;
66 uint32_t m_dwUpState; 65 uint32_t m_dwUpState;
67 uint32_t m_dwDnState; 66 uint32_t m_dwDnState;
68 int32_t m_iButtonIndex; 67 int32_t m_iButtonIndex;
69 bool m_bLButtonDwn; 68 bool m_bLButtonDwn;
70 CFWL_TimerInfo* m_pTimerInfo; 69 CFWL_TimerInfo* m_pTimerInfo;
71 CFWL_SpinButton::Timer m_Timer; 70 CFWL_SpinButton::Timer m_Timer;
72 }; 71 };
73 72
74 #endif // XFA_FWL_CORE_CFWL_SPINBUTTON_H_ 73 #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