Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cjs_display.cpp
Go to the documentation of this file.
1// Copyright 2017 The PDFium Authors
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
9const JSConstSpec CJS_Display::ConstSpecs[] = {
10 {"visible", JSConstSpec::Number, 0, nullptr},
11 {"hidden", JSConstSpec::Number, 1, nullptr},
12 {"noPrint", JSConstSpec::Number, 2, nullptr},
13 {"noView", JSConstSpec::Number, 3, nullptr}};
14
15uint32_t CJS_Display::ObjDefnID = 0;
16
17// static
18void CJS_Display::DefineJSObjects(CFXJS_Engine* pEngine) {
19 ObjDefnID =
20 pEngine->DefineObj("display", FXJSOBJTYPE_STATIC, nullptr, nullptr);
21 DefineConsts(pEngine, ObjDefnID, ConstSpecs);
22}
@ FXJSOBJTYPE_STATIC
static void DefineJSObjects(CFXJS_Engine *pEngine)
static void DefineConsts(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSConstSpec > consts)