summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/javascript/app.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-02-17 13:21:34 -0800
committerTom Sepez <tsepez@chromium.org>2015-02-17 13:21:34 -0800
commit2da7bd4d78897bed52fe1304694f4e970db65e58 (patch)
treecf3f87f8808b908510a3cb80860e712e80c7266f /fpdfsdk/include/javascript/app.h
parent7435e8e5c2f1163ec5eca79a3ac6c3920d490578 (diff)
downloadpdfium-2da7bd4d78897bed52fe1304694f4e970db65e58.tar.xz
Tidy up JS_Defines.h
This is a purely mechanical change, no new functionality. - Expand some macros which were merely a short-cut to save typing but reduced transparency. - Put GET_VALUE_TYPE() implementation into a .cpp file. This is a portion of the patch from issue 908033002 at patchset 40001 (http://crrev.com/908033002#ps40001) R=brucedawson@chromium.org Review URL: https://codereview.chromium.org/927263003
Diffstat (limited to 'fpdfsdk/include/javascript/app.h')
-rw-r--r--fpdfsdk/include/javascript/app.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/fpdfsdk/include/javascript/app.h b/fpdfsdk/include/javascript/app.h
index 1c95bf430d..50d55ef96f 100644
--- a/fpdfsdk/include/javascript/app.h
+++ b/fpdfsdk/include/javascript/app.h
@@ -108,41 +108,41 @@ public:
virtual ~app();
public:
- FX_BOOL activeDocs(OBJ_PROP_PARAMS);
- FX_BOOL calculate(OBJ_PROP_PARAMS);
- FX_BOOL formsVersion(OBJ_PROP_PARAMS);
- FX_BOOL fs(OBJ_PROP_PARAMS);
- FX_BOOL fullscreen(OBJ_PROP_PARAMS);
- FX_BOOL language(OBJ_PROP_PARAMS);
- FX_BOOL media(OBJ_PROP_PARAMS);
- FX_BOOL platform(OBJ_PROP_PARAMS);
- FX_BOOL runtimeHighlight(OBJ_PROP_PARAMS);
- FX_BOOL viewerType(OBJ_PROP_PARAMS);
- FX_BOOL viewerVariation(OBJ_PROP_PARAMS);
- FX_BOOL viewerVersion(OBJ_PROP_PARAMS);
-
-
- FX_BOOL alert(OBJ_METHOD_PARAMS);
- FX_BOOL beep(OBJ_METHOD_PARAMS);
- FX_BOOL browseForDoc(OBJ_METHOD_PARAMS);
- FX_BOOL clearInterval(OBJ_METHOD_PARAMS);
- FX_BOOL clearTimeOut(OBJ_METHOD_PARAMS);
- FX_BOOL execDialog(OBJ_METHOD_PARAMS);
- FX_BOOL execMenuItem(OBJ_METHOD_PARAMS);
- FX_BOOL findComponent(OBJ_METHOD_PARAMS);
- FX_BOOL goBack(OBJ_METHOD_PARAMS);
- FX_BOOL goForward(OBJ_METHOD_PARAMS);
- FX_BOOL launchURL(OBJ_METHOD_PARAMS);
- FX_BOOL mailMsg(OBJ_METHOD_PARAMS);
- FX_BOOL newFDF(OBJ_METHOD_PARAMS);
- FX_BOOL newDoc(OBJ_METHOD_PARAMS);
- FX_BOOL openDoc(OBJ_METHOD_PARAMS);
- FX_BOOL openFDF(OBJ_METHOD_PARAMS);
- FX_BOOL popUpMenuEx(OBJ_METHOD_PARAMS);
- FX_BOOL popUpMenu(OBJ_METHOD_PARAMS);
- FX_BOOL response(OBJ_METHOD_PARAMS);
- FX_BOOL setInterval(OBJ_METHOD_PARAMS);
- FX_BOOL setTimeOut(OBJ_METHOD_PARAMS);
+ 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);
private:
// FX_DWORD AppGetTickCount();