summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/PublicMethods.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-23 11:22:31 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-23 17:59:08 +0000
commit4b172c4934ddda46e06b1c4dc7554e96e1a2f54a (patch)
tree86ce51117cc196953a770f00d79ce30bdc9fc2e9 /fpdfsdk/javascript/PublicMethods.h
parent33d13f2231a07e7b32ff25da6a6a28cb619d18a9 (diff)
downloadpdfium-4b172c4934ddda46e06b1c4dc7554e96e1a2f54a.tar.xz
Cleaning up JS macros
This Cl moves JS_Defines macros with only one usage to be inline. Moves macros to where they're used and expands as needed. Change-Id: I7296aa0b7a815ef8f2a80dd813e7466056fe37af Reviewed-on: https://pdfium-review.googlesource.com/16510 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/PublicMethods.h')
-rw-r--r--fpdfsdk/javascript/PublicMethods.h69
1 files changed, 45 insertions, 24 deletions
diff --git a/fpdfsdk/javascript/PublicMethods.h b/fpdfsdk/javascript/PublicMethods.h
index abce08b8a6..1d30832fb7 100644
--- a/fpdfsdk/javascript/PublicMethods.h
+++ b/fpdfsdk/javascript/PublicMethods.h
@@ -107,31 +107,52 @@ class CJS_PublicMethods : public CJS_Object {
CJS_Value& vRet,
WideString& sError);
- JS_STATIC_GLOBAL_FUN(AFNumber_Format);
- JS_STATIC_GLOBAL_FUN(AFNumber_Keystroke);
- JS_STATIC_GLOBAL_FUN(AFPercent_Format);
- JS_STATIC_GLOBAL_FUN(AFPercent_Keystroke);
- JS_STATIC_GLOBAL_FUN(AFDate_FormatEx);
- JS_STATIC_GLOBAL_FUN(AFDate_KeystrokeEx);
- JS_STATIC_GLOBAL_FUN(AFDate_Format);
- JS_STATIC_GLOBAL_FUN(AFDate_Keystroke);
- JS_STATIC_GLOBAL_FUN(AFTime_FormatEx);
- JS_STATIC_GLOBAL_FUN(AFTime_KeystrokeEx);
- JS_STATIC_GLOBAL_FUN(AFTime_Format);
- JS_STATIC_GLOBAL_FUN(AFTime_Keystroke);
- JS_STATIC_GLOBAL_FUN(AFSpecial_Format);
- JS_STATIC_GLOBAL_FUN(AFSpecial_Keystroke);
- JS_STATIC_GLOBAL_FUN(AFSpecial_KeystrokeEx);
- JS_STATIC_GLOBAL_FUN(AFSimple);
- JS_STATIC_GLOBAL_FUN(AFMakeNumber);
- JS_STATIC_GLOBAL_FUN(AFSimple_Calculate);
- JS_STATIC_GLOBAL_FUN(AFRange_Validate);
- JS_STATIC_GLOBAL_FUN(AFMergeChange);
- JS_STATIC_GLOBAL_FUN(AFParseDateEx);
- JS_STATIC_GLOBAL_FUN(AFExtractNums);
-
- JS_STATIC_DECLARE_GLOBAL_FUN();
+ static void AFNumber_Format_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFNumber_Keystroke_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFPercent_Format_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFPercent_Keystroke_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFDate_FormatEx_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFDate_KeystrokeEx_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFDate_Format_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFDate_Keystroke_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFTime_FormatEx_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFTime_KeystrokeEx_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFTime_Format_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFTime_Keystroke_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFSpecial_Format_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFSpecial_Keystroke_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFSpecial_KeystrokeEx_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFSimple_static(const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFMakeNumber_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFSimple_Calculate_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFRange_Validate_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFMergeChange_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFParseDateEx_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static void AFExtractNums_static(
+ const v8::FunctionCallbackInfo<v8::Value>& info);
+ static JSMethodSpec GlobalFunctionSpecs[];
+ static void DefineJSObjects(CFXJS_Engine* pEngine);
static int ParseStringInteger(const WideString& string,
size_t nStart,
size_t& nSkip,