summaryrefslogtreecommitdiff
path: root/fxjs/cjs_publicmethods.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-29 23:44:56 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-29 23:44:56 +0000
commit05e43638cd377444b88def5c02562e771e25a158 (patch)
treee507e4387be96b58cff4f033e376651be5156506 /fxjs/cjs_publicmethods.h
parent06305f5d71c779a3fa2cd514ec34ee443bd0e5f9 (diff)
downloadpdfium-master.tar.xz
Rename two more CJS_PublicMethods methods.HEADmaster
Mark method table as private. Change-Id: I300c3ce2229a16b01e43d8b9057e47a69125bc95 Reviewed-on: https://pdfium-review.googlesource.com/c/44831 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_publicmethods.h')
-rw-r--r--fxjs/cjs_publicmethods.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/fxjs/cjs_publicmethods.h b/fxjs/cjs_publicmethods.h
index 0b72fb3e0a..99720ada39 100644
--- a/fxjs/cjs_publicmethods.h
+++ b/fxjs/cjs_publicmethods.h
@@ -18,6 +18,9 @@ class CJS_PublicMethods final : public CJS_Object {
~CJS_PublicMethods() override;
static void DefineJSObjects(CFXJS_Engine* pEngine);
+
+ static double ParseDate(const WideString& value, bool* bWrongFormat);
+ static double ParseDateAsGMT(const WideString& value);
static double ParseDateUsingFormat(const WideString& value,
const WideString& format,
bool* bWrongFormat);
@@ -137,7 +140,6 @@ class CJS_PublicMethods final : public CJS_Object {
static void AFExtractNums_static(
const v8::FunctionCallbackInfo<v8::Value>& info);
- static const JSMethodSpec GlobalFunctionSpecs[];
static int ParseStringInteger(const WideString& str,
size_t nStart,
size_t* pSkip,
@@ -145,17 +147,16 @@ class CJS_PublicMethods final : public CJS_Object {
static WideString ParseStringString(const WideString& str,
size_t nStart,
size_t* pSkip);
- static double ParseNormalDate(const WideString& value, bool* bWrongFormat);
- static double MakeInterDate(const WideString& value);
-
static bool MaskSatisfied(wchar_t c_Change, wchar_t c_Mask);
static bool IsReservedMaskChar(wchar_t ch);
-
static double AF_Simple(const wchar_t* sFuction,
double dValue1,
double dValue2);
static v8::Local<v8::Array> AF_MakeArrayFromList(CJS_Runtime* pRuntime,
v8::Local<v8::Value> val);
+
+ private:
+ static const JSMethodSpec GlobalFunctionSpecs[];
};
#endif // FXJS_CJS_PUBLICMETHODS_H_