blob: af7788ff7d3880c96bdd8ada2c7f5878bca33273 [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
Dan Sinclairf766ad22016-03-14 13:51:24 -04007#ifndef FPDFSDK_JAVASCRIPT_RESOURCE_H_
8#define FPDFSDK_JAVASCRIPT_RESOURCE_H_
Tom Sepez2b0ed942015-02-27 13:58:29 -08009
dsinclaira52ab742016-09-29 13:59:29 -070010#include "core/fxcrt/fx_string.h"
Tom Sepez2b0ed942015-02-27 13:58:29 -080011
Tom Sepezd6ae2af2017-02-16 11:49:55 -080012class CJS_EventContext;
Tom Sepez2b0ed942015-02-27 13:58:29 -080013
Nico Weber9d8ec5a2015-08-04 13:00:21 -070014#define IDS_STRING_JSALERT 25613
15#define IDS_STRING_JSPARAMERROR 25614
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070016#define IDS_STRING_JSAFNUMBER_KEYSTROKE 25615
Nico Weber9d8ec5a2015-08-04 13:00:21 -070017#define IDS_STRING_JSPARAM_TOOLONG 25617
18#define IDS_STRING_JSPARSEDATE 25618
19#define IDS_STRING_JSRANGE1 25619
20#define IDS_STRING_JSRANGE2 25620
21#define IDS_STRING_JSRANGE3 25621
tsepezcd5dc852016-09-08 11:23:24 -070022#define IDS_STRING_JSNOTSUPPORT 25627
Nico Weber9d8ec5a2015-08-04 13:00:21 -070023#define IDS_STRING_JSBUSY 25628
24#define IDS_STRING_JSEVENT 25629
25#define IDS_STRING_RUN 25630
26#define IDS_STRING_JSPRINT1 25632
27#define IDS_STRING_JSPRINT2 25633
28#define IDS_STRING_JSNOGLOBAL 25635
29#define IDS_STRING_JSREADONLY 25636
30#define IDS_STRING_JSTYPEERROR 25637
31#define IDS_STRING_JSVALUEERROR 25638
tsepezcd5dc852016-09-08 11:23:24 -070032#define IDS_STRING_JSNOPERMISSION 25639
33#define IDS_STRING_JSBADOBJECT 25640
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070034
dsinclair72177da2016-09-15 12:07:23 -070035CFX_WideString JSGetStringFromID(uint32_t id);
Tom Sepez3a832662015-03-02 12:59:05 -080036CFX_WideString JSFormatErrorString(const char* class_name,
37 const char* property_name,
38 const CFX_WideString& details);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070039
Dan Sinclairf766ad22016-03-14 13:51:24 -040040#endif // FPDFSDK_JAVASCRIPT_RESOURCE_H_