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

Side by Side Diff: xfa/fxfa/parser/xfa_script_imp.h

Issue 1835703002: Remove FX_DWORD from XFA, part 2 (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_script_hostpseudomodel.h ('k') | xfa/fxfa/parser/xfa_script_nodehelper.h » ('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 #ifndef XFA_FXFA_PARSER_XFA_SCRIPT_IMP_H_ 7 #ifndef XFA_FXFA_PARSER_XFA_SCRIPT_IMP_H_
8 #define XFA_FXFA_PARSER_XFA_SCRIPT_IMP_H_ 8 #define XFA_FXFA_PARSER_XFA_SCRIPT_IMP_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 17 matching lines...) Expand all
28 virtual void SetEventParam(CXFA_EventParam param) { m_eventParam = param; } 28 virtual void SetEventParam(CXFA_EventParam param) { m_eventParam = param; }
29 virtual CXFA_EventParam* GetEventParam() { return &m_eventParam; } 29 virtual CXFA_EventParam* GetEventParam() { return &m_eventParam; }
30 virtual FX_BOOL RunScript(XFA_SCRIPTLANGTYPE eScriptType, 30 virtual FX_BOOL RunScript(XFA_SCRIPTLANGTYPE eScriptType,
31 const CFX_WideStringC& wsScript, 31 const CFX_WideStringC& wsScript,
32 FXJSE_HVALUE hRetValue, 32 FXJSE_HVALUE hRetValue,
33 CXFA_Object* pThisObject = NULL); 33 CXFA_Object* pThisObject = NULL);
34 34
35 virtual int32_t ResolveObjects(CXFA_Object* refNode, 35 virtual int32_t ResolveObjects(CXFA_Object* refNode,
36 const CFX_WideStringC& wsExpression, 36 const CFX_WideStringC& wsExpression,
37 XFA_RESOLVENODE_RS& resolveNodeRS, 37 XFA_RESOLVENODE_RS& resolveNodeRS,
38 FX_DWORD dwStyles = XFA_RESOLVENODE_Children, 38 uint32_t dwStyles = XFA_RESOLVENODE_Children,
39 CXFA_Node* bindNode = NULL); 39 CXFA_Node* bindNode = NULL);
40 virtual FXJSE_HVALUE GetJSValueFromMap(CXFA_Object* pObject); 40 virtual FXJSE_HVALUE GetJSValueFromMap(CXFA_Object* pObject);
41 virtual void CacheList(CXFA_NodeList* pList) { m_CacheListArray.Add(pList); } 41 virtual void CacheList(CXFA_NodeList* pList) { m_CacheListArray.Add(pList); }
42 virtual CXFA_Object* GetThisObject() const { return m_pThisObject; } 42 virtual CXFA_Object* GetThisObject() const { return m_pThisObject; }
43 virtual FXJSE_HRUNTIME GetRuntime() const { return m_hJsRuntime; } 43 virtual FXJSE_HRUNTIME GetRuntime() const { return m_hJsRuntime; }
44 44
45 virtual int32_t GetIndexByName(CXFA_Node* refNode); 45 virtual int32_t GetIndexByName(CXFA_Node* refNode);
46 virtual int32_t GetIndexByClassName(CXFA_Node* refNode); 46 virtual int32_t GetIndexByClassName(CXFA_Node* refNode);
47 virtual void GetSomExpression(CXFA_Node* refNode, 47 virtual void GetSomExpression(CXFA_Node* refNode,
48 CFX_WideString& wsExpression); 48 CFX_WideString& wsExpression);
49 49
50 virtual void SetNodesOfRunScript(CXFA_NodeArray* pArray); 50 virtual void SetNodesOfRunScript(CXFA_NodeArray* pArray);
51 virtual void AddNodesOfRunScript(const CXFA_NodeArray& nodes); 51 virtual void AddNodesOfRunScript(const CXFA_NodeArray& nodes);
52 virtual void AddNodesOfRunScript(CXFA_Node* pNode); 52 virtual void AddNodesOfRunScript(CXFA_Node* pNode);
53 virtual FXJSE_HCLASS GetJseNormalClass(); 53 virtual FXJSE_HCLASS GetJseNormalClass();
54 54
55 virtual void SetRunAtType(XFA_ATTRIBUTEENUM eRunAt) { m_eRunAtType = eRunAt; } 55 virtual void SetRunAtType(XFA_ATTRIBUTEENUM eRunAt) { m_eRunAtType = eRunAt; }
56 virtual FX_BOOL IsRunAtClient() { 56 virtual FX_BOOL IsRunAtClient() {
57 return m_eRunAtType != XFA_ATTRIBUTEENUM_Server; 57 return m_eRunAtType != XFA_ATTRIBUTEENUM_Server;
58 } 58 }
59 FX_BOOL QueryNodeByFlag(CXFA_Node* refNode, 59 FX_BOOL QueryNodeByFlag(CXFA_Node* refNode,
60 const CFX_WideStringC& propname, 60 const CFX_WideStringC& propname,
61 FXJSE_HVALUE hValue, 61 FXJSE_HVALUE hValue,
62 FX_DWORD dwFlag, 62 uint32_t dwFlag,
63 FX_BOOL bSetting); 63 FX_BOOL bSetting);
64 FX_BOOL QueryVariableHValue(CXFA_Node* pScriptNode, 64 FX_BOOL QueryVariableHValue(CXFA_Node* pScriptNode,
65 const CFX_ByteStringC& szPropName, 65 const CFX_ByteStringC& szPropName,
66 FXJSE_HVALUE hValue, 66 FXJSE_HVALUE hValue,
67 FX_BOOL bGetter); 67 FX_BOOL bGetter);
68 FX_BOOL QueryBuiltinHValue(const CFX_ByteStringC& szPropName, 68 FX_BOOL QueryBuiltinHValue(const CFX_ByteStringC& szPropName,
69 FXJSE_HVALUE hValue); 69 FXJSE_HVALUE hValue);
70 static void GlobalPropertyGetter(FXJSE_HOBJECT hObject, 70 static void GlobalPropertyGetter(FXJSE_HOBJECT hObject,
71 const CFX_ByteStringC& szPropName, 71 const CFX_ByteStringC& szPropName,
72 FXJSE_HVALUE hValue); 72 FXJSE_HVALUE hValue);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 CFX_MapPtrTemplate<CXFA_Object*, FXJSE_HVALUE> m_mapXFAToHValue; 114 CFX_MapPtrTemplate<CXFA_Object*, FXJSE_HVALUE> m_mapXFAToHValue;
115 FXJSE_CLASS m_JsGlobalVariablesClass; 115 FXJSE_CLASS m_JsGlobalVariablesClass;
116 CFX_MapPtrTemplate<CXFA_Object*, FXJSE_HCONTEXT> m_mapVariableToHValue; 116 CFX_MapPtrTemplate<CXFA_Object*, FXJSE_HCONTEXT> m_mapVariableToHValue;
117 CXFA_EventParam m_eventParam; 117 CXFA_EventParam m_eventParam;
118 CXFA_NodeArray m_upObjectArray; 118 CXFA_NodeArray m_upObjectArray;
119 CFX_PtrArray m_CacheListArray; 119 CFX_PtrArray m_CacheListArray;
120 CXFA_NodeArray* m_pScriptNodeArray; 120 CXFA_NodeArray* m_pScriptNodeArray;
121 CXFA_ResolveProcessor* m_pResolveProcessor; 121 CXFA_ResolveProcessor* m_pResolveProcessor;
122 XFA_HFM2JSCONTEXT m_hFM2JSContext; 122 XFA_HFM2JSCONTEXT m_hFM2JSContext;
123 CXFA_Object* m_pThisObject; 123 CXFA_Object* m_pThisObject;
124 FX_DWORD m_dwBuiltInInFlags; 124 uint32_t m_dwBuiltInInFlags;
125 XFA_ATTRIBUTEENUM m_eRunAtType; 125 XFA_ATTRIBUTEENUM m_eRunAtType;
126 }; 126 };
127 127
128 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_IMP_H_ 128 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_IMP_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_script_hostpseudomodel.h ('k') | xfa/fxfa/parser/xfa_script_nodehelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698