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 #ifndef XFA_FWL_CFWL_EVENTVALIDATE_H_ 8 #define XFA_FWL_CFWL_EVENTVALIDATE_H_ 9 10 #include "core/fxcrt/widestring.h" 11 #include "xfa/fwl/cfwl_event.h" 12 13 namespace pdfium { 14 15 class CFWL_EventValidate final : public CFWL_Event { 16 public: 17 CFWL_EventValidate(CFWL_Widget* pSrcTarget, const WideString& wsInsert); 18 ~CFWL_EventValidate() override; 19 GetInsert()20 WideString GetInsert() const { return m_wsInsert; } GetValidate()21 bool GetValidate() const { return m_bValidate; } SetValidate(bool bValidate)22 void SetValidate(bool bValidate) { m_bValidate = bValidate; } 23 24 protected: 25 const WideString m_wsInsert; 26 bool m_bValidate = true; 27 }; 28 29 } // namespace pdfium 30 31 // TODO(crbug.com/42271761): Remove. 32 using pdfium::CFWL_EventValidate; 33 34 #endif // XFA_FWL_CFWL_EVENTVALIDATE_H_ 35