diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-02-17 13:21:34 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-02-17 13:21:34 -0800 |
commit | 2da7bd4d78897bed52fe1304694f4e970db65e58 (patch) | |
tree | cf3f87f8808b908510a3cb80860e712e80c7266f /fpdfsdk/include/jsapi/fxjs_v8.h | |
parent | 7435e8e5c2f1163ec5eca79a3ac6c3920d490578 (diff) | |
download | pdfium-2da7bd4d78897bed52fe1304694f4e970db65e58.tar.xz |
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
Diffstat (limited to 'fpdfsdk/include/jsapi/fxjs_v8.h')
-rw-r--r-- | fpdfsdk/include/jsapi/fxjs_v8.h | 6 |
1 files changed, 2 insertions, 4 deletions
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<v8::String> property,const v8::PropertyCallbackInfo<v8::Value>& info -#define JS_PROPPUT_ARGS v8::Local<v8::String> property,v8::Local<v8::Value> value,const v8::PropertyCallbackInfo<void>& info -#define JS_METHOD_ARGS const v8::FunctionCallbackInfo<v8::Value>& info #define JS_CONSTRUCTOR_ARGS IFXJS_Context* cc, v8::Handle<v8::Object> obj, v8::Handle<v8::Object> global #define JS_DESTRUCTOR_ARGS v8::Handle<v8::Object> obj #define JS_PROPQUERY_ARGS v8::Local<v8::String> property,const v8::PropertyCallbackInfo<v8::Integer>& info -#define JS_NAMED_PROPGET_ARGS JS_PROPGET_ARGS +#define JS_NAMED_PROPGET_ARGS v8::Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info + #define JS_NAMED_PROPPUT_ARGS v8::Local<v8::String> property,v8::Local<v8::Value> value,const v8::PropertyCallbackInfo<v8::Value>& info #define JS_PROPDEL_ARGS v8::Local<v8::String> property,const v8::PropertyCallbackInfo<v8::Boolean>& info |