From 77221d4b4288ada80e34464ef4a402ea232b402b Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 8 Dec 2015 11:20:08 -0800 Subject: FWL refcounts never incremented (part 1) BUG=pdfium:282 R=thestig@chromium.org Review URL: https://codereview.chromium.org/1509203002 . --- xfa/include/fwl/lightwidget/widget.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'xfa/include/fwl/lightwidget/widget.h') diff --git a/xfa/include/fwl/lightwidget/widget.h b/xfa/include/fwl/lightwidget/widget.h index 97096a783c..e884db38ad 100644 --- a/xfa/include/fwl/lightwidget/widget.h +++ b/xfa/include/fwl/lightwidget/widget.h @@ -41,10 +41,8 @@ class CFWL_WidgetProperties { class CFWL_Widget { public: + virtual ~CFWL_Widget(); IFWL_Widget* GetWidget(); - FX_DWORD Release(); - CFWL_Widget* Retain(); - FX_DWORD GetRefCount() const; FWL_ERR GetClassName(CFX_WideString& wsClass) const; FX_DWORD GetClassID() const; virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; @@ -85,7 +83,7 @@ class CFWL_Widget { FWL_ERR SetFocus(FX_BOOL bFocus); FWL_ERR SetGrab(FX_BOOL bSet); CFWL_Widget(); - virtual ~CFWL_Widget(); + void RegisterEventTarget(CFWL_Widget* pEventSource = NULL, FX_DWORD dwFilter = FWL_EVENT_ALL_MASK); void DispatchEvent(CFWL_Event* pEvent); -- cgit v1.2.3