Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / fpdfsdk / include / javascript / JS_Runtime.h
index 0a195f1..217a985 100644 (file)
@@ -37,7 +37,7 @@ public:
        virtual void                                                    Enter();
        virtual FX_BOOL                                                 IsEntered();
 
-       CPDFDoc_Environment *                                                   GetReaderApp(){return m_pApp;}
+       CPDFDoc_Environment *                                   GetReaderApp(){return m_pApp;}
 
        FX_BOOL                                                                 InitJSObjects();
 
@@ -50,19 +50,23 @@ public:
        FX_BOOL                                                                 IsBlocking(){return m_bBlocking;}
 
        operator                                                                IJS_Runtime*() {return (IJS_Runtime*)m_isolate;}
-       v8::Isolate*                                                            GetIsolate(){return m_isolate;};
+       v8::Isolate*                                                    GetIsolate(){return m_isolate;};
        void                                                                    SetIsolate(v8::Isolate* isolate){m_isolate = isolate;}
 
-       v8::Handle<v8::Context>                                                 NewJSContext();
+       v8::Handle<v8::Context>                                 NewJSContext();
+
+
+       virtual FX_BOOL                                                 GetHValueByName(FX_BSTR utf8Name, FXJSE_HVALUE hValue);
+       virtual FX_BOOL                                                 SetHValueByName(FX_BSTR utf8Name, FXJSE_HVALUE hValue);
 protected:
        CFX_ArrayTemplate<CJS_Context *>                m_ContextArray;
-       CPDFDoc_Environment *                                                   m_pApp;
+       CPDFDoc_Environment *                                   m_pApp;
        CPDFSDK_Document *                                              m_pDocument;
        FX_BOOL                                                                 m_bBlocking;
        CJS_FieldEvent*                                                 m_pFieldEventPath;
 
-       v8::Isolate*                                                            m_isolate;
-       v8::Persistent<v8::Context>                                             m_context;
+       v8::Isolate*                                                    m_isolate;
+       v8::Persistent<v8::Context>                             m_context;
        FX_BOOL                                                                 m_bRegistered;
 };