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 explicit CJS_Border(JSFXObject pObject) : CJS_Object(pObject) {} | 16 explicit CJS_Border(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
17 ~CJS_Border() override {} | 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 explicit CJS_Display(JSFXObject pObject) : CJS_Object(pObject) {} | 26 explicit CJS_Display(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
27 ~CJS_Display() override {} | 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 explicit CJS_Font(JSFXObject pObject) : CJS_Object(pObject) {} | 36 explicit CJS_Font(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
37 ~CJS_Font() override {} | 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 explicit CJS_Highlight(JSFXObject pObject) : CJS_Object(pObject) {} | 46 explicit CJS_Highlight(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
47 ~CJS_Highlight() override {} | 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 explicit CJS_Position(JSFXObject pObject) : CJS_Object(pObject) {} | 56 explicit CJS_Position(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
57 ~CJS_Position() override {} | 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 explicit CJS_ScaleHow(JSFXObject pObject) : CJS_Object(pObject) {} | 66 explicit CJS_ScaleHow(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
67 ~CJS_ScaleHow() override {} | 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 explicit CJS_ScaleWhen(JSFXObject pObject) : CJS_Object(pObject) {} | 76 explicit CJS_ScaleWhen(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
77 ~CJS_ScaleWhen() override {} | 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 explicit CJS_Style(JSFXObject pObject) : CJS_Object(pObject) {} | 86 explicit CJS_Style(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
87 ~CJS_Style() override {} | 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 explicit CJS_Zoomtype(JSFXObject pObject) : CJS_Object(pObject) {} | 96 explicit CJS_Zoomtype(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {} |
97 ~CJS_Zoomtype() override {} | 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 * ------------------------------ */ | |
104 | 103 |
105 class CJS_GlobalConsts : public CJS_Object { | 104 class CJS_GlobalConsts : public CJS_Object { |
106 public: | 105 public: |
107 static int Init(IJS_Runtime* pRuntime); | 106 static int Init(v8::Isolate* pIsolate); |
108 }; | 107 }; |
109 | 108 |
110 /* ------------------------------ CJS_GlobalArrays | 109 /* ------------------------------ CJS_GlobalArrays -------------------------- */ |
111 * ------------------------------ */ | |
112 | 110 |
113 class CJS_GlobalArrays : public CJS_Object { | 111 class CJS_GlobalArrays : public CJS_Object { |
114 public: | 112 public: |
115 static int Init(IJS_Runtime* pRuntime); | 113 static int Init(v8::Isolate* pIsolate); |
116 }; | 114 }; |
117 | 115 |
118 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_ | 116 #endif // FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_ |
OLD | NEW |