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

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

Issue 2095653002: Remove NULL in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 5 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.cpp ('k') | xfa/fxfa/parser/xfa_script_imp.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 #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 14 matching lines...) Expand all
25 public: 25 public:
26 explicit CXFA_ScriptContext(CXFA_Document* pDocument); 26 explicit CXFA_ScriptContext(CXFA_Document* pDocument);
27 ~CXFA_ScriptContext(); 27 ~CXFA_ScriptContext();
28 28
29 void Initialize(v8::Isolate* pIsolate); 29 void Initialize(v8::Isolate* pIsolate);
30 void SetEventParam(CXFA_EventParam param) { m_eventParam = param; } 30 void SetEventParam(CXFA_EventParam param) { m_eventParam = param; }
31 CXFA_EventParam* GetEventParam() { return &m_eventParam; } 31 CXFA_EventParam* GetEventParam() { return &m_eventParam; }
32 FX_BOOL RunScript(XFA_SCRIPTLANGTYPE eScriptType, 32 FX_BOOL RunScript(XFA_SCRIPTLANGTYPE eScriptType,
33 const CFX_WideStringC& wsScript, 33 const CFX_WideStringC& wsScript,
34 CFXJSE_Value* pRetValue, 34 CFXJSE_Value* pRetValue,
35 CXFA_Object* pThisObject = NULL); 35 CXFA_Object* pThisObject = nullptr);
36 36
37 int32_t ResolveObjects(CXFA_Object* refNode, 37 int32_t ResolveObjects(CXFA_Object* refNode,
38 const CFX_WideStringC& wsExpression, 38 const CFX_WideStringC& wsExpression,
39 XFA_RESOLVENODE_RS& resolveNodeRS, 39 XFA_RESOLVENODE_RS& resolveNodeRS,
40 uint32_t dwStyles = XFA_RESOLVENODE_Children, 40 uint32_t dwStyles = XFA_RESOLVENODE_Children,
41 CXFA_Node* bindNode = NULL); 41 CXFA_Node* bindNode = nullptr);
42 CFXJSE_Value* GetJSValueFromMap(CXFA_Object* pObject); 42 CFXJSE_Value* GetJSValueFromMap(CXFA_Object* pObject);
43 void AddToCacheList(std::unique_ptr<CXFA_NodeList> pList); 43 void AddToCacheList(std::unique_ptr<CXFA_NodeList> pList);
44 CXFA_Object* GetThisObject() const { return m_pThisObject; } 44 CXFA_Object* GetThisObject() const { return m_pThisObject; }
45 v8::Isolate* GetRuntime() const { return m_pIsolate; } 45 v8::Isolate* GetRuntime() const { return m_pIsolate; }
46 46
47 int32_t GetIndexByName(CXFA_Node* refNode); 47 int32_t GetIndexByName(CXFA_Node* refNode);
48 int32_t GetIndexByClassName(CXFA_Node* refNode); 48 int32_t GetIndexByClassName(CXFA_Node* refNode);
49 void GetSomExpression(CXFA_Node* refNode, CFX_WideString& wsExpression); 49 void GetSomExpression(CXFA_Node* refNode, CFX_WideString& wsExpression);
50 50
51 void SetNodesOfRunScript(CXFA_NodeArray* pArray); 51 void SetNodesOfRunScript(CXFA_NodeArray* pArray);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 std::vector<std::unique_ptr<CXFA_NodeList>> m_CacheList; 117 std::vector<std::unique_ptr<CXFA_NodeList>> m_CacheList;
118 CXFA_NodeArray* m_pScriptNodeArray; 118 CXFA_NodeArray* m_pScriptNodeArray;
119 std::unique_ptr<CXFA_ResolveProcessor> m_ResolveProcessor; 119 std::unique_ptr<CXFA_ResolveProcessor> m_ResolveProcessor;
120 std::unique_ptr<CXFA_FM2JSContext> m_FM2JSContext; 120 std::unique_ptr<CXFA_FM2JSContext> m_FM2JSContext;
121 CXFA_Object* m_pThisObject; 121 CXFA_Object* m_pThisObject;
122 uint32_t m_dwBuiltInInFlags; 122 uint32_t m_dwBuiltInInFlags;
123 XFA_ATTRIBUTEENUM m_eRunAtType; 123 XFA_ATTRIBUTEENUM m_eRunAtType;
124 }; 124 };
125 125
126 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_IMP_H_ 126 #endif // XFA_FXFA_PARSER_XFA_SCRIPT_IMP_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp ('k') | xfa/fxfa/parser/xfa_script_imp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698