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

Side by Side Diff: xfa/include/fwl/basewidget/fwl_scrollbar.h

Issue 1509203002: FWL refcounts never incremented (part 1) (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: protected 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_H 7 #ifndef _FWL_SCROLLBAR_H
8 #define _FWL_SCROLLBAR_H 8 #define _FWL_SCROLLBAR_H
9 class CFWL_WidgetImpProperties; 9 class CFWL_WidgetImpProperties;
10 class IFWL_Widget; 10 class IFWL_Widget;
(...skipping 29 matching lines...) Expand all
40 FWL_SCBCODE_PageForward, 40 FWL_SCBCODE_PageForward,
41 FWL_SCBCODE_StepBackward, 41 FWL_SCBCODE_StepBackward,
42 FWL_SCBCODE_StepForward, 42 FWL_SCBCODE_StepForward,
43 FWL_SCBCODE_Pos, 43 FWL_SCBCODE_Pos,
44 FWL_SCBCODE_TrackPos, 44 FWL_SCBCODE_TrackPos,
45 FWL_SCBCODE_EndScroll, 45 FWL_SCBCODE_EndScroll,
46 }; 46 };
47 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; 47 class IFWL_ScrollBarDP : public IFWL_DataProvider {};
48 class IFWL_ScrollBar : public IFWL_Widget { 48 class IFWL_ScrollBar : public IFWL_Widget {
49 public: 49 public:
50 static IFWL_ScrollBar* Create(); 50 IFWL_ScrollBar();
51 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties, 51 FWL_ERR Initialize(const CFWL_WidgetImpProperties& properties,
52 IFWL_Widget* pOuter); 52 IFWL_Widget* pOuter);
53 FX_BOOL IsVertical(); 53 FX_BOOL IsVertical();
54 FWL_ERR GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); 54 FWL_ERR GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax);
55 FWL_ERR SetRange(FX_FLOAT fMin, FX_FLOAT fMax); 55 FWL_ERR SetRange(FX_FLOAT fMin, FX_FLOAT fMax);
56 FX_FLOAT GetPageSize(); 56 FX_FLOAT GetPageSize();
57 FWL_ERR SetPageSize(FX_FLOAT fPageSize); 57 FWL_ERR SetPageSize(FX_FLOAT fPageSize);
58 FX_FLOAT GetStepSize(); 58 FX_FLOAT GetStepSize();
59 FWL_ERR SetStepSize(FX_FLOAT fStepSize); 59 FWL_ERR SetStepSize(FX_FLOAT fStepSize);
60 FX_FLOAT GetPos(); 60 FX_FLOAT GetPos();
61 FWL_ERR SetPos(FX_FLOAT fPos); 61 FWL_ERR SetPos(FX_FLOAT fPos);
62 FX_FLOAT GetTrackPos(); 62 FX_FLOAT GetTrackPos();
63 FWL_ERR SetTrackPos(FX_FLOAT fTrackPos); 63 FWL_ERR SetTrackPos(FX_FLOAT fTrackPos);
64 FX_BOOL DoScroll(FX_DWORD dwCode, FX_FLOAT fPos = 0.0f); 64 FX_BOOL DoScroll(FX_DWORD dwCode, FX_FLOAT fPos = 0.0f);
65
66 protected:
67 IFWL_ScrollBar();
68 }; 65 };
69 #endif 66 #endif
OLDNEW
« no previous file with comments | « xfa/include/fwl/basewidget/fwl_pushbutton.h ('k') | xfa/include/fwl/basewidget/fwl_spinbutton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698