Home | History | Annotate | Download | only in fxjs
      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_scalehow.h"
      8 
      9 const JSConstSpec CJS_ScaleHow::ConstSpecs[] = {
     10     {"proportional", JSConstSpec::Number, 0, 0},
     11     {"anamorphic", JSConstSpec::Number, 1, 0}};
     12 
     13 int CJS_ScaleHow::ObjDefnID = -1;
     14 
     15 // static
     16 void CJS_ScaleHow::DefineJSObjects(CFXJS_Engine* pEngine) {
     17   ObjDefnID =
     18       pEngine->DefineObj("scaleHow", FXJSOBJTYPE_STATIC, nullptr, nullptr);
     19   DefineConsts(pEngine, ObjDefnID, ConstSpecs, FX_ArraySize(ConstSpecs));
     20 }
     21