Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: xfa/src/fxfa/src/parser/xfa_script_eventpseudomodel.cpp

Issue 1570743002: XFA: Remove many relative includes in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: address some comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../../../foxitlib.h" 7 #include "xfa/src/foxitlib.h"
8 #include "../common/xfa_utils.h" 8 #include "xfa/src/fxfa/src/common/xfa_utils.h"
9 #include "../common/xfa_object.h" 9 #include "xfa/src/fxfa/src/common/xfa_object.h"
10 #include "../common/xfa_document.h" 10 #include "xfa/src/fxfa/src/common/xfa_document.h"
11 #include "../common/xfa_parser.h" 11 #include "xfa/src/fxfa/src/common/xfa_parser.h"
12 #include "../common/xfa_script.h" 12 #include "xfa/src/fxfa/src/common/xfa_script.h"
13 #include "../common/xfa_docdata.h" 13 #include "xfa/src/fxfa/src/common/xfa_docdata.h"
14 #include "../common/xfa_doclayout.h" 14 #include "xfa/src/fxfa/src/common/xfa_doclayout.h"
15 #include "../common/xfa_debug.h" 15 #include "xfa/src/fxfa/src/common/xfa_localemgr.h"
16 #include "../common/xfa_localemgr.h" 16 #include "xfa/src/fxfa/src/common/xfa_fm2jsapi.h"
17 #include "../common/xfa_fm2jsapi.h"
18 #include "xfa_debug_parser.h"
19 #include "xfa_script_eventpseudomodel.h" 17 #include "xfa_script_eventpseudomodel.h"
20 CScript_EventPseudoModel::CScript_EventPseudoModel(CXFA_Document* pDocument) 18 CScript_EventPseudoModel::CScript_EventPseudoModel(CXFA_Document* pDocument)
21 : CXFA_OrdinaryObject(pDocument, XFA_ELEMENT_EventPseudoModel) { 19 : CXFA_OrdinaryObject(pDocument, XFA_ELEMENT_EventPseudoModel) {
22 m_uScriptHash = XFA_HASHCODE_Event; 20 m_uScriptHash = XFA_HASHCODE_Event;
23 } 21 }
24 CScript_EventPseudoModel::~CScript_EventPseudoModel() {} 22 CScript_EventPseudoModel::~CScript_EventPseudoModel() {}
25 void Script_EventPseudoModel_StringProperty(FXJSE_HVALUE hValue, 23 void Script_EventPseudoModel_StringProperty(FXJSE_HVALUE hValue,
26 CFX_WideString& wsValue, 24 CFX_WideString& wsValue,
27 FX_BOOL bSetting) { 25 FX_BOOL bSetting) {
28 if (bSetting) { 26 if (bSetting) {
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext(); 259 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext();
262 if (!pScriptContext) { 260 if (!pScriptContext) {
263 return; 261 return;
264 } 262 }
265 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam(); 263 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam();
266 if (!pEventParam) { 264 if (!pEventParam) {
267 return; 265 return;
268 } 266 }
269 pEventParam->Reset(); 267 pEventParam->Reset();
270 } 268 }
OLDNEW
« no previous file with comments | « xfa/src/fxfa/src/parser/xfa_script_datawindow.cpp ('k') | xfa/src/fxfa/src/parser/xfa_script_hostpseudomodel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698