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 _COLOR_H_ | 7 #ifndef _COLOR_H_ |
8 #define _COLOR_H_ | 8 #define _COLOR_H_ |
9 | 9 |
| 10 #include "JS_Define.h" |
| 11 // TODO(tsepez): include CPWL_Color.h once its own IWYU is fixed. |
| 12 |
10 class color : public CJS_EmbedObj | 13 class color : public CJS_EmbedObj |
11 { | 14 { |
12 public: | 15 public: |
13 color(CJS_Object* pJSObject); | 16 color(CJS_Object* pJSObject); |
14 virtual ~color(void); | 17 virtual ~color(void); |
15 | 18 |
16 FX_BOOL black(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErr
or); | 19 FX_BOOL black(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErr
or); |
17 FX_BOOL blue(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErro
r); | 20 FX_BOOL blue(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErro
r); |
18 FX_BOOL cyan(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErro
r); | 21 FX_BOOL cyan(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sErro
r); |
19 FX_BOOL dkGray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sEr
ror); | 22 FX_BOOL dkGray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sEr
ror); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 JS_STATIC_PROP(white, color); | 72 JS_STATIC_PROP(white, color); |
70 JS_STATIC_PROP(yellow, color); | 73 JS_STATIC_PROP(yellow, color); |
71 | 74 |
72 JS_STATIC_METHOD(convert,color); | 75 JS_STATIC_METHOD(convert,color); |
73 JS_STATIC_METHOD(equal,color); | 76 JS_STATIC_METHOD(equal,color); |
74 | 77 |
75 }; | 78 }; |
76 | 79 |
77 #endif //_COLOR_H_ | 80 #endif //_COLOR_H_ |
78 | 81 |
OLD | NEW |