summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/util.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-02-16 09:43:10 -0800
committerChromium commit bot <commit-bot@chromium.org>2017-02-21 15:38:28 +0000
commit04557b8a7c2d3dab06fe9eadacc3c7744b3e14e2 (patch)
tree87226d982038347cb5bfc78966f21be4d9f82669 /fpdfsdk/javascript/util.cpp
parentb1670b5cca9a59dfb612ef9eb891a70dd716bf9c (diff)
downloadpdfium-04557b8a7c2d3dab06fe9eadacc3c7744b3e14e2.tar.xz
Remove some JS_Define macroschromium/3020
Attempt at clarity. Change-Id: Ie37890888e1ec6e07cd10c68066b90f854fe6038 Reviewed-on: https://pdfium-review.googlesource.com/2719 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/util.cpp')
-rw-r--r--fpdfsdk/javascript/util.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/fpdfsdk/javascript/util.cpp b/fpdfsdk/javascript/util.cpp
index 8ae1773c49..b5423e38c0 100644
--- a/fpdfsdk/javascript/util.cpp
+++ b/fpdfsdk/javascript/util.cpp
@@ -26,19 +26,14 @@
#include <ctype.h>
#endif
-BEGIN_JS_STATIC_CONST(CJS_Util)
-END_JS_STATIC_CONST()
-
-BEGIN_JS_STATIC_PROP(CJS_Util)
-END_JS_STATIC_PROP()
-
-BEGIN_JS_STATIC_METHOD(CJS_Util)
-JS_STATIC_METHOD_ENTRY(printd)
-JS_STATIC_METHOD_ENTRY(printf)
-JS_STATIC_METHOD_ENTRY(printx)
-JS_STATIC_METHOD_ENTRY(scand)
-JS_STATIC_METHOD_ENTRY(byteToChar)
-END_JS_STATIC_METHOD()
+JSConstSpec CJS_Util::ConstSpecs[] = {{0, JSConstSpec::Number, 0, 0}};
+
+JSPropertySpec CJS_Util::PropertySpecs[] = {{0, 0, 0}};
+
+JSMethodSpec CJS_Util::MethodSpecs[] = {
+ {L"printd", printd_static}, {L"printf", printf_static},
+ {L"printx", printx_static}, {L"scand", scand_static},
+ {L"byteToChar", byteToChar_static}, {0, 0}};
IMPLEMENT_JS_CLASS(CJS_Util, util)