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

Side by Side Diff: xfa/include/fwl/lightwidget/widget.h

Issue 1453473002: FWL refcounts never incremented (part 2). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 1 month 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_WIDGET_LIGHT_H 7 #ifndef _FWL_WIDGET_LIGHT_H
8 #define _FWL_WIDGET_LIGHT_H 8 #define _FWL_WIDGET_LIGHT_H
9 class CFWL_WidgetMgr; 9 class CFWL_WidgetMgr;
10 class CFWL_Message; 10 class CFWL_Message;
(...skipping 19 matching lines...) Expand all
30 FX_DWORD m_dwStyles; 30 FX_DWORD m_dwStyles;
31 FX_DWORD m_dwStyleExes; 31 FX_DWORD m_dwStyleExes;
32 FX_DWORD m_dwStates; 32 FX_DWORD m_dwStates;
33 CFWL_Widget* m_pParent; 33 CFWL_Widget* m_pParent;
34 CFWL_Widget* m_pOwner; 34 CFWL_Widget* m_pOwner;
35 }; 35 };
36 class CFWL_Widget { 36 class CFWL_Widget {
37 public: 37 public:
38 IFWL_Widget* GetWidget(); 38 IFWL_Widget* GetWidget();
39 FX_DWORD Release(); 39 FX_DWORD Release();
40 CFWL_Widget* Retain();
41 FX_DWORD GetRefCount() const; 40 FX_DWORD GetRefCount() const;
42 FWL_ERR GetClassName(CFX_WideString& wsClass) const; 41 FWL_ERR GetClassName(CFX_WideString& wsClass) const;
43 FX_DWORD GetClassID() const; 42 FX_DWORD GetClassID() const;
44 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const; 43 virtual FX_BOOL IsInstance(const CFX_WideStringC& wsClass) const;
45 44
46 protected: 45 protected:
47 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL); 46 FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL);
48 47
49 public: 48 public:
50 FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 49 FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 class CFWL_WidgetDelegate { 95 class CFWL_WidgetDelegate {
97 public: 96 public:
98 CFWL_WidgetDelegate(); 97 CFWL_WidgetDelegate();
99 virtual ~CFWL_WidgetDelegate(); 98 virtual ~CFWL_WidgetDelegate();
100 virtual int32_t OnProcessMessage(CFWL_Message* pMessage); 99 virtual int32_t OnProcessMessage(CFWL_Message* pMessage);
101 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent); 100 virtual FWL_ERR OnProcessEvent(CFWL_Event* pEvent);
102 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics, 101 virtual FWL_ERR OnDrawWidget(CFX_Graphics* pGraphics,
103 const CFX_Matrix* pMatrix = NULL); 102 const CFX_Matrix* pMatrix = NULL);
104 }; 103 };
105 #endif 104 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698