Merge to XFA: Kill off JS_ErrorString type.
[pdfium.git] / fpdfsdk / include / javascript / app.h
index 50d55ef..3acbb81 100644 (file)
@@ -108,41 +108,41 @@ public:
        virtual ~app();
 
 public:
-       FX_BOOL                                         activeDocs(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         calculate(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         formsVersion(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         fs(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         fullscreen(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         language(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         media(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         platform(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         runtimeHighlight(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         viewerType(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         viewerVariation(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);
-       FX_BOOL                                         viewerVersion(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError);    
-
-
-       FX_BOOL                                         alert(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         beep(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         browseForDoc(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         clearInterval(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         clearTimeOut(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         execDialog(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         execMenuItem(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         findComponent(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         goBack(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         goForward(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         launchURL(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         mailMsg(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         newFDF(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         newDoc(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         openDoc(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         openFDF(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         popUpMenuEx(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         popUpMenu(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         response(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         setInterval(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
-       FX_BOOL                                         setTimeOut(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError);
+       FX_BOOL                                         activeDocs(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         calculate(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         formsVersion(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         fs(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         fullscreen(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         language(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         media(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         platform(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         runtimeHighlight(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         viewerType(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         viewerVariation(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
+       FX_BOOL                                         viewerVersion(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);    
+
+
+       FX_BOOL                                         alert(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         beep(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         browseForDoc(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         clearInterval(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         clearTimeOut(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         execDialog(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         execMenuItem(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         findComponent(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         goBack(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         goForward(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         launchURL(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         mailMsg(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         newFDF(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         newDoc(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         openDoc(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         openFDF(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         popUpMenuEx(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         popUpMenu(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         response(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         setInterval(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
+       FX_BOOL                                         setTimeOut(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
 
 private:
 //     FX_DWORD                                        AppGetTickCount();