• 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_JAVASCRIPT_CONSTS_H_
8 #define FPDFSDK_JAVASCRIPT_CONSTS_H_
9 
10 #include "fpdfsdk/javascript/JS_Define.h"
11 
12 class CJS_Border : public CJS_Object {
13  public:
CJS_Border(v8::Local<v8::Object> pObject)14   explicit CJS_Border(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Border()15   ~CJS_Border() override {}
16 
17   DECLARE_JS_CLASS_CONST();
18 };
19 
20 class CJS_Display : public CJS_Object {
21  public:
CJS_Display(v8::Local<v8::Object> pObject)22   explicit CJS_Display(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Display()23   ~CJS_Display() override {}
24 
25   DECLARE_JS_CLASS_CONST();
26 };
27 
28 class CJS_Font : public CJS_Object {
29  public:
CJS_Font(v8::Local<v8::Object> pObject)30   explicit CJS_Font(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Font()31   ~CJS_Font() override {}
32 
33   DECLARE_JS_CLASS_CONST();
34 };
35 
36 class CJS_Highlight : public CJS_Object {
37  public:
CJS_Highlight(v8::Local<v8::Object> pObject)38   explicit CJS_Highlight(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Highlight()39   ~CJS_Highlight() override {}
40 
41   DECLARE_JS_CLASS_CONST();
42 };
43 
44 class CJS_Position : public CJS_Object {
45  public:
CJS_Position(v8::Local<v8::Object> pObject)46   explicit CJS_Position(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Position()47   ~CJS_Position() override {}
48 
49   DECLARE_JS_CLASS_CONST();
50 };
51 
52 class CJS_ScaleHow : public CJS_Object {
53  public:
CJS_ScaleHow(v8::Local<v8::Object> pObject)54   explicit CJS_ScaleHow(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_ScaleHow()55   ~CJS_ScaleHow() override {}
56 
57   DECLARE_JS_CLASS_CONST();
58 };
59 
60 class CJS_ScaleWhen : public CJS_Object {
61  public:
CJS_ScaleWhen(v8::Local<v8::Object> pObject)62   explicit CJS_ScaleWhen(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_ScaleWhen()63   ~CJS_ScaleWhen() override {}
64 
65   DECLARE_JS_CLASS_CONST();
66 };
67 
68 class CJS_Style : public CJS_Object {
69  public:
CJS_Style(v8::Local<v8::Object> pObject)70   explicit CJS_Style(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Style()71   ~CJS_Style() override {}
72 
73   DECLARE_JS_CLASS_CONST();
74 };
75 
76 class CJS_Zoomtype : public CJS_Object {
77  public:
CJS_Zoomtype(v8::Local<v8::Object> pObject)78   explicit CJS_Zoomtype(v8::Local<v8::Object> pObject) : CJS_Object(pObject) {}
~CJS_Zoomtype()79   ~CJS_Zoomtype() override {}
80 
81   DECLARE_JS_CLASS_CONST();
82 };
83 
84 class CJS_GlobalConsts : public CJS_Object {
85  public:
86   static void DefineJSObjects(CJS_Runtime* pRuntime);
87 };
88 
89 class CJS_GlobalArrays : public CJS_Object {
90  public:
91   static void DefineJSObjects(CJS_Runtime* pRuntmie);
92 };
93 
94 #endif  // FPDFSDK_JAVASCRIPT_CONSTS_H_
95