diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-02-16 09:43:10 -0800 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-21 15:38:28 +0000 |
commit | 04557b8a7c2d3dab06fe9eadacc3c7744b3e14e2 (patch) | |
tree | 87226d982038347cb5bfc78966f21be4d9f82669 /fpdfsdk/javascript/report.cpp | |
parent | b1670b5cca9a59dfb612ef9eb891a70dd716bf9c (diff) | |
download | pdfium-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/report.cpp')
-rw-r--r-- | fpdfsdk/javascript/report.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/fpdfsdk/javascript/report.cpp b/fpdfsdk/javascript/report.cpp index 2cb123ab71..6c98f12ea1 100644 --- a/fpdfsdk/javascript/report.cpp +++ b/fpdfsdk/javascript/report.cpp @@ -12,16 +12,13 @@ #include "fpdfsdk/javascript/JS_Object.h" #include "fpdfsdk/javascript/JS_Value.h" -BEGIN_JS_STATIC_CONST(CJS_Report) -END_JS_STATIC_CONST() +JSConstSpec CJS_Report::ConstSpecs[] = {{0, JSConstSpec::Number, 0, 0}}; -BEGIN_JS_STATIC_PROP(CJS_Report) -END_JS_STATIC_PROP() +JSPropertySpec CJS_Report::PropertySpecs[] = {{0, 0, 0}}; -BEGIN_JS_STATIC_METHOD(CJS_Report) -JS_STATIC_METHOD_ENTRY(save) -JS_STATIC_METHOD_ENTRY(writeText) -END_JS_STATIC_METHOD() +JSMethodSpec CJS_Report::MethodSpecs[] = {{L"save", save_static}, + {L"writeText", writeText_static}, + {0, 0}}; IMPLEMENT_JS_CLASS(CJS_Report, Report) |