summaryrefslogtreecommitdiff
path: root/fxjs/cjs_app.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-17 19:28:52 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-17 19:28:52 +0000
commit3a6d058740a9908a06efb9e9362df01acdee6ff8 (patch)
tree9bc645b0cb3442749458fc63e2feb04c0cb813ef /fxjs/cjs_app.h
parent0a2328e0eff7a11aa49b7da8f013e658153a7b1a (diff)
downloadpdfium-3a6d058740a9908a06efb9e9362df01acdee6ff8.tar.xz
Rename CJS_Return to CJS_Result.
"Return" is a verb, and "return" is a reserved-word at that, so avoid using it as part of a class name. Fully mechanical change apart from rename. Change-Id: I120e453e8ba001c4ab74a39e2da6aa6eb590835f Reviewed-on: https://pdfium-review.googlesource.com/40532 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_app.h')
-rw-r--r--fxjs/cjs_app.h90
1 files changed, 45 insertions, 45 deletions
diff --git a/fxjs/cjs_app.h b/fxjs/cjs_app.h
index e962b34d49..5690f479db 100644
--- a/fxjs/cjs_app.h
+++ b/fxjs/cjs_app.h
@@ -70,85 +70,85 @@ class CJS_App : public CJS_Object {
static const JSPropertySpec PropertySpecs[];
static const JSMethodSpec MethodSpecs[];
- CJS_Return get_active_docs(CJS_Runtime* pRuntime);
- CJS_Return set_active_docs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+ CJS_Result get_active_docs(CJS_Runtime* pRuntime);
+ CJS_Result set_active_docs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
- CJS_Return get_calculate(CJS_Runtime* pRuntime);
- CJS_Return set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+ CJS_Result get_calculate(CJS_Runtime* pRuntime);
+ CJS_Result set_calculate(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
- CJS_Return get_forms_version(CJS_Runtime* pRuntime);
- CJS_Return set_forms_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+ CJS_Result get_forms_version(CJS_Runtime* pRuntime);
+ CJS_Result set_forms_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
- CJS_Return get_fs(CJS_Runtime* pRuntime);
- CJS_Return set_fs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+ CJS_Result get_fs(CJS_Runtime* pRuntime);
+ CJS_Result set_fs(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
- CJS_Return get_fullscreen(CJS_Runtime* pRuntime);
- CJS_Return set_fullscreen(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+ CJS_Result get_fullscreen(CJS_Runtime* pRuntime);
+ CJS_Result set_fullscreen(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
- CJS_Return get_language(CJS_Runtime* pRuntime);
- CJS_Return set_language(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+ CJS_Result get_language(CJS_Runtime* pRuntime);
+ CJS_Result set_language(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
- CJS_Return get_media(CJS_Runtime* pRuntime);
- CJS_Return set_media(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+ CJS_Result get_media(CJS_Runtime* pRuntime);
+ CJS_Result set_media(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
- CJS_Return get_platform(CJS_Runtime* pRuntime);
- CJS_Return set_platform(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+ CJS_Result get_platform(CJS_Runtime* pRuntime);
+ CJS_Result set_platform(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
- CJS_Return get_runtime_highlight(CJS_Runtime* pRuntime);
- CJS_Return set_runtime_highlight(CJS_Runtime* pRuntime,
+ CJS_Result get_runtime_highlight(CJS_Runtime* pRuntime);
+ CJS_Result set_runtime_highlight(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp);
- CJS_Return get_viewer_type(CJS_Runtime* pRuntime);
- CJS_Return set_viewer_type(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+ CJS_Result get_viewer_type(CJS_Runtime* pRuntime);
+ CJS_Result set_viewer_type(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
- CJS_Return get_viewer_variation(CJS_Runtime* pRuntime);
- CJS_Return set_viewer_variation(CJS_Runtime* pRuntime,
+ CJS_Result get_viewer_variation(CJS_Runtime* pRuntime);
+ CJS_Result set_viewer_variation(CJS_Runtime* pRuntime,
v8::Local<v8::Value> vp);
- CJS_Return get_viewer_version(CJS_Runtime* pRuntime);
- CJS_Return set_viewer_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
+ CJS_Result get_viewer_version(CJS_Runtime* pRuntime);
+ CJS_Result set_viewer_version(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp);
- CJS_Return alert(CJS_Runtime* pRuntime,
+ CJS_Result alert(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return beep(CJS_Runtime* pRuntime,
+ CJS_Result beep(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return browseForDoc(CJS_Runtime* pRuntime,
+ CJS_Result browseForDoc(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return clearInterval(CJS_Runtime* pRuntime,
+ CJS_Result clearInterval(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return clearTimeOut(CJS_Runtime* pRuntime,
+ CJS_Result clearTimeOut(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return execDialog(CJS_Runtime* pRuntime,
+ CJS_Result execDialog(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return execMenuItem(CJS_Runtime* pRuntime,
+ CJS_Result execMenuItem(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return findComponent(CJS_Runtime* pRuntime,
+ CJS_Result findComponent(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return goBack(CJS_Runtime* pRuntime,
+ CJS_Result goBack(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return goForward(CJS_Runtime* pRuntime,
+ CJS_Result goForward(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return launchURL(CJS_Runtime* pRuntime,
+ CJS_Result launchURL(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return mailMsg(CJS_Runtime* pRuntime,
+ CJS_Result mailMsg(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return newFDF(CJS_Runtime* pRuntime,
+ CJS_Result newFDF(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return newDoc(CJS_Runtime* pRuntime,
+ CJS_Result newDoc(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return openDoc(CJS_Runtime* pRuntime,
+ CJS_Result openDoc(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return openFDF(CJS_Runtime* pRuntime,
+ CJS_Result openFDF(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return popUpMenuEx(CJS_Runtime* pRuntime,
+ CJS_Result popUpMenuEx(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return popUpMenu(CJS_Runtime* pRuntime,
+ CJS_Result popUpMenu(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return response(CJS_Runtime* pRuntime,
+ CJS_Result response(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return setInterval(CJS_Runtime* pRuntime,
+ CJS_Result setInterval(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
- CJS_Return setTimeOut(CJS_Runtime* pRuntime,
+ CJS_Result setTimeOut(CJS_Runtime* pRuntime,
const std::vector<v8::Local<v8::Value>>& params);
void RunJsScript(CJS_Runtime* pRuntime, const WideString& wsScript);