xref: /aosp_15_r20/external/pdfium/xfa/fwl/cfwl_messagemouse.h (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2016 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 XFA_FWL_CFWL_MESSAGEMOUSE_H_
8 #define XFA_FWL_CFWL_MESSAGEMOUSE_H_
9 
10 #include "core/fxcrt/fx_coordinates.h"
11 #include "core/fxcrt/mask.h"
12 #include "xfa/fwl/cfwl_message.h"
13 #include "xfa/fwl/fwl_widgetdef.h"
14 
15 class CFWL_MessageMouse final : public CFWL_Message {
16  public:
17   enum class MouseCommand : uint8_t {
18     kLeftButtonDown,
19     kLeftButtonUp,
20     kLeftButtonDblClk,
21     kRightButtonDown,
22     kRightButtonUp,
23     kRightButtonDblClk,
24     kMove,
25     kEnter,
26     kLeave,
27     kHover
28   };
29 
30   CFWL_MessageMouse(CFWL_Widget* pDstTarget,
31                     MouseCommand cmd,
32                     Mask<XFA_FWL_KeyFlag> flags,
33                     CFX_PointF pos);
34   ~CFWL_MessageMouse() override;
35 
36   const MouseCommand m_dwCmd;
37   Mask<XFA_FWL_KeyFlag> m_dwFlags;
38   CFX_PointF m_pos;
39 };
40 
41 #endif  // XFA_FWL_CFWL_MESSAGEMOUSE_H_
42