| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef FPDFSDK_SRC_JAVASCRIPT_COLOR_H_ | 7 #ifndef FPDFSDK_SRC_JAVASCRIPT_COLOR_H_ |
| 8 #define FPDFSDK_SRC_JAVASCRIPT_COLOR_H_ | 8 #define FPDFSDK_SRC_JAVASCRIPT_COLOR_H_ |
| 9 | 9 |
| 10 #include "../../include/pdfwindow/PWL_Wnd.h" // For CPWL_Color. | |
| 11 #include "JS_Define.h" | 10 #include "JS_Define.h" |
| 11 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" // For CPWL_Color. |
| 12 | 12 |
| 13 class color : public CJS_EmbedObj { | 13 class color : public CJS_EmbedObj { |
| 14 public: | 14 public: |
| 15 color(CJS_Object* pJSObject); | 15 color(CJS_Object* pJSObject); |
| 16 ~color() override; | 16 ~color() override; |
| 17 | 17 |
| 18 FX_BOOL black(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 18 FX_BOOL black(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
| 19 FX_BOOL blue(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 19 FX_BOOL blue(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
| 20 FX_BOOL cyan(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 20 FX_BOOL cyan(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
| 21 FX_BOOL dkGray(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 21 FX_BOOL dkGray(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 JS_STATIC_PROP(red, color); | 76 JS_STATIC_PROP(red, color); |
| 77 JS_STATIC_PROP(transparent, color); | 77 JS_STATIC_PROP(transparent, color); |
| 78 JS_STATIC_PROP(white, color); | 78 JS_STATIC_PROP(white, color); |
| 79 JS_STATIC_PROP(yellow, color); | 79 JS_STATIC_PROP(yellow, color); |
| 80 | 80 |
| 81 JS_STATIC_METHOD(convert, color); | 81 JS_STATIC_METHOD(convert, color); |
| 82 JS_STATIC_METHOD(equal, color); | 82 JS_STATIC_METHOD(equal, color); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 #endif // FPDFSDK_SRC_JAVASCRIPT_COLOR_H_ | 85 #endif // FPDFSDK_SRC_JAVASCRIPT_COLOR_H_ |
| OLD | NEW |