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_JAVASCRIPT_COLOR_H_ | 7 #ifndef FPDFSDK_JAVASCRIPT_COLOR_H_ |
8 #define FPDFSDK_JAVASCRIPT_COLOR_H_ | 8 #define FPDFSDK_JAVASCRIPT_COLOR_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h" | |
13 #include "fpdfsdk/javascript/JS_Define.h" | 12 #include "fpdfsdk/javascript/JS_Define.h" |
| 13 #include "fpdfsdk/pdfwindow/PWL_Wnd.h" |
14 | 14 |
15 class color : public CJS_EmbedObj { | 15 class color : public CJS_EmbedObj { |
16 public: | 16 public: |
17 color(CJS_Object* pJSObject); | 17 color(CJS_Object* pJSObject); |
18 ~color() override; | 18 ~color() override; |
19 | 19 |
20 FX_BOOL black(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 20 FX_BOOL black(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
21 FX_BOOL blue(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 21 FX_BOOL blue(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
22 FX_BOOL cyan(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 22 FX_BOOL cyan(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); |
23 FX_BOOL dkGray(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); | 23 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... |
78 JS_STATIC_PROP(red, color); | 78 JS_STATIC_PROP(red, color); |
79 JS_STATIC_PROP(transparent, color); | 79 JS_STATIC_PROP(transparent, color); |
80 JS_STATIC_PROP(white, color); | 80 JS_STATIC_PROP(white, color); |
81 JS_STATIC_PROP(yellow, color); | 81 JS_STATIC_PROP(yellow, color); |
82 | 82 |
83 JS_STATIC_METHOD(convert, color); | 83 JS_STATIC_METHOD(convert, color); |
84 JS_STATIC_METHOD(equal, color); | 84 JS_STATIC_METHOD(equal, color); |
85 }; | 85 }; |
86 | 86 |
87 #endif // FPDFSDK_JAVASCRIPT_COLOR_H_ | 87 #endif // FPDFSDK_JAVASCRIPT_COLOR_H_ |
OLD | NEW |