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

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

Issue 1835693002: Remove FX_DWORD from fpdfsdk/ and testing/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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/pdfwindow/PWL_Icon.cpp ('k') | fpdfsdk/pdfwindow/PWL_IconList.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 FPDFSDK_PDFWINDOW_PWL_ICONLIST_H_ 7 #ifndef FPDFSDK_PDFWINDOW_PWL_ICONLIST_H_
8 #define FPDFSDK_PDFWINDOW_PWL_ICONLIST_H_ 8 #define FPDFSDK_PDFWINDOW_PWL_ICONLIST_H_
9 9
10 #include "core/fxcrt/include/fx_string.h" 10 #include "core/fxcrt/include/fx_string.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void SetListIcon(int32_t nItemIndex, int32_t nIconIndex); 68 void SetListIcon(int32_t nItemIndex, int32_t nIconIndex);
69 void SetListString(int32_t nItemIndex, const CFX_WideString& str); 69 void SetListString(int32_t nItemIndex, const CFX_WideString& str);
70 void SetIconFillColor(const CPWL_Color& color); 70 void SetIconFillColor(const CPWL_Color& color);
71 CFX_WideString GetListString(int32_t nItemIndex) const; 71 CFX_WideString GetListString(int32_t nItemIndex) const;
72 IPWL_IconList_Notify* GetNotify() const; 72 IPWL_IconList_Notify* GetNotify() const;
73 void ScrollToItem(int32_t nItemIndex); 73 void ScrollToItem(int32_t nItemIndex);
74 74
75 protected: 75 protected:
76 // CPWL_ListCtrl 76 // CPWL_ListCtrl
77 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; 77 void CreateChildWnd(const PWL_CREATEPARAM& cp) override;
78 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 78 FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag) override;
79 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 79 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag) override;
80 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 80 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, uint32_t nFlag) override;
81 FX_BOOL OnKeyDown(uint16_t nChar, FX_DWORD nFlag) override; 81 FX_BOOL OnKeyDown(uint16_t nChar, uint32_t nFlag) override;
82 82
83 private: 83 private:
84 CPWL_IconList_Item* GetListItem(int32_t nItemIndex) const; 84 CPWL_IconList_Item* GetListItem(int32_t nItemIndex) const;
85 void SelectItem(int32_t nItemIndex, FX_BOOL bSelect); 85 void SelectItem(int32_t nItemIndex, FX_BOOL bSelect);
86 int32_t FindItemIndex(const CFX_FloatPoint& point); 86 int32_t FindItemIndex(const CFX_FloatPoint& point);
87 87
88 int32_t m_nSelectIndex; 88 int32_t m_nSelectIndex;
89 IPWL_IconList_Notify* m_pNotify; 89 IPWL_IconList_Notify* m_pNotify;
90 FX_BOOL m_bEnableNotify; 90 FX_BOOL m_bEnableNotify;
91 FX_BOOL m_bMouseDown; 91 FX_BOOL m_bMouseDown;
(...skipping 13 matching lines...) Expand all
105 void SetListData(int32_t nItemIndex, void* pData); 105 void SetListData(int32_t nItemIndex, void* pData);
106 void SetListIcon(int32_t nItemIndex, int32_t nIconIndex); 106 void SetListIcon(int32_t nItemIndex, int32_t nIconIndex);
107 void SetListString(int32_t nItemIndex, const CFX_WideString& str); 107 void SetListString(int32_t nItemIndex, const CFX_WideString& str);
108 void SetIconFillColor(const CPWL_Color& color); 108 void SetIconFillColor(const CPWL_Color& color);
109 CFX_WideString GetListString(int32_t nItemIndex) const; 109 CFX_WideString GetListString(int32_t nItemIndex) const;
110 110
111 protected: 111 protected:
112 // CPWL_Wnd 112 // CPWL_Wnd
113 FX_BOOL OnMouseWheel(short zDelta, 113 FX_BOOL OnMouseWheel(short zDelta,
114 const CFX_FloatPoint& point, 114 const CFX_FloatPoint& point,
115 FX_DWORD nFlag) override; 115 uint32_t nFlag) override;
116 void OnCreated() override; 116 void OnCreated() override;
117 void RePosChildWnd() override; 117 void RePosChildWnd() override;
118 void CreateChildWnd(const PWL_CREATEPARAM& cp) override; 118 void CreateChildWnd(const PWL_CREATEPARAM& cp) override;
119 void OnNotify(CPWL_Wnd* pWnd, 119 void OnNotify(CPWL_Wnd* pWnd,
120 FX_DWORD msg, 120 uint32_t msg,
121 intptr_t wParam = 0, 121 intptr_t wParam = 0,
122 intptr_t lParam = 0) override; 122 intptr_t lParam = 0) override;
123 123
124 private: 124 private:
125 CPWL_IconList_Content* m_pListContent; 125 CPWL_IconList_Content* m_pListContent;
126 int32_t m_nListCount; 126 int32_t m_nListCount;
127 }; 127 };
128 128
129 #endif // FPDFSDK_PDFWINDOW_PWL_ICONLIST_H_ 129 #endif // FPDFSDK_PDFWINDOW_PWL_ICONLIST_H_
OLDNEW
« no previous file with comments | « fpdfsdk/pdfwindow/PWL_Icon.cpp ('k') | fpdfsdk/pdfwindow/PWL_IconList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698