blob: a52b51d46204add15066d08bb9110dd4b8d52b52 [file] [log] [blame]
dan sinclair993a1992017-10-25 20:21:09 -04001// Copyright 2017 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
Dan Sinclaire0345a42017-10-30 20:20:42 +00007#include "fxjs/cjs_display.h"
dan sinclair993a1992017-10-25 20:21:09 -04008
Dan Sinclairc94a7932017-10-26 16:48:57 -04009const JSConstSpec CJS_Display::ConstSpecs[] = {
10 {"visible", JSConstSpec::Number, 0, 0},
11 {"hidden", JSConstSpec::Number, 1, 0},
12 {"noPrint", JSConstSpec::Number, 2, 0},
13 {"noView", JSConstSpec::Number, 3, 0},
14 {0, JSConstSpec::Number, 0, 0}};
dan sinclair993a1992017-10-25 20:21:09 -040015
Dan Sinclairef299532017-10-26 16:48:30 -040016int CJS_Display::ObjDefnID = -1;
Dan Sinclair89d26c82017-10-26 12:21:28 -040017
Dan Sinclairef299532017-10-26 16:48:30 -040018// static
Dan Sinclairbef4d3e2017-10-26 16:49:38 -040019void CJS_Display::DefineJSObjects(CFXJS_Engine* pEngine) {
20 ObjDefnID =
21 pEngine->DefineObj("display", FXJSOBJTYPE_STATIC, nullptr, nullptr);
Dan Sinclairef299532017-10-26 16:48:30 -040022 DefineConsts(pEngine, ObjDefnID, ConstSpecs);
Dan Sinclair89d26c82017-10-26 12:21:28 -040023}