diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-31 11:54:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-31 11:54:02 -0700 |
commit | 48d91dd174933b4881fb500b76fb2e3ecbc7f548 (patch) | |
tree | 2877c71ea9a22ed34b2addff4590075b5f38b5cf /xfa/fxfa/fm2js/xfa_fm2jscontext.h | |
parent | 86fad999ba59b1f8780582cc683b008880aab42e (diff) | |
download | pdfium-48d91dd174933b4881fb500b76fb2e3ecbc7f548.tar.xz |
xfa_fm2jscontext formatting and cleanup - pt I
Review-Url: https://codereview.chromium.org/2025723002
Diffstat (limited to 'xfa/fxfa/fm2js/xfa_fm2jscontext.h')
-rw-r--r-- | xfa/fxfa/fm2js/xfa_fm2jscontext.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/xfa/fxfa/fm2js/xfa_fm2jscontext.h b/xfa/fxfa/fm2js/xfa_fm2jscontext.h index 68db0b19da..3a53533991 100644 --- a/xfa/fxfa/fm2js/xfa_fm2jscontext.h +++ b/xfa/fxfa/fm2js/xfa_fm2jscontext.h @@ -427,29 +427,27 @@ class CXFA_FM2JSContext { uint32_t index); static FX_BOOL ValueIsNull(CFXJSE_Value* pThis, CFXJSE_Value* pValue); static int32_t ValueToInteger(CFXJSE_Value* pThis, CFXJSE_Value* pValue); - static FX_DOUBLE StringToDouble(const CFX_ByteStringC& szStringVal); static FX_FLOAT ValueToFloat(CFXJSE_Value* pThis, CFXJSE_Value* pValue); static FX_DOUBLE ValueToDouble(CFXJSE_Value* pThis, CFXJSE_Value* pValue); static void ValueToUTF8String(CFXJSE_Value* pValue, CFX_ByteString& outputValue); - CXFA_FM2JSContext(); + CXFA_FM2JSContext(v8::Isolate* pScriptIsolate, + CFXJSE_Context* pScriptContext, + CXFA_Document* pDoc); ~CXFA_FM2JSContext(); - void Initialize(v8::Isolate* pScriptIsolate, - CFXJSE_Context* pScriptContext, - CXFA_Document* pDoc); void GlobalPropertyGetter(CFXJSE_Value* pValue); + private: v8::Isolate* GetScriptRuntime() const { return m_pIsolate; } CXFA_Document* GetDocument() const { return m_pDocument; } void ThrowScriptErrorMessage(int32_t iStringID, ...); - private: v8::Isolate* m_pIsolate; CFXJSE_Class* m_pFMClass; std::unique_ptr<CFXJSE_Value> m_pValue; - CXFA_Document* m_pDocument; + CXFA_Document* const m_pDocument; }; #endif // XFA_FXFA_FM2JS_XFA_FM2JSCONTEXT_H_ |