Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
|
dsinclair
2016/06/15 17:08:03
Can we rename this and the .h to be cxfa_eventpara
Wei Li
2016/06/15 17:57:36
Done.
| |
| 7 #include "xfa/fxfa/include/xfa_eventparam.h" | |
| 8 | |
| 9 #include "xfa/fxfa/include/fxfa.h" | |
| 10 | |
| 11 CXFA_EventParam::CXFA_EventParam() | |
| 12 : m_pTarget(nullptr), | |
| 13 m_eType(XFA_EVENT_Unknown), | |
| 14 m_bCancelAction(FALSE), | |
| 15 m_iCommitKey(0), | |
| 16 m_bKeyDown(FALSE), | |
| 17 m_bModifier(FALSE), | |
| 18 m_bReenter(FALSE), | |
| 19 m_iSelEnd(0), | |
| 20 m_iSelStart(0), | |
| 21 m_bShift(FALSE), | |
| 22 m_bIsFormReady(FALSE), | |
| 23 m_iValidateActivities(XFA_VALIDATE_preSubmit) {} | |
| 24 | |
| 25 CXFA_EventParam::~CXFA_EventParam() {} | |
| 26 | |
| 27 CXFA_EventParam::CXFA_EventParam(const CXFA_EventParam& other) = default; | |
| 28 | |
| 29 void CXFA_EventParam::Reset() { | |
| 30 m_wsChange.clear(); | |
| 31 m_bCancelAction = FALSE; | |
| 32 m_iCommitKey = 0; | |
| 33 m_wsFullText.clear(); | |
| 34 m_bKeyDown = FALSE; | |
| 35 m_bModifier = FALSE; | |
| 36 m_wsNewContentType.clear(); | |
| 37 m_wsNewText.clear(); | |
| 38 m_wsPrevContentType.clear(); | |
| 39 m_wsPrevText.clear(); | |
| 40 m_bReenter = FALSE; | |
| 41 m_iSelEnd = 0; | |
| 42 m_iSelStart = 0; | |
| 43 m_bShift = FALSE; | |
| 44 m_wsSoapFaultCode.clear(); | |
| 45 m_wsSoapFaultString.clear(); | |
| 46 m_bIsFormReady = FALSE; | |
| 47 m_iValidateActivities = XFA_VALIDATE_preSubmit; | |
| 48 } | |
| OLD | NEW |