1 // Copyright 2016 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 #ifndef FXJS_CJS_KEYVALUE_H_
8 #define FXJS_CJS_KEYVALUE_H_
9 
10 #include "core/fxcrt/fx_string.h"
11 #include "fxjs/cjs_globalvariablearray.h"
12 
13 enum class JS_GlobalDataType { NUMBER = 0, BOOLEAN, STRING, OBJECT, NULLOBJ };
14 
15 class CJS_KeyValue {
16  public:
17   CJS_KeyValue();
18   ~CJS_KeyValue();
19 
20   ByteString sKey;
21   JS_GlobalDataType nType;
22   double dData;
23   bool bData;
24   ByteString sData;
25   CJS_GlobalVariableArray objData;
26 };
27 
28 #endif  // FXJS_CJS_KEYVALUE_H_
29