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/javascript/color.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/javascript/color.h')
-rw-r--r-- | fpdfsdk/include/javascript/color.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/fpdfsdk/include/javascript/color.h b/fpdfsdk/include/javascript/color.h index d0aa72f8d3..02588acfba 100644 --- a/fpdfsdk/include/javascript/color.h +++ b/fpdfsdk/include/javascript/color.h @@ -13,21 +13,21 @@ public: color(CJS_Object* pJSObject); virtual ~color(void); - FX_BOOL black(OBJ_PROP_PARAMS); - FX_BOOL blue(OBJ_PROP_PARAMS); - FX_BOOL cyan(OBJ_PROP_PARAMS); - FX_BOOL dkGray(OBJ_PROP_PARAMS); - FX_BOOL gray(OBJ_PROP_PARAMS); - FX_BOOL green(OBJ_PROP_PARAMS); - FX_BOOL ltGray(OBJ_PROP_PARAMS); - FX_BOOL magenta(OBJ_PROP_PARAMS); - FX_BOOL red(OBJ_PROP_PARAMS); - FX_BOOL transparent(OBJ_PROP_PARAMS); - FX_BOOL white(OBJ_PROP_PARAMS); - FX_BOOL yellow(OBJ_PROP_PARAMS); + FX_BOOL black(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL blue(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL cyan(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL dkGray(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL gray(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL green(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL ltGray(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL magenta(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL red(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL transparent(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL white(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); + FX_BOOL yellow(IFXJS_Context* cc, CJS_PropValue& vp, JS_ErrorString& sError); - FX_BOOL convert(OBJ_METHOD_PARAMS); - FX_BOOL equal(OBJ_METHOD_PARAMS); + FX_BOOL convert(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError); + FX_BOOL equal(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, JS_ErrorString& sError); public: static void ConvertPWLColorToArray(const CPWL_Color& color, CJS_Array& array); |