From 4c50b8b2a2cc1b88e8df92dbee7048356ec0a6fb Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 25 Oct 2017 15:36:11 -0400 Subject: Remove methods from CJS_Date This CL converts CJS_Date to a thin wrapper around a v8::Local. Change-Id: I1510ae5ff7757677e4fe18deac4593cc75493c1b Reviewed-on: https://pdfium-review.googlesource.com/16810 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- fpdfsdk/javascript/JS_Value.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'fpdfsdk/javascript/JS_Value.h') diff --git a/fpdfsdk/javascript/JS_Value.h b/fpdfsdk/javascript/JS_Value.h index e3947eb66b..6136119e51 100644 --- a/fpdfsdk/javascript/JS_Value.h +++ b/fpdfsdk/javascript/JS_Value.h @@ -62,28 +62,10 @@ class CJS_Array { class CJS_Date { public: - CJS_Date(); explicit CJS_Date(v8::Local pDate); - CJS_Date(CJS_Runtime* pRuntime, double dMsec_time); - CJS_Date(CJS_Runtime* pRuntime, - int year, - int mon, - int day, - int hour, - int min, - int sec); CJS_Date(const CJS_Date&); virtual ~CJS_Date(); - bool IsValidDate(CJS_Runtime* pRuntime) const; - - int GetYear(CJS_Runtime* pRuntime) const; - int GetMonth(CJS_Runtime* pRuntime) const; - int GetDay(CJS_Runtime* pRuntime) const; - int GetHours(CJS_Runtime* pRuntime) const; - int GetMinutes(CJS_Runtime* pRuntime) const; - int GetSeconds(CJS_Runtime* pRuntime) const; - v8::Local ToV8Value() const { return m_pDate; } private: @@ -97,6 +79,7 @@ int JS_GetDayFromTime(double dt); int JS_GetHourFromTime(double dt); int JS_GetMinFromTime(double dt); int JS_GetSecFromTime(double dt); +double JS_LocalTime(double d); double JS_DateParse(const WideString& str); double JS_MakeDay(int nYear, int nMonth, int nDay); double JS_MakeTime(int nHour, int nMin, int nSec, int nMs); -- cgit v1.2.3