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_INCLUDE_JAVASCRIPT_CONSTS_H_ | 7 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_ |
8 #define FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_ | 8 #define FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_ |
9 | 9 |
10 #include "JS_Define.h" | 10 #include "JS_Define.h" |
11 | 11 |
12 /* ------------------------------ border ------------------------------ */ | 12 /* ------------------------------ border ------------------------------ */ |
13 | 13 |
14 class CJS_Border : public CJS_Object { | 14 class CJS_Border : public CJS_Object { |
15 public: | 15 public: |
16 CJS_Border(JSFXObject pObject) : CJS_Object(pObject){}; | 16 explicit CJS_Border(JSFXObject pObject) : CJS_Object(pObject) {} |
17 virtual ~CJS_Border(void){}; | 17 ~CJS_Border() override {} |
18 | 18 |
19 DECLARE_JS_CLASS_CONST(); | 19 DECLARE_JS_CLASS_CONST(); |
20 }; | 20 }; |
21 | 21 |
22 /* ------------------------------ display ------------------------------ */ | 22 /* ------------------------------ display ------------------------------ */ |
23 | 23 |
24 class CJS_Display : public CJS_Object { | 24 class CJS_Display : public CJS_Object { |
25 public: | 25 public: |
26 CJS_Display(JSFXObject pObject) : CJS_Object(pObject){}; | 26 explicit CJS_Display(JSFXObject pObject) : CJS_Object(pObject) {} |
27 virtual ~CJS_Display(void){}; | 27 ~CJS_Display() override {} |
28 | 28 |
29 DECLARE_JS_CLASS_CONST(); | 29 DECLARE_JS_CLASS_CONST(); |
30 }; | 30 }; |
31 | 31 |
32 /* ------------------------------ font ------------------------------ */ | 32 /* ------------------------------ font ------------------------------ */ |
33 | 33 |
34 class CJS_Font : public CJS_Object { | 34 class CJS_Font : public CJS_Object { |
35 public: | 35 public: |
36 CJS_Font(JSFXObject pObject) : CJS_Object(pObject){}; | 36 explicit CJS_Font(JSFXObject pObject) : CJS_Object(pObject) {} |
37 virtual ~CJS_Font(void){}; | 37 ~CJS_Font() override {} |
38 | 38 |
39 DECLARE_JS_CLASS_CONST(); | 39 DECLARE_JS_CLASS_CONST(); |
40 }; | 40 }; |
41 | 41 |
42 /* ------------------------------ highlight ------------------------------ */ | 42 /* ------------------------------ highlight ------------------------------ */ |
43 | 43 |
44 class CJS_Highlight : public CJS_Object { | 44 class CJS_Highlight : public CJS_Object { |
45 public: | 45 public: |
46 CJS_Highlight(JSFXObject pObject) : CJS_Object(pObject){}; | 46 explicit CJS_Highlight(JSFXObject pObject) : CJS_Object(pObject) {} |
47 virtual ~CJS_Highlight(void){}; | 47 ~CJS_Highlight() override {} |
48 | 48 |
49 DECLARE_JS_CLASS_CONST(); | 49 DECLARE_JS_CLASS_CONST(); |
50 }; | 50 }; |
51 | 51 |
52 /* ------------------------------ position ------------------------------ */ | 52 /* ------------------------------ position ------------------------------ */ |
53 | 53 |
54 class CJS_Position : public CJS_Object { | 54 class CJS_Position : public CJS_Object { |
55 public: | 55 public: |
56 CJS_Position(JSFXObject pObject) : CJS_Object(pObject){}; | 56 explicit CJS_Position(JSFXObject pObject) : CJS_Object(pObject) {} |
57 virtual ~CJS_Position(void){}; | 57 ~CJS_Position() override {} |
58 | 58 |
59 DECLARE_JS_CLASS_CONST(); | 59 DECLARE_JS_CLASS_CONST(); |
60 }; | 60 }; |
61 | 61 |
62 /* ------------------------------ scaleHow ------------------------------ */ | 62 /* ------------------------------ scaleHow ------------------------------ */ |
63 | 63 |
64 class CJS_ScaleHow : public CJS_Object { | 64 class CJS_ScaleHow : public CJS_Object { |
65 public: | 65 public: |
66 CJS_ScaleHow(JSFXObject pObject) : CJS_Object(pObject){}; | 66 explicit CJS_ScaleHow(JSFXObject pObject) : CJS_Object(pObject) {} |
67 virtual ~CJS_ScaleHow(void){}; | 67 ~CJS_ScaleHow() override {} |
68 | 68 |
69 DECLARE_JS_CLASS_CONST(); | 69 DECLARE_JS_CLASS_CONST(); |
70 }; | 70 }; |
71 | 71 |
72 /* ------------------------------ scaleWhen ------------------------------ */ | 72 /* ------------------------------ scaleWhen ------------------------------ */ |
73 | 73 |
74 class CJS_ScaleWhen : public CJS_Object { | 74 class CJS_ScaleWhen : public CJS_Object { |
75 public: | 75 public: |
76 CJS_ScaleWhen(JSFXObject pObject) : CJS_Object(pObject){}; | 76 explicit CJS_ScaleWhen(JSFXObject pObject) : CJS_Object(pObject) {} |
77 virtual ~CJS_ScaleWhen(void){}; | 77 ~CJS_ScaleWhen() override {} |
78 | 78 |
79 DECLARE_JS_CLASS_CONST(); | 79 DECLARE_JS_CLASS_CONST(); |
80 }; | 80 }; |
81 | 81 |
82 /* ------------------------------ style ------------------------------ */ | 82 /* ------------------------------ style ------------------------------ */ |
83 | 83 |
84 class CJS_Style : public CJS_Object { | 84 class CJS_Style : public CJS_Object { |
85 public: | 85 public: |
86 CJS_Style(JSFXObject pObject) : CJS_Object(pObject){}; | 86 explicit CJS_Style(JSFXObject pObject) : CJS_Object(pObject) {} |
87 virtual ~CJS_Style(void){}; | 87 ~CJS_Style() override {} |
88 | 88 |
89 DECLARE_JS_CLASS_CONST(); | 89 DECLARE_JS_CLASS_CONST(); |
90 }; | 90 }; |
91 | 91 |
92 /* ------------------------------ zoomtype ------------------------------ */ | 92 /* ------------------------------ zoomtype ------------------------------ */ |
93 | 93 |
94 class CJS_Zoomtype : public CJS_Object { | 94 class CJS_Zoomtype : public CJS_Object { |
95 public: | 95 public: |
96 CJS_Zoomtype(JSFXObject pObject) : CJS_Object(pObject){}; | 96 explicit CJS_Zoomtype(JSFXObject pObject) : CJS_Object(pObject) {} |
97 virtual ~CJS_Zoomtype(void){}; | 97 ~CJS_Zoomtype() override {} |
98 | 98 |
99 DECLARE_JS_CLASS_CONST(); | 99 DECLARE_JS_CLASS_CONST(); |
100 }; | 100 }; |
101 | 101 |
102 /* ------------------------------ CJS_GlobalConsts | 102 /* ------------------------------ CJS_GlobalConsts |
103 * ------------------------------ */ | 103 * ------------------------------ */ |
104 | 104 |
105 class CJS_GlobalConsts : public CJS_Object { | 105 class CJS_GlobalConsts : public CJS_Object { |
106 public: | 106 public: |
107 static int Init(IJS_Runtime* pRuntime); | 107 static int Init(IJS_Runtime* pRuntime); |
108 }; | 108 }; |
109 | 109 |
110 /* ------------------------------ CJS_GlobalArrays | 110 /* ------------------------------ CJS_GlobalArrays |
111 * ------------------------------ */ | 111 * ------------------------------ */ |
112 | 112 |
113 class CJS_GlobalArrays : public CJS_Object { | 113 class CJS_GlobalArrays : public CJS_Object { |
114 public: | 114 public: |
115 static int Init(IJS_Runtime* pRuntime); | 115 static int Init(IJS_Runtime* pRuntime); |
116 }; | 116 }; |
117 | 117 |
118 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_ | 118 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_ |
OLD | NEW |