cfwl_messagemouse.cpp revision 33357cad1fd1321a2b38d2963e2585f27ce980a2
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
13CFWL_MessageMouse::CFWL_MessageMouse(CFWL_Widget* pSrcTarget,
14                                     CFWL_Widget* pDstTarget)
15    : CFWL_Message(CFWL_Message::Type::Mouse, pSrcTarget, pDstTarget) {}
16
17CFWL_MessageMouse::CFWL_MessageMouse(const CFWL_MessageMouse& other) = default;
18
19CFWL_MessageMouse::~CFWL_MessageMouse() {}
20
21std::unique_ptr<CFWL_Message> CFWL_MessageMouse::Clone() {
22  return pdfium::MakeUnique<CFWL_MessageMouse>(*this);
23}
24