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

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

Issue 2432423002: Merge the CFWL_*Imp classes into the IFWL_* classes. (Closed)
Patch Set: Review feedback Created 4 years, 2 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_pushbutton.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
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_
9
10 #include "core/fxcrt/fx_system.h"
11 #include "xfa/fwl/core/cfwl_widgetimpproperties.h"
12 #include "xfa/fwl/core/fwl_error.h"
13 #include "xfa/fwl/core/fwl_widgetimp.h"
14 #include "xfa/fwl/core/ifwl_dataprovider.h"
15 #include "xfa/fwl/core/ifwl_widget.h"
16
17 #define FWL_CLASS_ScrollBar L"FWL_SCROLLBAR"
18 #define FWL_STYLEEXT_SCB_Horz (0L << 0)
19 #define FWL_STYLEEXT_SCB_Vert (1L << 0)
20
21 enum FWL_SCBCODE {
22 FWL_SCBCODE_None = 1,
23 FWL_SCBCODE_Min,
24 FWL_SCBCODE_Max,
25 FWL_SCBCODE_PageBackward,
26 FWL_SCBCODE_PageForward,
27 FWL_SCBCODE_StepBackward,
28 FWL_SCBCODE_StepForward,
29 FWL_SCBCODE_Pos,
30 FWL_SCBCODE_TrackPos,
31 FWL_SCBCODE_EndScroll,
32 };
33
34 class IFWL_ScrollBarDP : public IFWL_DataProvider {};
35
36 class IFWL_ScrollBar : public IFWL_Widget {
37 public:
38 static IFWL_ScrollBar* Create(const CFWL_WidgetImpProperties& properties,
39 IFWL_Widget* pOuter);
40
41 FX_BOOL IsVertical();
42 FWL_Error GetRange(FX_FLOAT& fMin, FX_FLOAT& fMax);
43 FWL_Error SetRange(FX_FLOAT fMin, FX_FLOAT fMax);
44 FX_FLOAT GetPageSize();
45 FWL_Error SetPageSize(FX_FLOAT fPageSize);
46 FX_FLOAT GetStepSize();
47 FWL_Error SetStepSize(FX_FLOAT fStepSize);
48 FX_FLOAT GetPos();
49 FWL_Error SetPos(FX_FLOAT fPos);
50 FX_FLOAT GetTrackPos();
51 FWL_Error SetTrackPos(FX_FLOAT fTrackPos);
52 FX_BOOL DoScroll(uint32_t dwCode, FX_FLOAT fPos = 0.0f);
53
54 protected:
55 IFWL_ScrollBar();
56 };
57
58 #endif // XFA_FWL_BASEWIDGET_IFWL_SCROLLBAR_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/ifwl_pushbutton.h ('k') | xfa/fwl/basewidget/ifwl_spinbutton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698