summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/JS_Value.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-25 15:36:11 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-25 19:51:03 +0000
commit4c50b8b2a2cc1b88e8df92dbee7048356ec0a6fb (patch)
treec9197f9a52f161603a889b3d2a5e5f614d89fd6e /fpdfsdk/javascript/JS_Value.h
parent636904b802b93b047918ce1000019edfa5da59ed (diff)
downloadpdfium-4c50b8b2a2cc1b88e8df92dbee7048356ec0a6fb.tar.xz
Remove methods from CJS_Date
This CL converts CJS_Date to a thin wrapper around a v8::Local<v8::Date>. Change-Id: I1510ae5ff7757677e4fe18deac4593cc75493c1b Reviewed-on: https://pdfium-review.googlesource.com/16810 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/JS_Value.h')
-rw-r--r--fpdfsdk/javascript/JS_Value.h19
1 files changed, 1 insertions, 18 deletions
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<v8::Date> 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<v8::Value> 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);