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

Side by Side Diff: fpdfsdk/src/javascript/JS_Value.h

Issue 1773733002: Review and cleanup lint warnings. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 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/src/javascript/JS_Runtime.h ('k') | fpdfsdk/src/javascript/JS_Value.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_ 7 #ifndef FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_
8 #define FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_ 8 #define FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_
9 9
10 #include <vector>
11
10 #include "core/include/fxcrt/fx_basic.h" 12 #include "core/include/fxcrt/fx_basic.h"
11 #include "fpdfsdk/include/jsapi/fxjs_v8.h" 13 #include "fpdfsdk/include/jsapi/fxjs_v8.h"
12 14
13 class CJS_Array; 15 class CJS_Array;
14 class CJS_Date; 16 class CJS_Date;
15 class CJS_Document; 17 class CJS_Document;
16 class CJS_Object; 18 class CJS_Object;
17 class CJS_Runtime; 19 class CJS_Runtime;
18 20
19 class CJS_Value { 21 class CJS_Value {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 CJS_Runtime* m_pJSRuntime; 201 CJS_Runtime* m_pJSRuntime;
200 }; 202 };
201 203
202 double JS_GetDateTime(); 204 double JS_GetDateTime();
203 int JS_GetYearFromTime(double dt); 205 int JS_GetYearFromTime(double dt);
204 int JS_GetMonthFromTime(double dt); 206 int JS_GetMonthFromTime(double dt);
205 int JS_GetDayFromTime(double dt); 207 int JS_GetDayFromTime(double dt);
206 int JS_GetHourFromTime(double dt); 208 int JS_GetHourFromTime(double dt);
207 int JS_GetMinFromTime(double dt); 209 int JS_GetMinFromTime(double dt);
208 int JS_GetSecFromTime(double dt); 210 int JS_GetSecFromTime(double dt);
209 double JS_DateParse(const wchar_t* string); 211 double JS_DateParse(const wchar_t* str);
210 double JS_MakeDay(int nYear, int nMonth, int nDay); 212 double JS_MakeDay(int nYear, int nMonth, int nDay);
211 double JS_MakeTime(int nHour, int nMin, int nSec, int nMs); 213 double JS_MakeTime(int nHour, int nMin, int nSec, int nMs);
212 double JS_MakeDate(double day, double time); 214 double JS_MakeDate(double day, double time);
213 bool JS_PortIsNan(double d); 215 bool JS_PortIsNan(double d);
214 double JS_LocalTime(double d); 216 double JS_LocalTime(double d);
215 217
216 // Some JS methods have the bizarre convention that they may also be called 218 // Some JS methods have the bizarre convention that they may also be called
217 // with a single argument which is an object containing the actual arguments 219 // with a single argument which is an object containing the actual arguments
218 // as its properties. The varying arguments to this method are the property 220 // as its properties. The varying arguments to this method are the property
219 // names as wchar_t string literals corresponding to each positional argument. 221 // names as wchar_t string literals corresponding to each positional argument.
220 // The result will always contain |nKeywords| value, with unspecified ones 222 // The result will always contain |nKeywords| value, with unspecified ones
221 // being set to type VT_unknown. 223 // being set to type VT_unknown.
222 std::vector<CJS_Value> JS_ExpandKeywordParams( 224 std::vector<CJS_Value> JS_ExpandKeywordParams(
223 CJS_Runtime* pRuntime, 225 CJS_Runtime* pRuntime,
224 const std::vector<CJS_Value>& originals, 226 const std::vector<CJS_Value>& originals,
225 size_t nKeywords, 227 size_t nKeywords,
226 ...); 228 ...);
227 229
228 #endif // FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_ 230 #endif // FPDFSDK_SRC_JAVASCRIPT_JS_VALUE_H_
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/JS_Runtime.h ('k') | fpdfsdk/src/javascript/JS_Value.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698