xref: /aosp_15_r20/external/pdfium/xfa/fwl/cfwl_eventscroll.cpp (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1*3ac0a46fSAndroid Build Coastguard Worker // Copyright 2016 The PDFium Authors
2*3ac0a46fSAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
3*3ac0a46fSAndroid Build Coastguard Worker // found in the LICENSE file.
4*3ac0a46fSAndroid Build Coastguard Worker 
5*3ac0a46fSAndroid Build Coastguard Worker // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6*3ac0a46fSAndroid Build Coastguard Worker 
7*3ac0a46fSAndroid Build Coastguard Worker #include "xfa/fwl/cfwl_eventscroll.h"
8*3ac0a46fSAndroid Build Coastguard Worker 
CFWL_EventScroll(CFWL_Widget * pSrcTarget,Code code,float pos)9*3ac0a46fSAndroid Build Coastguard Worker CFWL_EventScroll::CFWL_EventScroll(CFWL_Widget* pSrcTarget,
10*3ac0a46fSAndroid Build Coastguard Worker                                    Code code,
11*3ac0a46fSAndroid Build Coastguard Worker                                    float pos)
12*3ac0a46fSAndroid Build Coastguard Worker     : CFWL_Event(CFWL_Event::Type::Scroll, pSrcTarget),
13*3ac0a46fSAndroid Build Coastguard Worker       m_iScrollCode(code),
14*3ac0a46fSAndroid Build Coastguard Worker       m_fPos(pos) {}
15*3ac0a46fSAndroid Build Coastguard Worker 
16*3ac0a46fSAndroid Build Coastguard Worker CFWL_EventScroll::~CFWL_EventScroll() = default;
17