xref: /aosp_15_r20/external/pdfium/fpdfsdk/pwl/cpwl_cblistbox.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2020 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef FPDFSDK_PWL_CPWL_CBLISTBOX_H_
8 #define FPDFSDK_PWL_CPWL_CBLISTBOX_H_
9 
10 #include <memory>
11 
12 #include "fpdfsdk/pwl/cpwl_list_box.h"
13 #include "fpdfsdk/pwl/ipwl_fillernotify.h"
14 #include "public/fpdf_fwlevent.h"
15 
16 class CPWL_CBListBox final : public CPWL_ListBox {
17  public:
18   CPWL_CBListBox(
19       const CreateParams& cp,
20       std::unique_ptr<IPWL_FillerNotify::PerWindowData> pAttachedData);
21   ~CPWL_CBListBox() override;
22 
23   // CPWL_ListBox
24   bool OnLButtonUp(Mask<FWL_EVENTFLAG> nFlag, const CFX_PointF& point) override;
25 
26   bool IsMovementKey(FWL_VKEYCODE nKeyCode) const;
27   bool OnMovementKeyDown(FWL_VKEYCODE nKeyCode, Mask<FWL_EVENTFLAG> nFlag);
28   bool IsChar(uint16_t nChar, Mask<FWL_EVENTFLAG> nFlag) const;
29   bool OnCharNotify(uint16_t nChar, Mask<FWL_EVENTFLAG> nFlag);
30 };
31 
32 #endif  // FPDFSDK_PWL_CPWL_CBLISTBOX_H_
33