1 // Copyright 2016 PDFium Authors. All rights reserved.
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 "xfa/fwl/cfwl_message.h"
12 
13 enum class FWL_MouseCommand {
14   LeftButtonDown,
15   LeftButtonUp,
16   LeftButtonDblClk,
17   RightButtonDown,
18   RightButtonUp,
19   RightButtonDblClk,
20   Move,
21   Enter,
22   Leave,
23   Hover
24 };
25 
26 class CFWL_MessageMouse final : public CFWL_Message {
27  public:
28   CFWL_MessageMouse(CFWL_Widget* pDstTarget, FWL_MouseCommand cmd);
29   CFWL_MessageMouse(CFWL_Widget* pDstTarget,
30                     FWL_MouseCommand cmd,
31                     uint32_t flags,
32                     CFX_PointF pos);
33   ~CFWL_MessageMouse() override;
34 
35   const FWL_MouseCommand m_dwCmd;
36   uint32_t m_dwFlags = 0;
37   CFX_PointF m_pos;
38 };
39 
40 #endif  // XFA_FWL_CFWL_MESSAGEMOUSE_H_
41