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

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

Issue 1453473002: FWL refcounts never incremented (part 2). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Comments in #27 and #28 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_CHECKBOX_IMP_H 7 #ifndef _FWL_CHECKBOX_IMP_H
8 #define _FWL_CHECKBOX_IMP_H 8 #define _FWL_CHECKBOX_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 CFWL_CheckBoxImp; 13 class CFWL_CheckBoxImp;
14 class CFWL_CheckBoxImpDelegate; 14 class CFWL_CheckBoxImpDelegate;
15 class CFWL_CheckBoxImp : public CFWL_WidgetImp { 15 class CFWL_CheckBoxImp : public CFWL_WidgetImp {
16 public: 16 public:
17 CFWL_CheckBoxImp(IFWL_Widget* pOuter = NULL);
18 CFWL_CheckBoxImp(const CFWL_WidgetImpProperties& properties, 17 CFWL_CheckBoxImp(const CFWL_WidgetImpProperties& properties,
19 IFWL_Widget* pOuter = NULL); 18 IFWL_Widget* pOuter);
20 ~CFWL_CheckBoxImp(); 19 ~CFWL_CheckBoxImp();
21 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; 20 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const;
22 virtual FX_DWORD GetClassID() const; 21 virtual FX_DWORD GetClassID() const;
23 virtual FWL_ERR Initialize(); 22 virtual FWL_ERR Initialize();
24 virtual FWL_ERR Finalize(); 23 virtual FWL_ERR Finalize();
25 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 24 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
26 virtual FWL_ERR Update(); 25 virtual FWL_ERR Update();
27 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics, 26 virtual FWL_ERR DrawWidget(CFX_Graphics* pGraphics,
28 const CFX_Matrix* pMatrix = NULL); 27 const CFX_Matrix* pMatrix = NULL);
29 virtual int32_t GetCheckState(); 28 virtual int32_t GetCheckState();
(...skipping 24 matching lines...) Expand all
54 void OnActivate(CFWL_Message* pMsg); 53 void OnActivate(CFWL_Message* pMsg);
55 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE); 54 void OnFocusChanged(CFWL_Message* pMsg, FX_BOOL bSet = TRUE);
56 void OnLButtonDown(CFWL_MsgMouse* pMsg); 55 void OnLButtonDown(CFWL_MsgMouse* pMsg);
57 void OnLButtonUp(CFWL_MsgMouse* pMsg); 56 void OnLButtonUp(CFWL_MsgMouse* pMsg);
58 void OnMouseMove(CFWL_MsgMouse* pMsg); 57 void OnMouseMove(CFWL_MsgMouse* pMsg);
59 void OnMouseLeave(CFWL_MsgMouse* pMsg); 58 void OnMouseLeave(CFWL_MsgMouse* pMsg);
60 void OnKeyDown(CFWL_MsgKey* pMsg); 59 void OnKeyDown(CFWL_MsgKey* pMsg);
61 CFWL_CheckBoxImp* m_pOwner; 60 CFWL_CheckBoxImp* m_pOwner;
62 }; 61 };
63 #endif 62 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698