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

Side by Side Diff: xfa/fwl/basewidget/ifwl_scrollbar.h

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
Patch Set: Created 4 years, 7 months 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
« no previous file with comments | « xfa/fwl/basewidget/ifwl_picturebox.h ('k') | xfa/fwl/basewidget/ifwl_spinbutton.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_
9 9
10 #include "xfa/fwl/core/fwl_widgetimp.h" 10 #include "xfa/fwl/core/fwl_widgetimp.h"
(...skipping 22 matching lines...) Expand all
33 }; 33 };
34 34
35 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; 35 class IFWL_ScrollBarDP : public IFWL_DataProvider {};
36 36
37 class IFWL_ScrollBar : public IFWL_Widget { 37 class IFWL_ScrollBar : public IFWL_Widget {
38 public: 38 public:
39 static IFWL_ScrollBar* Create(const CFWL_WidgetImpProperties& properties, 39 static IFWL_ScrollBar* Create(const CFWL_WidgetImpProperties& properties,
40 IFWL_Widget* pOuter); 40 IFWL_Widget* pOuter);
41 41
42 FX_BOOL IsVertical(); 42 FX_BOOL IsVertical();
43 FWL_ERR GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax); 43 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax);
44 FWL_ERR SetRange(FX_FLOAT fMin, FX_FLOAT fMax); 44 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax);
45 FX_FLOAT GetPageSize(); 45 FX_FLOAT GetPageSize();
46 FWL_ERR SetPageSize(FX_FLOAT fPageSize); 46 FWL_Error SetPageSize(FX_FLOAT fPageSize);
47 FX_FLOAT GetStepSize(); 47 FX_FLOAT GetStepSize();
48 FWL_ERR SetStepSize(FX_FLOAT fStepSize); 48 FWL_Error SetStepSize(FX_FLOAT fStepSize);
49 FX_FLOAT GetPos(); 49 FX_FLOAT GetPos();
50 FWL_ERR SetPos(FX_FLOAT fPos); 50 FWL_Error SetPos(FX_FLOAT fPos);
51 FX_FLOAT GetTrackPos(); 51 FX_FLOAT GetTrackPos();
52 FWL_ERR SetTrackPos(FX_FLOAT fTrackPos); 52 FWL_Error SetTrackPos(FX_FLOAT fTrackPos);
53 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f); 53 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f);
54 54
55 protected: 55 protected:
56 IFWL_ScrollBar(); 56 IFWL_ScrollBar();
57 }; 57 };
58 58
59 #endif // XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_ 59 #endif // XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/ifwl_picturebox.h ('k') | xfa/fwl/basewidget/ifwl_spinbutton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698