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 #include "xfa/fwl/cfwl_messagemouse.h"
8
9 #include <memory>
10
11 #include "third_party/base/ptr_util.h"
12
CFWL_MessageMouse(CFWL_Widget * pDstTarget,FWL_MouseCommand cmd)13 CFWL_MessageMouse::CFWL_MessageMouse(CFWL_Widget* pDstTarget,
14 FWL_MouseCommand cmd)
15 : CFWL_Message(CFWL_Message::Type::Mouse, nullptr, pDstTarget),
16 m_dwCmd(cmd) {}
17
CFWL_MessageMouse(CFWL_Widget * pDstTarget,FWL_MouseCommand cmd,uint32_t flags,CFX_PointF pos)18 CFWL_MessageMouse::CFWL_MessageMouse(CFWL_Widget* pDstTarget,
19 FWL_MouseCommand cmd,
20 uint32_t flags,
21 CFX_PointF pos)
22 : CFWL_Message(CFWL_Message::Type::Mouse, nullptr, pDstTarget),
23 m_dwCmd(cmd),
24 m_dwFlags(flags),
25 m_pos(pos) {}
26
27 CFWL_MessageMouse::~CFWL_MessageMouse() = default;
28