• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
9 namespace pdfium {
10 
CFWL_EventTextWillChange(CFWL_Widget * pSrcTarget,const WideString & change_text,const WideString & previous_text,size_t selection_start,size_t selection_end)11 CFWL_EventTextWillChange::CFWL_EventTextWillChange(
12     CFWL_Widget* pSrcTarget,
13     const WideString& change_text,
14     const WideString& previous_text,
15     size_t selection_start,
16     size_t selection_end)
17     : CFWL_Event(CFWL_Event::Type::TextWillChange, pSrcTarget),
18       change_text_(change_text),
19       previous_text_(previous_text),
20       selection_start_(selection_start),
21       selection_end_(selection_end) {}
22 
23 CFWL_EventTextWillChange::~CFWL_EventTextWillChange() = default;
24 
25 }  // namespace pdfium
26