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

Side by Side Diff: fpdfsdk/include/pdfwindow/PWL_ListCtrl.h

Issue 453133004: clang-format all code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 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
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 _PWL_LISTCTRL_H_ 7 #ifndef _PWL_LISTCTRL_H_
8 #define _PWL_LISTCTRL_H_ 8 #define _PWL_LISTCTRL_H_
9 9
10 class CPWL_ListCtrl; 10 class CPWL_ListCtrl;
11 11
12 class CPWL_ListCtrl : public CPWL_Wnd 12 class CPWL_ListCtrl : public CPWL_Wnd {
13 { 13 public:
14 public: 14 CPWL_ListCtrl();
15 » CPWL_ListCtrl(); 15 virtual ~CPWL_ListCtrl();
16 » virtual ~CPWL_ListCtrl();
17 16
18 public: 17 public:
19 » void» » » » » » » » SetScrol lPos(const CPDF_Point& point); 18 void SetScrollPos(const CPDF_Point& point);
20 » CPDF_Point» » » » » » » GetScrol lPos() const; 19 CPDF_Point GetScrollPos() const;
21 » CPDF_Rect» » » » » » » GetScrol lArea() const; 20 CPDF_Rect GetScrollArea() const;
22 »
23 » void» » » » » » » » SetItemS pace(FX_FLOAT fSpace);
24 » void» » » » » » » » SetTopSp ace(FX_FLOAT fSpace);
25 » void» » » » » » » » SetBotto mSpace(FX_FLOAT fSpace);
26 » void» » » » » » » » ResetFac e();
27 » void» » » » » » » » ResetCon tent(FX_INT32 nStart);
28 » FX_INT32» » » » » » » GetItemI ndex(CPWL_Wnd* pItem);
29 » FX_FLOAT» » » » » » » GetConte ntsHeight(FX_FLOAT fLimitWidth);
30 21
31 protected: 22 void SetItemSpace(FX_FLOAT fSpace);
32 » virtual void» » » » » » RePosChildWnd(); 23 void SetTopSpace(FX_FLOAT fSpace);
33 » virtual void» » » » » » DrawChildAppeara nce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); 24 void SetBottomSpace(FX_FLOAT fSpace);
25 void ResetFace();
26 void ResetContent(FX_INT32 nStart);
27 FX_INT32 GetItemIndex(CPWL_Wnd* pItem);
28 FX_FLOAT GetContentsHeight(FX_FLOAT fLimitWidth);
34 29
35 public: 30 protected:
36 » CPDF_Point» » » » » » » InToOut( const CPDF_Point& point) const; 31 virtual void RePosChildWnd();
37 » CPDF_Point» » » » » » » OutToIn( const CPDF_Point& point) const; 32 virtual void DrawChildAppearance(CFX_RenderDevice* pDevice,
38 » CPDF_Rect» » » » » » » InToOut( const CPDF_Rect& rect) const; 33 CPDF_Matrix* pUser2Device);
39 » CPDF_Rect» » » » » » » OutToIn( const CPDF_Rect& rect) const;
40 34
41 private: 35 public:
42 » void» » » » » » » » ResetAll (FX_BOOL bMove,FX_INT32 nStart); 36 CPDF_Point InToOut(const CPDF_Point& point) const;
37 CPDF_Point OutToIn(const CPDF_Point& point) const;
38 CPDF_Rect InToOut(const CPDF_Rect& rect) const;
39 CPDF_Rect OutToIn(const CPDF_Rect& rect) const;
43 40
44 private: 41 private:
45 » CPDF_Rect» » » » » » » m_rcCont ent; 42 void ResetAll(FX_BOOL bMove, FX_INT32 nStart);
46 » CPDF_Point» » » » » » » m_ptScro ll; 43
47 » FX_FLOAT» » » » » » » m_fItemS pace; 44 private:
48 » FX_FLOAT» » » » » » » m_fTopSp ace; 45 CPDF_Rect m_rcContent;
49 » FX_FLOAT» » » » » » » m_fBotto mSpace; 46 CPDF_Point m_ptScroll;
47 FX_FLOAT m_fItemSpace;
48 FX_FLOAT m_fTopSpace;
49 FX_FLOAT m_fBottomSpace;
50 }; 50 };
51 51
52 #endif 52 #endif
53
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698