• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_highlight.h"
8 
9 const JSConstSpec CJS_Highlight::ConstSpecs[] = {
10     {"n", JSConstSpec::String, 0, "none"},
11     {"i", JSConstSpec::String, 0, "invert"},
12     {"p", JSConstSpec::String, 0, "push"},
13     {"o", JSConstSpec::String, 0, "outline"}};
14 
15 uint32_t CJS_Highlight::ObjDefnID = 0;
16 
17 // static
DefineJSObjects(CFXJS_Engine * pEngine)18 void CJS_Highlight::DefineJSObjects(CFXJS_Engine* pEngine) {
19   ObjDefnID =
20       pEngine->DefineObj("highlight", FXJSOBJTYPE_STATIC, nullptr, nullptr);
21   DefineConsts(pEngine, ObjDefnID, ConstSpecs);
22 }
23