diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-02-08 21:01:01 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-08 21:01:01 +0000 |
commit | 3645652fb6cad1f94c9647f033a8e300bc37d521 (patch) | |
tree | 136dd8524455efdc4bbc32eed7914d3a3b5376e0 /fxjs/cfxjse_engine.h | |
parent | 3c62d20a385d31315a392206de53c9fe72a08db1 (diff) | |
download | pdfium-3645652fb6cad1f94c9647f033a8e300bc37d521.tar.xz |
Move XFA-specific methods out of CJS_V8.
These belong more properly in CFXJS_Engine, and a small amount of
casting is required to get to the sub-class.
Change-Id: Id954d182b7a7d51fe0a522c04a50a1b362746c72
Reviewed-on: https://pdfium-review.googlesource.com/26050
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_engine.h')
-rw-r--r-- | fxjs/cfxjse_engine.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fxjs/cfxjse_engine.h b/fxjs/cfxjse_engine.h index 1fcbc5eacb..2e44decd8f 100644 --- a/fxjs/cfxjse_engine.h +++ b/fxjs/cfxjse_engine.h @@ -13,6 +13,7 @@ #include "fxjs/cfxjse_formcalc_context.h" #include "fxjs/cjs_v8.h" +#include "v8/include/v8.h" #include "xfa/fxfa/cxfa_eventparam.h" #include "xfa/fxfa/parser/cxfa_document.h" #include "xfa/fxfa/parser/cxfa_script.h" @@ -84,6 +85,10 @@ class CFXJSE_Engine : public CJS_V8 { std::vector<CXFA_Node*>* GetUpObjectArray() { return &m_upObjectArray; } CXFA_Document* GetDocument() const { return m_pDocument.Get(); } + CXFA_Object* ToXFAObject(v8::Local<v8::Value> obj); + v8::Local<v8::Value> NewXFAObject(CXFA_Object* obj, + v8::Global<v8::FunctionTemplate>& tmpl); + private: CFXJSE_Context* CreateVariablesContext(CXFA_Node* pScriptNode, CXFA_Node* pSubform); |