Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: fpdfsdk/include/javascript/color.h

Issue 1288393004: Merge to XFA: Use override in more classes in fpdfsdk/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: self review Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/javascript/app.h ('k') | fpdfsdk/include/javascript/console.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_INCLUDE_JAVASCRIPT_COLOR_H_ 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_COLOR_H_
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_COLOR_H_ 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_COLOR_H_
9 9
10 #include "JS_Define.h" 10 #include "JS_Define.h"
11 // TODO(tsepez): include CPWL_Color.h once its own IWYU is fixed. 11 // TODO(tsepez): include CPWL_Color.h once its own IWYU is fixed.
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 virtual ~color(void); 16 ~color() override;
17 17
18 FX_BOOL black(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 18 FX_BOOL black(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
19 FX_BOOL blue(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 19 FX_BOOL blue(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
20 FX_BOOL cyan(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 20 FX_BOOL cyan(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
21 FX_BOOL dkGray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 21 FX_BOOL dkGray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
22 FX_BOOL gray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 22 FX_BOOL gray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
23 FX_BOOL green(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 23 FX_BOOL green(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
24 FX_BOOL ltGray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 24 FX_BOOL ltGray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
25 FX_BOOL magenta(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 25 FX_BOOL magenta(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
26 FX_BOOL red(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); 26 FX_BOOL red(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
(...skipping 26 matching lines...) Expand all
53 CPWL_Color m_crCyan; 53 CPWL_Color m_crCyan;
54 CPWL_Color m_crMagenta; 54 CPWL_Color m_crMagenta;
55 CPWL_Color m_crYellow; 55 CPWL_Color m_crYellow;
56 CPWL_Color m_crDKGray; 56 CPWL_Color m_crDKGray;
57 CPWL_Color m_crGray; 57 CPWL_Color m_crGray;
58 CPWL_Color m_crLTGray; 58 CPWL_Color m_crLTGray;
59 }; 59 };
60 60
61 class CJS_Color : public CJS_Object { 61 class CJS_Color : public CJS_Object {
62 public: 62 public:
63 CJS_Color(JSFXObject pObject) : CJS_Object(pObject){}; 63 CJS_Color(JSFXObject pObject) : CJS_Object(pObject) {}
64 virtual ~CJS_Color(void){}; 64 ~CJS_Color() override {}
65 65
66 DECLARE_JS_CLASS(CJS_Color); 66 DECLARE_JS_CLASS(CJS_Color);
67 67
68 JS_STATIC_PROP(black, color); 68 JS_STATIC_PROP(black, color);
69 JS_STATIC_PROP(blue, color); 69 JS_STATIC_PROP(blue, color);
70 JS_STATIC_PROP(cyan, color); 70 JS_STATIC_PROP(cyan, color);
71 JS_STATIC_PROP(dkGray, color); 71 JS_STATIC_PROP(dkGray, color);
72 JS_STATIC_PROP(gray, color); 72 JS_STATIC_PROP(gray, color);
73 JS_STATIC_PROP(green, color); 73 JS_STATIC_PROP(green, color);
74 JS_STATIC_PROP(ltGray, color); 74 JS_STATIC_PROP(ltGray, color);
75 JS_STATIC_PROP(magenta, color); 75 JS_STATIC_PROP(magenta, color);
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_INCLUDE_JAVASCRIPT_COLOR_H_ 85 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_COLOR_H_
OLDNEW
« no previous file with comments | « fpdfsdk/include/javascript/app.h ('k') | fpdfsdk/include/javascript/console.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698