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

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

Issue 1901183002: Remove CFWL_Note. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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/ifwl_monthcalendar.h ('k') | xfa/fwl/core/cfwl_event.h » ('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_IFWL_SPINBUTTON_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_SPINBUTTON_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_SPINBUTTON_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_SPINBUTTON_H_
9 9
10 #include "xfa/fwl/core/fwl_widgetimp.h" 10 #include "xfa/fwl/core/fwl_widgetimp.h"
11 11
12 #define FWL_CLASS_SpinButton L"FWL_SPINBUTTON" 12 #define FWL_CLASS_SpinButton L"FWL_SPINBUTTON"
13 #define FWL_CLASSHASH_SpinButton 3793043646 13 #define FWL_CLASSHASH_SpinButton 3793043646
14 #define FWL_STYLEEXE_SPB_Vert (1L << 0) 14 #define FWL_STYLEEXE_SPB_Vert (1L << 0)
15 #define FWL_WGTHITTEST_SPB_UpButton (FWL_WGTHITTEST_MAX + 1) 15 #define FWL_WGTHITTEST_SPB_UpButton (FWL_WGTHITTEST_MAX + 1)
16 #define FWL_WGTHITTEST_SPB_DownButton (FWL_WGTHITTEST_MAX + 2) 16 #define FWL_WGTHITTEST_SPB_DownButton (FWL_WGTHITTEST_MAX + 2)
17 // TODO(dsinclair): Event hash is hash of string, cleanup. pdfium:474
18 #define FWL_EVTHASH_SPB_Click 2927651187
19 17
20 BEGIN_FWL_EVENT_DEF(CFWL_EvtSpbClick, FWL_EVTHASH_SPB_Click) 18 BEGIN_FWL_EVENT_DEF(CFWL_EvtSpbClick, CFWL_EventType::Click)
21 FX_BOOL m_bUp; 19 FX_BOOL m_bUp;
22 END_FWL_EVENT_DEF 20 END_FWL_EVENT_DEF
23 21
24 class IFWL_SpinButton : public IFWL_Widget { 22 class IFWL_SpinButton : public IFWL_Widget {
25 public: 23 public:
26 static IFWL_SpinButton* Create(const CFWL_WidgetImpProperties& properties, 24 static IFWL_SpinButton* Create(const CFWL_WidgetImpProperties& properties,
27 IFWL_Widget* pOuter); 25 IFWL_Widget* pOuter);
28 26
29 FWL_ERR EnableButton(FX_BOOL bEnable, FX_BOOL bUp = TRUE); 27 FWL_ERR EnableButton(FX_BOOL bEnable, FX_BOOL bUp = TRUE);
30 FX_BOOL IsButtonEnable(FX_BOOL bUp = TRUE); 28 FX_BOOL IsButtonEnable(FX_BOOL bUp = TRUE);
31 29
32 protected: 30 protected:
33 IFWL_SpinButton(); 31 IFWL_SpinButton();
34 }; 32 };
35 33
36 #endif // XFA_FWL_BASEWIDGET_IFWL_SPINBUTTON_H_ 34 #endif // XFA_FWL_BASEWIDGET_IFWL_SPINBUTTON_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/ifwl_monthcalendar.h ('k') | xfa/fwl/core/cfwl_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698