blob: fcefcd486f8024d6ebc608e49b0f60be7bfdc819 [file] [log] [blame]
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07001// Copyright 2014 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.
Tom Sepez2b0ed942015-02-27 13:58:29 -08004
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07005// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
Tom Sepez37458412015-10-06 11:33:46 -07007#ifndef FPDFSDK_SRC_JAVASCRIPT_RESOURCE_H_
8#define FPDFSDK_SRC_JAVASCRIPT_RESOURCE_H_
Tom Sepez2b0ed942015-02-27 13:58:29 -08009
Lei Zhange5b0bd12015-06-19 17:15:41 -070010#include "../../../core/include/fxcrt/fx_string.h" // For CFX_WideString.
Tom Sepez37458412015-10-06 11:33:46 -070011#include "../../include/fsdk_define.h" // For FX_UINT.
Tom Sepez2b0ed942015-02-27 13:58:29 -080012
13class CJS_Context;
14
Nico Weber9d8ec5a2015-08-04 13:00:21 -070015#define IDS_STRING_JSALERT 25613
16#define IDS_STRING_JSPARAMERROR 25614
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070017#define IDS_STRING_JSAFNUMBER_KEYSTROKE 25615
Nico Weber9d8ec5a2015-08-04 13:00:21 -070018#define IDS_STRING_JSPARAM_TOOLONG 25617
19#define IDS_STRING_JSPARSEDATE 25618
20#define IDS_STRING_JSRANGE1 25619
21#define IDS_STRING_JSRANGE2 25620
22#define IDS_STRING_JSRANGE3 25621
23#define IDS_STRING_NOTSUPPORT 25627
24#define IDS_STRING_JSBUSY 25628
25#define IDS_STRING_JSEVENT 25629
26#define IDS_STRING_RUN 25630
27#define IDS_STRING_JSPRINT1 25632
28#define IDS_STRING_JSPRINT2 25633
29#define IDS_STRING_JSNOGLOBAL 25635
30#define IDS_STRING_JSREADONLY 25636
31#define IDS_STRING_JSTYPEERROR 25637
32#define IDS_STRING_JSVALUEERROR 25638
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070033
Tom Sepez2b0ed942015-02-27 13:58:29 -080034CFX_WideString JSGetStringFromID(CJS_Context* pContext, FX_UINT id);
Tom Sepez3a832662015-03-02 12:59:05 -080035CFX_WideString JSFormatErrorString(const char* class_name,
36 const char* property_name,
37 const CFX_WideString& details);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070038
Tom Sepez37458412015-10-06 11:33:46 -070039#endif // FPDFSDK_SRC_JAVASCRIPT_RESOURCE_H_