blob: 8fafdd473c3c58ffb1d8acade027ec99549780b6 [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
7#include "fpdfsdk/javascript/cjs_scalehow.h"
8
9JSConstSpec CJS_ScaleHow::ConstSpecs[] = {
10 {"proportional", JSConstSpec::Number, 0, 0},
11 {"anamorphic", JSConstSpec::Number, 1, 0},
12 {0, JSConstSpec::Number, 0, 0}};
13
Dan Sinclair89d26c82017-10-26 12:21:28 -040014int CJS_ScaleHow::g_nObjDefnID = -1;
15
Dan Sinclair89d26c82017-10-26 12:21:28 -040016void CJS_ScaleHow::DefineJSObjects(CFXJS_Engine* pEngine,
17 FXJSOBJTYPE eObjType) {
Dan Sinclair15776cf2017-10-26 15:08:07 -040018 g_nObjDefnID = pEngine->DefineObj("scaleHow", eObjType, nullptr, nullptr);
Dan Sinclaird808dfd2017-10-26 15:04:17 -040019 DefineConsts(pEngine, g_nObjDefnID, ConstSpecs);
Dan Sinclair89d26c82017-10-26 12:21:28 -040020}