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

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

Issue 1453473002: FWL refcounts never incremented (part 2). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Rebased past part1. 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_SCROLLBAR_IMP_H 7 #ifndef _FWL_SCROLLBAR_IMP_H
8 #define _FWL_SCROLLBAR_IMP_H 8 #define _FWL_SCROLLBAR_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 IFWL_TimerDelegate; 14 class IFWL_TimerDelegate;
15 class CFWL_ScrollBarImp; 15 class CFWL_ScrollBarImp;
16 class CFWL_ScrollBarImpDelegate; 16 class CFWL_ScrollBarImpDelegate;
17 class CFWL_ScrollBarImp : public CFWL_WidgetImp, public IFWL_Timer { 17 class CFWL_ScrollBarImp : public CFWL_WidgetImp, public IFWL_Timer {
18 public: 18 public:
19 CFWL_ScrollBarImp(IFWL_Widget* pOuter = NULL);
20 CFWL_ScrollBarImp(const CFWL_WidgetImpProperties& properties, 19 CFWL_ScrollBarImp(const CFWL_WidgetImpProperties& properties,
21 IFWL_Widget* pOuter = NULL); 20 IFWL_Widget* pOuter);
22 ~CFWL_ScrollBarImp(); 21 ~CFWL_ScrollBarImp();
23 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const; 22 virtual FWL_ERR GetClassName(CFX_WideString& wsClass) const;
24 virtual FX_DWORD GetClassID() const; 23 virtual FX_DWORD GetClassID() const;
25 virtual FWL_ERR Initialize(); 24 virtual FWL_ERR Initialize();
26 virtual FWL_ERR Finalize(); 25 virtual FWL_ERR Finalize();
27 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE); 26 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
28 virtual FWL_ERR Update(); 27 virtual FWL_ERR Update();
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);
31 virtual FX_BOOL IsVertical(); 30 virtual FX_BOOL IsVertical();
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 const CFX_RectF& rtItem, 129 const CFX_RectF& rtItem,
131 int32_t& iState, 130 int32_t& iState,
132 FX_FLOAT fx, 131 FX_FLOAT fx,
133 FX_FLOAT fy); 132 FX_FLOAT fy);
134 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); 133 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState);
135 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); 134 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState);
136 135
137 CFWL_ScrollBarImp* m_pOwner; 136 CFWL_ScrollBarImp* m_pOwner;
138 }; 137 };
139 #endif 138 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698