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 #include "xfa/fwl/cfwl_eventtextwillchange.h"
8
CFWL_EventTextWillChange(CFWL_Widget * pSrcTarget,const WideString & change_text,const WideString & previous_text,size_t selection_start,size_t selection_end)9 CFWL_EventTextWillChange::CFWL_EventTextWillChange(
10 CFWL_Widget* pSrcTarget,
11 const WideString& change_text,
12 const WideString& previous_text,
13 size_t selection_start,
14 size_t selection_end)
15 : CFWL_Event(CFWL_Event::Type::TextWillChange, pSrcTarget),
16 change_text_(change_text),
17 previous_text_(previous_text),
18 selection_start_(selection_start),
19 selection_end_(selection_end) {}
20
21 CFWL_EventTextWillChange::~CFWL_EventTextWillChange() = default;
22