John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 1 | // 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 Sepez | 2b0ed94 | 2015-02-27 13:58:29 -0800 | [diff] [blame] | 4 | |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 5 | // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | |
Dan Sinclair | f766ad2 | 2016-03-14 13:51:24 -0400 | [diff] [blame] | 7 | #ifndef FPDFSDK_JAVASCRIPT_RESOURCE_H_ |
| 8 | #define FPDFSDK_JAVASCRIPT_RESOURCE_H_ |
Tom Sepez | 2b0ed94 | 2015-02-27 13:58:29 -0800 | [diff] [blame] | 9 | |
Dan Sinclair | a8a28e0 | 2016-03-23 15:41:39 -0400 | [diff] [blame] | 10 | #include "core/fxcrt/include/fx_string.h" // For CFX_WideString. |
Lei Zhang | bde53d2 | 2015-11-12 22:21:30 -0800 | [diff] [blame] | 11 | #include "fpdfsdk/include/fsdk_define.h" // For FX_UINT. |
Tom Sepez | 2b0ed94 | 2015-02-27 13:58:29 -0800 | [diff] [blame] | 12 | |
| 13 | class CJS_Context; |
| 14 | |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame] | 15 | #define IDS_STRING_JSALERT 25613 |
| 16 | #define IDS_STRING_JSPARAMERROR 25614 |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 17 | #define IDS_STRING_JSAFNUMBER_KEYSTROKE 25615 |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame] | 18 | #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 |
tsepez | cd5dc85 | 2016-09-08 11:23:24 -0700 | [diff] [blame^] | 23 | #define IDS_STRING_JSNOTSUPPORT 25627 |
Nico Weber | 9d8ec5a | 2015-08-04 13:00:21 -0700 | [diff] [blame] | 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 |
tsepez | cd5dc85 | 2016-09-08 11:23:24 -0700 | [diff] [blame^] | 33 | #define IDS_STRING_JSNOPERMISSION 25639 |
| 34 | #define IDS_STRING_JSBADOBJECT 25640 |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 35 | |
tsepez | cd5dc85 | 2016-09-08 11:23:24 -0700 | [diff] [blame^] | 36 | CFX_WideString JSGetStringFromID(FX_UINT id); |
Tom Sepez | 3a83266 | 2015-03-02 12:59:05 -0800 | [diff] [blame] | 37 | CFX_WideString JSFormatErrorString(const char* class_name, |
| 38 | const char* property_name, |
| 39 | const CFX_WideString& details); |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 40 | |
Dan Sinclair | f766ad2 | 2016-03-14 13:51:24 -0400 | [diff] [blame] | 41 | #endif // FPDFSDK_JAVASCRIPT_RESOURCE_H_ |