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_messagemousewheel.h"
8 
9 #include <memory>
10 
11 #include "third_party/base/ptr_util.h"
12 
CFWL_MessageMouseWheel(CFWL_Widget * pDstTarget,uint32_t flags,CFX_PointF pos,CFX_PointF delta)13 CFWL_MessageMouseWheel::CFWL_MessageMouseWheel(CFWL_Widget* pDstTarget,
14                                                uint32_t flags,
15                                                CFX_PointF pos,
16                                                CFX_PointF delta)
17     : CFWL_Message(CFWL_Message::Type::MouseWheel, nullptr, pDstTarget),
18       m_dwFlags(flags),
19       m_pos(pos),
20       m_delta(delta) {}
21 
22 CFWL_MessageMouseWheel::~CFWL_MessageMouseWheel() = default;
23