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

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

Issue 416383004: Attempt to fix some -Woverloaded-virtual warnings. (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
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_ComboBox.h ('k') | fpdfsdk/include/pdfwindow/PWL_SpecialButton.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 _PWL_IconList_H_ 7 #ifndef _PWL_IconList_H_
8 #define _PWL_IconList_H_ 8 #define _PWL_IconList_H_
9 9
10 class IPWL_IconList_Notify; 10 class IPWL_IconList_Notify;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void SetListD ata(FX_INT32 nItemIndex, void* pData); 65 void SetListD ata(FX_INT32 nItemIndex, void* pData);
66 void SetListI con(FX_INT32 nItemIndex, FX_INT32 nIconIndex); 66 void SetListI con(FX_INT32 nItemIndex, FX_INT32 nIconIndex);
67 void SetListS tring(FX_INT32 nItemIndex, const CFX_WideString& str); 67 void SetListS tring(FX_INT32 nItemIndex, const CFX_WideString& str);
68 void SetIconF illColor(const CPWL_Color& color); 68 void SetIconF illColor(const CPWL_Color& color);
69 CFX_WideString GetListString(FX _INT32 nItemIndex) const; 69 CFX_WideString GetListString(FX _INT32 nItemIndex) const;
70 IPWL_IconList_Notify* GetNotify() const; 70 IPWL_IconList_Notify* GetNotify() const;
71 void ScrollTo Item(FX_INT32 nItemIndex); 71 void ScrollTo Item(FX_INT32 nItemIndex);
72 72
73 protected: 73 protected:
74 virtual void CreateChildWnd(c onst PWL_CREATEPARAM & cp); 74 virtual void CreateChildWnd(c onst PWL_CREATEPARAM & cp);
75 » virtual FX_BOOL»» » » » » OnLButtonDown(co nst CPDF_Point & point); 75 » virtual FX_BOOL»» » » » » OnLButtonDown(co nst CPDF_Point & point, FX_DWORD nFlag);
76 » virtual FX_BOOL»» » » » » OnLButtonUp(cons t CPDF_Point & point); 76 » virtual FX_BOOL»» » » » » OnLButtonUp(cons t CPDF_Point & point, FX_DWORD nFlag);
77 » virtual FX_BOOL»» » » » » OnMouseMove(cons t CPDF_Point & point); 77 » virtual FX_BOOL»» » » » » OnMouseMove(cons t CPDF_Point & point, FX_DWORD nFlag);
78 » virtual FX_BOOL»» » » » » OnKeyDown(FX_WOR D nChar); 78 » virtual FX_BOOL»» » » » » OnKeyDown(FX_WOR D nChar, FX_DWORD nFlag);
79 79
80 private: 80 private:
81 CPWL_IconList_Item* GetListItem(FX_I NT32 nItemIndex) const; 81 CPWL_IconList_Item* GetListItem(FX_I NT32 nItemIndex) const;
82 void SelectIt em(FX_INT32 nItemIndex, FX_BOOL bSelect); 82 void SelectIt em(FX_INT32 nItemIndex, FX_BOOL bSelect);
83 FX_INT32 FindItem Index(const CPDF_Point& point); 83 FX_INT32 FindItem Index(const CPDF_Point& point);
84 84
85 FX_BOOL m_nSelec tIndex; 85 FX_BOOL m_nSelec tIndex;
86 IPWL_IconList_Notify* m_pNotify; 86 IPWL_IconList_Notify* m_pNotify;
87 FX_BOOL m_bEnabl eNotify; 87 FX_BOOL m_bEnabl eNotify;
88 FX_BOOL m_bMouse Down; 88 FX_BOOL m_bMouse Down;
89 FX_INT32 m_nListC ount; 89 FX_INT32 m_nListC ount;
90 }; 90 };
91 91
92 class PWL_CLASS CPWL_IconList : public CPWL_Wnd 92 class PWL_CLASS CPWL_IconList : public CPWL_Wnd
93 { 93 {
94 public: 94 public:
95 CPWL_IconList(FX_INT32 nListCount); 95 CPWL_IconList(FX_INT32 nListCount);
96 virtual ~CPWL_IconList(); 96 virtual ~CPWL_IconList();
97 97
98 » virtual FX_BOOL»» » » » » OnMouseWheel(sho rt zDelta, const CPDF_Point & point); 98 » virtual FX_BOOL»» » » » » OnMouseWheel(sho rt zDelta, const CPDF_Point & point, FX_DWORD nFlag);
99 99
100 void SetSelec t(FX_INT32 nIndex); 100 void SetSelec t(FX_INT32 nIndex);
101 void SetTopIt em(FX_INT32 nIndex); 101 void SetTopIt em(FX_INT32 nIndex);
102 FX_INT32 GetSelec t() const; 102 FX_INT32 GetSelec t() const;
103 void SetNotif y(IPWL_IconList_Notify* pNotify); 103 void SetNotif y(IPWL_IconList_Notify* pNotify);
104 void EnableNo tify(FX_BOOL bNotify); 104 void EnableNo tify(FX_BOOL bNotify);
105 void SetListD ata(FX_INT32 nItemIndex, void* pData); 105 void SetListD ata(FX_INT32 nItemIndex, void* pData);
106 void SetListI con(FX_INT32 nItemIndex, FX_INT32 nIconIndex); 106 void SetListI con(FX_INT32 nItemIndex, FX_INT32 nIconIndex);
107 void SetListS tring(FX_INT32 nItemIndex, const CFX_WideString& str); 107 void SetListS tring(FX_INT32 nItemIndex, const CFX_WideString& str);
108 void SetIconF illColor(const CPWL_Color& color); 108 void SetIconF illColor(const CPWL_Color& color);
109 CFX_WideString GetListString(FX _INT32 nItemIndex) const; 109 CFX_WideString GetListString(FX _INT32 nItemIndex) const;
110 110
111 protected: 111 protected:
112 virtual void OnCreated(); 112 virtual void OnCreated();
113 virtual void RePosChildWnd(); 113 virtual void RePosChildWnd();
114 virtual void CreateChildWnd(c onst PWL_CREATEPARAM & cp); 114 virtual void CreateChildWnd(c onst PWL_CREATEPARAM & cp);
115 115
116 virtual void OnNotify(CPWL_Wn d* pWnd, FX_DWORD msg, FX_INTPTR wParam = 0, FX_INTPTR lParam = 0); 116 virtual void OnNotify(CPWL_Wn d* pWnd, FX_DWORD msg, FX_INTPTR wParam = 0, FX_INTPTR lParam = 0);
117 117
118 private: 118 private:
119 CPWL_IconList_Content* m_pListContent; 119 CPWL_IconList_Content* m_pListContent;
120 FX_INT32 m_nListC ount; 120 FX_INT32 m_nListC ount;
121 }; 121 };
122 122
123 #endif //_PWL_IconList_H_ 123 #endif //_PWL_IconList_H_
124 124
125 125
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_ComboBox.h ('k') | fpdfsdk/include/pdfwindow/PWL_SpecialButton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698