1 // 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 7 #include "fxjs/cjs_display.h" 8 9 const 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 15 int CJS_Display::ObjDefnID = -1; 16 17 // static 18 void CJS_Display::DefineJSObjects(CFXJS_Engine* pEngine) { 19 ObjDefnID = 20 pEngine->DefineObj("display", FXJSOBJTYPE_STATIC, nullptr, nullptr); 21 DefineConsts(pEngine, ObjDefnID, ConstSpecs, FX_ArraySize(ConstSpecs)); 22 } 23