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 namespace pdfium { 16 17 class CFWL_MessageMouse final : public CFWL_Message { 18 public: 19 enum class MouseCommand : uint8_t { 20 kLeftButtonDown, 21 kLeftButtonUp, 22 kLeftButtonDblClk, 23 kRightButtonDown, 24 kRightButtonUp, 25 kRightButtonDblClk, 26 kMove, 27 kEnter, 28 kLeave, 29 kHover 30 }; 31 32 CFWL_MessageMouse(CFWL_Widget* pDstTarget, 33 MouseCommand cmd, 34 Mask<XFA_FWL_KeyFlag> flags, 35 CFX_PointF pos); 36 ~CFWL_MessageMouse() override; 37 38 const MouseCommand m_dwCmd; 39 Mask<XFA_FWL_KeyFlag> m_dwFlags; 40 CFX_PointF m_pos; 41 }; 42 43 } // namespace pdfium 44 45 // TODO(crbug.com/42271761): Remove. 46 using pdfium::CFWL_MessageMouse; 47 48 #endif // XFA_FWL_CFWL_MESSAGEMOUSE_H_ 49