summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_document.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-01 13:12:39 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-01 13:12:39 +0000
commit3fff90a670d860a7b0319aa0edf8628917d0a122 (patch)
treecd41a597e4a400dfa7ced5eea330fdf9f5ca832f /xfa/fxfa/parser/cxfa_document.h
parent994f20cfb76f4902491a94c4ef61f55705fc124d (diff)
downloadpdfium-3fff90a670d860a7b0319aa0edf8628917d0a122.tar.xz
Move some XFA JS code into fxjs/
This CL renames cxfa_scriptcontext to cfxjse_engine and cxfa_fm2jscontext to cfxjse_formcalc_context. From reading the code, the script context appears to handle the v8 setup and object code. The formcalc context code is related to handling the JS code generated from the transpiler. I, think, these new names make the intended usage clearer. They also move the code into fxjs/ to keep along side the rest of the JS code. Change-Id: I50619fbe48ca1f553a44cf0e0cb0210be8e45e4f Reviewed-on: https://pdfium-review.googlesource.com/17130 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_document.h')
-rw-r--r--xfa/fxfa/parser/cxfa_document.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_document.h b/xfa/fxfa/parser/cxfa_document.h
index 69154b21e8..7b71f7bf56 100644
--- a/xfa/fxfa/parser/cxfa_document.h
+++ b/xfa/fxfa/parser/cxfa_document.h
@@ -55,14 +55,14 @@ class CXFA_LayoutProcessor;
class CXFA_DocumentParser;
class CXFA_ContainerLayoutItem;
class CXFA_FFNotify;
-class CXFA_ScriptContext;
+class CFXJSE_Engine;
class CXFA_Document {
public:
explicit CXFA_Document(CXFA_DocumentParser* pParser);
~CXFA_Document();
- CXFA_ScriptContext* InitScriptContext(v8::Isolate* pIsolate);
+ CFXJSE_Engine* InitScriptContext(v8::Isolate* pIsolate);
CXFA_Node* GetRoot() const { return m_pRootNode; }
@@ -74,7 +74,7 @@ class CXFA_Document {
CXFA_Node* GetNotBindNode(const std::vector<CXFA_Object*>& arrayNodes);
CXFA_LayoutProcessor* GetLayoutProcessor();
CXFA_LayoutProcessor* GetDocLayout();
- CXFA_ScriptContext* GetScriptContext();
+ CFXJSE_Engine* GetScriptContext();
void SetRoot(CXFA_Node* pNewRoot);
@@ -111,7 +111,7 @@ class CXFA_Document {
private:
CXFA_DocumentParser* m_pParser;
CXFA_Node* m_pRootNode;
- std::unique_ptr<CXFA_ScriptContext> m_pScriptContext;
+ std::unique_ptr<CFXJSE_Engine> m_pScriptContext;
std::unique_ptr<CXFA_LayoutProcessor> m_pLayoutProcessor;
std::unique_ptr<CXFA_LocaleMgr> m_pLocalMgr;
std::unique_ptr<CScript_DataWindow> m_pScriptDataWindow;