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

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

Issue 2433133002: Remove IFWL_*::Create methods, use new (Closed)
Patch Set: Rebase to master 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/core/ifwl_pushbutton.cpp ('k') | xfa/fwl/core/ifwl_scrollbar.cpp » ('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_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"
(...skipping 21 matching lines...) Expand all
32 FWL_SCBCODE_StepForward, 32 FWL_SCBCODE_StepForward,
33 FWL_SCBCODE_Pos, 33 FWL_SCBCODE_Pos,
34 FWL_SCBCODE_TrackPos, 34 FWL_SCBCODE_TrackPos,
35 FWL_SCBCODE_EndScroll, 35 FWL_SCBCODE_EndScroll,
36 }; 36 };
37 37
38 class IFWL_ScrollBarDP : public IFWL_DataProvider {}; 38 class IFWL_ScrollBarDP : public IFWL_DataProvider {};
39 39
40 class IFWL_ScrollBar : public IFWL_Widget, public IFWL_Timer { 40 class IFWL_ScrollBar : public IFWL_Widget, public IFWL_Timer {
41 public: 41 public:
42 static IFWL_ScrollBar* Create(const CFWL_WidgetImpProperties& properties,
43 IFWL_Widget* pOuter);
44
45 IFWL_ScrollBar(const CFWL_WidgetImpProperties& properties, 42 IFWL_ScrollBar(const CFWL_WidgetImpProperties& properties,
46 IFWL_Widget* pOuter); 43 IFWL_Widget* pOuter);
47 ~IFWL_ScrollBar() override; 44 ~IFWL_ScrollBar() override;
48 45
49 // IFWL_Widget 46 // IFWL_Widget
50 FWL_Error GetClassName(CFX_WideString& wsClass) const override; 47 FWL_Error GetClassName(CFX_WideString& wsClass) const override;
51 FWL_Type GetClassID() const override; 48 FWL_Type GetClassID() const override;
52 FWL_Error Initialize() override; 49 FWL_Error Initialize() override;
53 FWL_Error Finalize() override; 50 FWL_Error Finalize() override;
54 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override; 51 FWL_Error GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE) override;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 int32_t& iState, 163 int32_t& iState,
167 FX_FLOAT fx, 164 FX_FLOAT fx,
168 FX_FLOAT fy); 165 FX_FLOAT fy);
169 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); 166 void DoMouseLeave(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState);
170 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState); 167 void DoMouseHover(int32_t iItem, const CFX_RectF& rtItem, int32_t& iState);
171 168
172 IFWL_ScrollBar* m_pOwner; 169 IFWL_ScrollBar* m_pOwner;
173 }; 170 };
174 171
175 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_ 172 #endif // XFA_FWL_CORE_IFWL_SCROLLBAR_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_pushbutton.cpp ('k') | xfa/fwl/core/ifwl_scrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698