• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef FPDFSDK_SRC_JAVASCRIPT_CONSTS_H_
8 #define FPDFSDK_SRC_JAVASCRIPT_CONSTS_H_
9 
10 #include "JS_Define.h"
11 
12 /* ------------------------------ border ------------------------------ */
13 
14 class CJS_Border : public CJS_Object {
15  public:
CJS_Border(v8::Local<v8::Object> pObject)16   explicit CJS_Border(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Border()17   ~CJS_Border() override {}
18 
19   DECLARE_JS_CLASS_CONST();
20 };
21 
22 /* ------------------------------ display ------------------------------ */
23 
24 class CJS_Display : public CJS_Object {
25  public:
CJS_Display(v8::Local<v8::Object> pObject)26   explicit CJS_Display(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Display()27   ~CJS_Display() override {}
28 
29   DECLARE_JS_CLASS_CONST();
30 };
31 
32 /* ------------------------------ font ------------------------------ */
33 
34 class CJS_Font : public CJS_Object {
35  public:
CJS_Font(v8::Local<v8::Object> pObject)36   explicit CJS_Font(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Font()37   ~CJS_Font() override {}
38 
39   DECLARE_JS_CLASS_CONST();
40 };
41 
42 /* ------------------------------ highlight ------------------------------ */
43 
44 class CJS_Highlight : public CJS_Object {
45  public:
CJS_Highlight(v8::Local<v8::Object> pObject)46   explicit CJS_Highlight(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Highlight()47   ~CJS_Highlight() override {}
48 
49   DECLARE_JS_CLASS_CONST();
50 };
51 
52 /* ------------------------------ position ------------------------------ */
53 
54 class CJS_Position : public CJS_Object {
55  public:
CJS_Position(v8::Local<v8::Object> pObject)56   explicit CJS_Position(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Position()57   ~CJS_Position() override {}
58 
59   DECLARE_JS_CLASS_CONST();
60 };
61 
62 /* ------------------------------ scaleHow ------------------------------ */
63 
64 class CJS_ScaleHow : public CJS_Object {
65  public:
CJS_ScaleHow(v8::Local<v8::Object> pObject)66   explicit CJS_ScaleHow(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_ScaleHow()67   ~CJS_ScaleHow() override {}
68 
69   DECLARE_JS_CLASS_CONST();
70 };
71 
72 /* ------------------------------ scaleWhen ------------------------------ */
73 
74 class CJS_ScaleWhen : public CJS_Object {
75  public:
CJS_ScaleWhen(v8::Local<v8::Object> pObject)76   explicit CJS_ScaleWhen(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_ScaleWhen()77   ~CJS_ScaleWhen() override {}
78 
79   DECLARE_JS_CLASS_CONST();
80 };
81 
82 /* ------------------------------ style ------------------------------ */
83 
84 class CJS_Style : public CJS_Object {
85  public:
CJS_Style(v8::Local<v8::Object> pObject)86   explicit CJS_Style(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Style()87   ~CJS_Style() override {}
88 
89   DECLARE_JS_CLASS_CONST();
90 };
91 
92 /* ------------------------------ zoomtype ------------------------------ */
93 
94 class CJS_Zoomtype : public CJS_Object {
95  public:
CJS_Zoomtype(v8::Local<v8::Object> pObject)96   explicit CJS_Zoomtype(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Zoomtype()97   ~CJS_Zoomtype() override {}
98 
99   DECLARE_JS_CLASS_CONST();
100 };
101 
102 /* ------------------------------ CJS_GlobalConsts -------------------------- */
103 
104 class CJS_GlobalConsts : public CJS_Object {
105  public:
106   static void DefineJSObjects(CJS_Runtime* pRuntime);
107 };
108 
109 /* ------------------------------ CJS_GlobalArrays -------------------------- */
110 
111 class CJS_GlobalArrays : public CJS_Object {
112  public:
113   static void DefineJSObjects(CJS_Runtime* pRuntmie);
114 };
115 
116 #endif  // FPDFSDK_SRC_JAVASCRIPT_CONSTS_H_
117