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

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

Issue 1821043003: Remove FX_WORD in favor of uint16_t. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use stdint.h directly, bitfield minefield. 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/include/pdfwindow/PWL_FontMap.h ('k') | fpdfsdk/include/pdfwindow/PWL_ListBox.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 FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_
9 9
10 #include "core/include/fxcrt/fx_string.h" 10 #include "core/include/fxcrt/fx_string.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, FX_DWORD nFlag) override;
79 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 79 FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_DWORD nFlag) override;
80 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, FX_DWORD nFlag) override; 80 FX_BOOL OnMouseMove(const CFX_FloatPoint& point, FX_DWORD nFlag) override;
81 FX_BOOL OnKeyDown(FX_WORD nChar, FX_DWORD nFlag) override; 81 FX_BOOL OnKeyDown(uint16_t nChar, FX_DWORD 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 28 matching lines...) Expand all
120 FX_DWORD msg, 120 FX_DWORD 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_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_ 129 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/pdfwindow/PWL_FontMap.h ('k') | fpdfsdk/include/pdfwindow/PWL_ListBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698