From 2da7bd4d78897bed52fe1304694f4e970db65e58 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 17 Feb 2015 13:21:34 -0800 Subject: 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 --- fpdfsdk/include/jsapi/fxjs_v8.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'fpdfsdk/include/jsapi/fxjs_v8.h') diff --git a/fpdfsdk/include/jsapi/fxjs_v8.h b/fpdfsdk/include/jsapi/fxjs_v8.h index 3ea5054e17..e08196d6f1 100644 --- a/fpdfsdk/include/jsapi/fxjs_v8.h +++ b/fpdfsdk/include/jsapi/fxjs_v8.h @@ -45,14 +45,12 @@ class IFXJS_Runtime; #ifndef JSCRIPT_ARGS #define JSCRIPT_ARGS -#define JS_PROPGET_ARGS v8::Local property,const v8::PropertyCallbackInfo& info -#define JS_PROPPUT_ARGS v8::Local property,v8::Local value,const v8::PropertyCallbackInfo& info -#define JS_METHOD_ARGS const v8::FunctionCallbackInfo& info #define JS_CONSTRUCTOR_ARGS IFXJS_Context* cc, v8::Handle obj, v8::Handle global #define JS_DESTRUCTOR_ARGS v8::Handle obj #define JS_PROPQUERY_ARGS v8::Local property,const v8::PropertyCallbackInfo& info -#define JS_NAMED_PROPGET_ARGS JS_PROPGET_ARGS +#define JS_NAMED_PROPGET_ARGS v8::Local property, const v8::PropertyCallbackInfo& info + #define JS_NAMED_PROPPUT_ARGS v8::Local property,v8::Local value,const v8::PropertyCallbackInfo& info #define JS_PROPDEL_ARGS v8::Local property,const v8::PropertyCallbackInfo& info -- cgit v1.2.3