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_scalewhen.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_scalewhen.h"
8
9
const
JSConstSpec
CJS_ScaleWhen::ConstSpecs[] = {
10
{
"always"
,
JSConstSpec
::
Number
, 0,
nullptr
},
11
{
"never"
,
JSConstSpec
::
Number
, 1,
nullptr
},
12
{
"tooBig"
,
JSConstSpec
::
Number
, 2,
nullptr
},
13
{
"tooSmall"
,
JSConstSpec
::
Number
, 3,
nullptr
}};
14
15
uint32_t CJS_ScaleWhen::ObjDefnID = 0;
16
17
// static
18
void
CJS_ScaleWhen::
DefineJSObjects
(
CFXJS_Engine
* pEngine) {
19
ObjDefnID =
20
pEngine->DefineObj(
"scaleWhen"
,
FXJSOBJTYPE_STATIC
,
nullptr
,
nullptr
);
21
DefineConsts
(pEngine, ObjDefnID, ConstSpecs);
22
}
FXJSOBJTYPE_STATIC
@ FXJSOBJTYPE_STATIC
Definition
cfxjs_engine.h:37
CFXJS_Engine
Definition
cfxjs_engine.h:83
CJS_Object::DefineConsts
static void DefineConsts(CFXJS_Engine *pEngine, uint32_t nObjDefnID, pdfium::span< const JSConstSpec > consts)
Definition
cjs_object.cpp:12
CJS_ScaleWhen::DefineJSObjects
static void DefineJSObjects(CFXJS_Engine *pEngine)
Definition
cjs_scalewhen.cpp:18
JSConstSpec
Definition
cjs_object.h:16
JSConstSpec::Number
@ Number
Definition
cjs_object.h:17
qtwebengine
src
3rdparty
chromium
third_party
pdfium
fxjs
cjs_scalewhen.cpp
Generated on Thu Nov 14 2024 01:02:39 for Qt by
1.12.0