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

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

Issue 1830323006: Remove FX_DWORD from XFA. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « xfa/fxfa/parser/xfa_parser_imp.cpp ('k') | xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "xfa/fxfa/parser/xfa_script_eventpseudomodel.h" 7 #include "xfa/fxfa/parser/xfa_script_eventpseudomodel.h"
8 8
9 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h" 9 #include "xfa/fxfa/fm2js/xfa_fm2jsapi.h"
10 #include "xfa/fxfa/parser/xfa_docdata.h" 10 #include "xfa/fxfa/parser/xfa_docdata.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 FX_BOOL& bValue, 46 FX_BOOL& bValue,
47 FX_BOOL bSetting) { 47 FX_BOOL bSetting) {
48 if (bSetting) { 48 if (bSetting) {
49 bValue = FXJSE_Value_ToBoolean(hValue); 49 bValue = FXJSE_Value_ToBoolean(hValue);
50 } else { 50 } else {
51 FXJSE_Value_SetBoolean(hValue, bValue); 51 FXJSE_Value_SetBoolean(hValue, bValue);
52 } 52 }
53 } 53 }
54 void CScript_EventPseudoModel::Script_EventPseudoModel_Property( 54 void CScript_EventPseudoModel::Script_EventPseudoModel_Property(
55 FXJSE_HVALUE hValue, 55 FXJSE_HVALUE hValue,
56 FX_DWORD dwFlag, 56 uint32_t dwFlag,
57 FX_BOOL bSetting) { 57 FX_BOOL bSetting) {
58 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext(); 58 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext();
59 if (!pScriptContext) { 59 if (!pScriptContext) {
60 return; 60 return;
61 } 61 }
62 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam(); 62 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam();
63 if (!pEventParam) { 63 if (!pEventParam) {
64 return; 64 return;
65 } 65 }
66 switch (dwFlag) { 66 switch (dwFlag) {
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext(); 261 IXFA_ScriptContext* pScriptContext = m_pDocument->GetScriptContext();
262 if (!pScriptContext) { 262 if (!pScriptContext) {
263 return; 263 return;
264 } 264 }
265 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam(); 265 CXFA_EventParam* pEventParam = pScriptContext->GetEventParam();
266 if (!pEventParam) { 266 if (!pEventParam) {
267 return; 267 return;
268 } 268 }
269 pEventParam->Reset(); 269 pEventParam->Reset();
270 } 270 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_parser_imp.cpp ('k') | xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698