Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: fpdfsdk/src/javascript/resource.cpp

Issue 955273003: Remove unused IDS_ constants from pdfium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Use lowercase for formal parameter names. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fpdfsdk/include/javascript/resource.h ('k') | pdfium.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #include "../../include/javascript/resource.h"
8
9 CFX_WideString JSGetStringFromID(CJS_Context* pContext, FX_UINT id)
10 {
11 switch (id)
12 {
13 case IDS_STRING_JSALERT:
14 return L"Alert";
15 case IDS_STRING_JSPARAMERROR:
16 return L"Incorrect number of parameters passed to function.";
17 case IDS_STRING_JSAFNUMBER_KEYSTROKE:
18 return L"The input value is invalid.";
19 case IDS_STRING_JSPARAM_TOOLONG:
20 return L"The input value is too long.";
21 case IDS_STRING_JSPARSEDATE:
22 return L"The input value can't be parsed as a valid date/time (% s).";
Lei Zhang 2015/02/27 21:34:02 80 chars
Tom Sepez 2015/02/27 21:48:32 This one fits at tabs ==4 but the next one doesn't
23 case IDS_STRING_JSRANGE1:
24 return L"The input value must be greater than or equal to %s and less than or equal to %s.";
25 case IDS_STRING_JSRANGE2:
26 return L"The input value must be greater than or equal to %s.";
27 case IDS_STRING_JSRANGE3:
28 return L"The input value must be less than or equal to %s.";
29 case IDS_STRING_NOTSUPPORT:
30 return L"Operation not supported.";
31 case IDS_STRING_JSBUSY:
32 return L"System is busy.";
33 case IDS_STRING_JSEVENT:
34 return L"Duplicate formfield event found.";
35 case IDS_STRING_RUN:
36 return L"Script ran successfully.";
37 case IDS_STRING_JSPRINT1:
38 return L"The second parameter can't be converted to a Date.";
39 case IDS_STRING_JSPRINT2:
40 return L"The second parameter is an invalid Date!";
41 case IDS_JSPARAM_INCORRECT:
42 return L"Global value not found.";
43 default:
44 return L"";
45 }
46 }
OLDNEW
« no previous file with comments | « fpdfsdk/include/javascript/resource.h ('k') | pdfium.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698