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

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

Issue 2559173002: Move xfa/fwl/core to xfa/fwl. (Closed)
Patch Set: 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/cfwl_scrollbar.cpp ('k') | xfa/fwl/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_CFWL_SPINBUTTON_H_
8 #define XFA_FWL_CORE_CFWL_SPINBUTTON_H_ 8 #define XFA_FWL_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/cfwl_timer.h"
13 #include "xfa/fwl/core/cfwl_widget.h" 13 #include "xfa/fwl/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_MessageMouse;
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;
(...skipping 17 matching lines...) Expand all
46 void DisableButton(); 46 void DisableButton();
47 bool IsUpButtonEnabled(); 47 bool IsUpButtonEnabled();
48 bool IsDownButtonEnabled(); 48 bool IsDownButtonEnabled();
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_MessageMouse* pMsg);
57 void OnLButtonUp(CFWL_MsgMouse* pMsg); 57 void OnLButtonUp(CFWL_MessageMouse* pMsg);
58 void OnMouseMove(CFWL_MsgMouse* pMsg); 58 void OnMouseMove(CFWL_MessageMouse* pMsg);
59 void OnMouseLeave(CFWL_MsgMouse* pMsg); 59 void OnMouseLeave(CFWL_MessageMouse* pMsg);
60 void OnKeyDown(CFWL_MsgKey* pMsg); 60 void OnKeyDown(CFWL_MessageKey* 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_CFWL_SPINBUTTON_H_
OLDNEW
« no previous file with comments | « xfa/fwl/cfwl_scrollbar.cpp ('k') | xfa/fwl/cfwl_spinbutton.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698