• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef XFA_FWL_CFWL_EVENTTEXTWILLCHANGE_H_
8 #define XFA_FWL_CFWL_EVENTTEXTWILLCHANGE_H_
9 
10 #include "xfa/fwl/cfwl_event.h"
11 
12 class CFWL_EventTextWillChange final : public CFWL_Event {
13  public:
14   explicit CFWL_EventTextWillChange(CFWL_Widget* pSrcTarget);
15   ~CFWL_EventTextWillChange() override;
16 
17   WideString change_text;
18   WideString previous_text;
19   bool cancelled = false;
20   size_t selection_start = 0;
21   size_t selection_end = 0;
22 };
23 
24 #endif  // XFA_FWL_CFWL_EVENTTEXTWILLCHANGE_H_
25