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

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

Issue 2506253004: Split fwl/core class pt I. (Closed)
Patch Set: Rebase to master Created 4 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 XFA_FWL_CORE_IFWL_SCROLLBAR_H_ 7 #ifndef XFA_FWL_CORE_IFWL_SCROLLBAR_H_
8 #define XFA_FWL_CORE_IFWL_SCROLLBAR_H_ 8 #define XFA_FWL_CORE_IFWL_SCROLLBAR_H_
9 9
10 #include "core/fxcrt/fx_system.h" 10 #include "core/fxcrt/fx_system.h"
11 #include "xfa/fwl/core/cfwl_evtscroll.h" 11 #include "xfa/fwl/core/cfwl_evtscroll.h"
12 #include "xfa/fwl/core/cfwl_widgetproperties.h" 12 #include "xfa/fwl/core/cfwl_widgetproperties.h"
13 #include "xfa/fwl/core/ifwl_dataprovider.h" 13 #include "xfa/fwl/core/ifwl_dataprovider.h"
14 #include "xfa/fwl/core/ifwl_timer.h" 14 #include "xfa/fwl/core/ifwl_timer.h"
15 #include "xfa/fwl/core/ifwl_widget.h" 15 #include "xfa/fwl/core/ifwl_widget.h"
16 16
17 class IFWL_Widget; 17 class IFWL_Widget;
18 18
19 #define FWL_STYLEEXT_SCB_Horz (0L << 0) 19 #define FWL_STYLEEXT_SCB_Horz (0L << 0)
20 #define FWL_STYLEEXT_SCB_Vert (1L << 0) 20 #define FWL_STYLEEXT_SCB_Vert (1L << 0)
21 21
22 class IFWL_ScrollBarDP : public IFWL_DataProvider {};
23
24 class IFWL_ScrollBar : public IFWL_Widget { 22 class IFWL_ScrollBar : public IFWL_Widget {
25 public: 23 public:
26 IFWL_ScrollBar(const IFWL_App* app, 24 IFWL_ScrollBar(const IFWL_App* app,
27 std::unique_ptr<CFWL_WidgetProperties> properties, 25 std::unique_ptr<CFWL_WidgetProperties> properties,
28 IFWL_Widget* pOuter); 26 IFWL_Widget* pOuter);
29 ~IFWL_ScrollBar() override; 27 ~IFWL_ScrollBar() override;
30 28
31 // IFWL_Widget 29 // IFWL_Widget
32 FWL_Type GetClassID() const override; 30 FWL_Type GetClassID() const override;
33 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override; 31 void GetWidgetRect(CFX_RectF& rect, bool bAutoSize = false) override;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 CFX_RectF m_rtMinBtn; 141 CFX_RectF m_rtMinBtn;
144 CFX_RectF m_rtMaxBtn; 142 CFX_RectF m_rtMaxBtn;
145 CFX_RectF m_rtMinTrack; 143 CFX_RectF m_rtMinTrack;
146 CFX_RectF m_rtMaxTrack; 144 CFX_RectF m_rtMaxTrack;
147 bool m_bCustomLayout; 145 bool m_bCustomLayout;
148 FX_FLOAT m_fMinThumb; 146 FX_FLOAT m_fMinThumb;
149 IFWL_ScrollBar::Timer m_Timer; 147 IFWL_ScrollBar::Timer m_Timer;
150 }; 148 };
151 149
152 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ 150 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698