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

Side by Side Diff: xfa/src/fwl/src/basewidget/include/fwl_spinbuttonimp.h

Issue 1453473002: FWL refcounts never incremented (part 2). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Legal cast, it turns out. Created 5 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 _FWL_SPINBUTTON_IMP_H 7 #ifndef _FWL_SPINBUTTON_IMP_H
8 #define _FWL_SPINBUTTON_IMP_H 8 #define _FWL_SPINBUTTON_IMP_H
9 class CFWL_WidgetImp; 9 class CFWL_WidgetImp;
10 class CFWL_WidgetImpProperties; 10 class CFWL_WidgetImpProperties;
11 class CFWL_WidgetImpDelegate; 11 class CFWL_WidgetImpDelegate;
12 class IFWL_Widget; 12 class IFWL_Widget;
13 class IFWL_Timer; 13 class IFWL_Timer;
14 class CFWL_SpinButtonImp; 14 class CFWL_SpinButtonImp;
15 class CFWL_SpinButtonImpDelegate; 15 class CFWL_SpinButtonImpDelegate;
16 class CFWL_SpinButtonImp : public CFWL_WidgetImp, public IFWL_Timer { 16 class CFWL_SpinButtonImp : public CFWL_WidgetImp, public IFWL_Timer {
17 public: 17 public:
18 CFWL_SpinButtonImp(IFWL_Widget* pOuter = NULL);
19 CFWL_SpinButtonImp(const CFWL_WidgetImpProperties& properties, 18 CFWL_SpinButtonImp(const CFWL_WidgetImpProperties& properties,
20 IFWL_Widget* pOuter = NULL); 19 IFWL_Widget* pOuter);
21 ~CFWL_SpinButtonImp(); 20 ~CFWL_SpinButtonImp();
22 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; 21 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const;
23 virtual FX_DWORD GetClassID() const; 22 virtual FX_DWORD GetClassID() const;
24 virtual FWL_ERR Initialize(); 23 virtual FWL_ERR Initialize();
25 virtual FWL_ERR Finalize(); 24 virtual FWL_ERR Finalize();
26 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 25 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
27 virtual FWL_ERR Update(); 26 virtual FWL_ERR Update();
28 virtual FX_DWORD HitTest(FX_FLOAT fx, FX_FLOAT fy); 27 virtual FX_DWORD HitTest(FX_FLOAT fx, FX_FLOAT fy);
29 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, 28 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics,
30 const CFX_Matrix* pMatrix = NULL); 29 const CFX_Matrix* pMatrix = NULL);
(...skipping 29 matching lines...) Expand all
60 protected: 59 protected:
61 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 60 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
62 void OnLButtonDown(CFWL_MsgMouse* pMsg); 61 void OnLButtonDown(CFWL_MsgMouse* pMsg);
63 void OnLButtonUp(CFWL_MsgMouse* pMsg); 62 void OnLButtonUp(CFWL_MsgMouse* pMsg);
64 void OnMouseMove(CFWL_MsgMouse* pMsg); 63 void OnMouseMove(CFWL_MsgMouse* pMsg);
65 void OnMouseLeave(CFWL_MsgMouse* pMsg); 64 void OnMouseLeave(CFWL_MsgMouse* pMsg);
66 void OnKeyDown(CFWL_MsgKey* pMsg); 65 void OnKeyDown(CFWL_MsgKey* pMsg);
67 CFWL_SpinButtonImp* m_pOwner; 66 CFWL_SpinButtonImp* m_pOwner;
68 }; 67 };
69 #endif 68 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698