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_border.h"
8
9 const JSConstSpec CJS_Border::ConstSpecs[] = {
10 {"s", JSConstSpec::String, 0, "solid"},
11 {"b", JSConstSpec::String, 0, "beveled"},
12 {"d", JSConstSpec::String, 0, "dashed"},
13 {"i", JSConstSpec::String, 0, "inset"},
14 {"u", JSConstSpec::String, 0, "underline"}};
15
16 uint32_t CJS_Border::ObjDefnID = 0;
17
18 // static
DefineJSObjects(CFXJS_Engine * pEngine)19 void CJS_Border::DefineJSObjects(CFXJS_Engine* pEngine) {
20 ObjDefnID =
21 pEngine->DefineObj("border", FXJSOBJTYPE_STATIC, nullptr, nullptr);
22 DefineConsts(pEngine, ObjDefnID, ConstSpecs);
23 }
24