| Index: fpdfsdk/pdfwindow/PWL_ListBox.h
|
| diff --git a/fpdfsdk/pdfwindow/PWL_ListBox.h b/fpdfsdk/pdfwindow/PWL_ListBox.h
|
| index da7ae3d802ec3eb390eb32ce21dedc37e9933b39..290b8762ef2a28746a657a71cdb33449f1cee69d 100644
|
| --- a/fpdfsdk/pdfwindow/PWL_ListBox.h
|
| +++ b/fpdfsdk/pdfwindow/PWL_ListBox.h
|
| @@ -32,7 +32,7 @@ class CPWL_List_Notify {
|
| void IOnSetScrollPosY(FX_FLOAT fy);
|
| void IOnInvalidateRect(CFX_FloatRect* pRect);
|
|
|
| - void IOnSetCaret(FX_BOOL bVisible,
|
| + void IOnSetCaret(bool bVisible,
|
| const CFX_FloatPoint& ptHead,
|
| const CFX_FloatPoint& ptFoot,
|
| const CPVT_WordPlace& place);
|
| @@ -53,14 +53,14 @@ class CPWL_ListBox : public CPWL_Wnd {
|
| void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream) override;
|
| void DrawThisAppearance(CFX_RenderDevice* pDevice,
|
| CFX_Matrix* pUser2Device) override;
|
| - FX_BOOL OnKeyDown(uint16_t nChar, uint32_t nFlag) override;
|
| - FX_BOOL OnChar(uint16_t nChar, uint32_t nFlag) override;
|
| - FX_BOOL OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag) override;
|
| - FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag) override;
|
| - FX_BOOL OnMouseMove(const CFX_FloatPoint& point, uint32_t nFlag) override;
|
| - FX_BOOL OnMouseWheel(short zDelta,
|
| - const CFX_FloatPoint& point,
|
| - uint32_t nFlag) override;
|
| + bool OnKeyDown(uint16_t nChar, uint32_t nFlag) override;
|
| + bool OnChar(uint16_t nChar, uint32_t nFlag) override;
|
| + bool OnLButtonDown(const CFX_FloatPoint& point, uint32_t nFlag) override;
|
| + bool OnLButtonUp(const CFX_FloatPoint& point, uint32_t nFlag) override;
|
| + bool OnMouseMove(const CFX_FloatPoint& point, uint32_t nFlag) override;
|
| + bool OnMouseWheel(short zDelta,
|
| + const CFX_FloatPoint& point,
|
| + uint32_t nFlag) override;
|
| void KillFocus() override;
|
| void OnNotify(CPWL_Wnd* pWnd,
|
| uint32_t msg,
|
| @@ -73,7 +73,7 @@ class CPWL_ListBox : public CPWL_Wnd {
|
|
|
| virtual CFX_WideString GetText() const;
|
|
|
| - void OnNotifySelChanged(FX_BOOL bKeyDown, FX_BOOL& bExit, uint32_t nFlag);
|
| + void OnNotifySelChanged(bool bKeyDown, bool& bExit, uint32_t nFlag);
|
|
|
| void AddString(const CFX_WideString& str);
|
| void SetTopVisibleIndex(int32_t nItemIndex);
|
| @@ -82,13 +82,13 @@ class CPWL_ListBox : public CPWL_Wnd {
|
| void Reset();
|
| void Select(int32_t nItemIndex);
|
| void SetCaret(int32_t nItemIndex);
|
| - void SetHoverSel(FX_BOOL bHoverSel);
|
| + void SetHoverSel(bool bHoverSel);
|
|
|
| int32_t GetCount() const;
|
| - FX_BOOL IsMultipleSel() const;
|
| + bool IsMultipleSel() const;
|
| int32_t GetCaretIndex() const;
|
| int32_t GetCurSel() const;
|
| - FX_BOOL IsItemSelected(int32_t nItemIndex) const;
|
| + bool IsItemSelected(int32_t nItemIndex) const;
|
| int32_t GetTopVisibleIndex() const;
|
| int32_t FindNext(int32_t nIndex, FX_WCHAR nChar) const;
|
| CFX_FloatRect GetContentRect() const;
|
| @@ -104,8 +104,8 @@ class CPWL_ListBox : public CPWL_Wnd {
|
| protected:
|
| std::unique_ptr<CFX_ListCtrl> m_pList;
|
| std::unique_ptr<CPWL_List_Notify> m_pListNotify;
|
| - FX_BOOL m_bMouseDown;
|
| - FX_BOOL m_bHoverSel;
|
| + bool m_bMouseDown;
|
| + bool m_bHoverSel;
|
| IPWL_Filler_Notify* m_pFillerNotify;
|
|
|
| private:
|
|
|