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

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

Issue 1084183008: Remove unused nParamNum values from JS method tables. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: More tabify. Created 5 years, 8 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
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "../../include/javascript/resource.h" 7 #include "../../include/javascript/resource.h"
8 8
9 CFX_WideString JSGetStringFromID(CJS_Context* pContext, FX_UINT id) 9 CFX_WideString JSGetStringFromID(CJS_Context* pContext, FX_UINT id)
10 { 10 {
(...skipping 25 matching lines...) Expand all
36 case IDS_STRING_RUN: 36 case IDS_STRING_RUN:
37 return L"Script ran successfully."; 37 return L"Script ran successfully.";
38 case IDS_STRING_JSPRINT1: 38 case IDS_STRING_JSPRINT1:
39 return L"The second parameter can't be converted to a Date."; 39 return L"The second parameter can't be converted to a Date.";
40 case IDS_STRING_JSPRINT2: 40 case IDS_STRING_JSPRINT2:
41 return L"The second parameter is an invalid Date!"; 41 return L"The second parameter is an invalid Date!";
42 case IDS_STRING_JSNOGLOBAL: 42 case IDS_STRING_JSNOGLOBAL:
43 return L"Global value not found."; 43 return L"Global value not found.";
44 case IDS_STRING_JSREADONLY: 44 case IDS_STRING_JSREADONLY:
45 return L"Cannot assign to readonly property."; 45 return L"Cannot assign to readonly property.";
46 case IDS_STRING_JSTYPEERROR:
47 return L"Incorrect parameter type.";
48 case IDS_STRING_JSVALUEERROR:
49 return L"Incorrect parameter value.";
46 default: 50 default:
47 return L""; 51 return L"";
48 } 52 }
49 } 53 }
50 54
51 CFX_WideString JSFormatErrorString(const char* class_name, 55 CFX_WideString JSFormatErrorString(const char* class_name,
52 const char* property_name, 56 const char* property_name,
53 const CFX_WideString& details) { 57 const CFX_WideString& details) {
54 CFX_WideString result = CFX_WideString::FromLocal(class_name); 58 CFX_WideString result = CFX_WideString::FromLocal(class_name);
55 if (property_name) { 59 if (property_name) {
56 result += L"."; 60 result += L".";
57 result += CFX_WideString::FromLocal(property_name); 61 result += CFX_WideString::FromLocal(property_name);
58 } 62 }
59 result += L": "; 63 result += L": ";
60 result += details; 64 result += details;
61 return result; 65 return result;
62 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698