summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/text/LocaleWin.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/text/LocaleWin.h')
-rw-r--r--Source/WebCore/platform/text/LocaleWin.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/Source/WebCore/platform/text/LocaleWin.h b/Source/WebCore/platform/text/LocaleWin.h
index ab3acd760..21ad7bf5f 100644
--- a/Source/WebCore/platform/text/LocaleWin.h
+++ b/Source/WebCore/platform/text/LocaleWin.h
@@ -45,18 +45,18 @@ struct DateFormatToken;
class LocaleWin : public Localizer {
public:
static PassOwnPtr<LocaleWin> create(LCID);
- static LocaleWin* currentLocale();
~LocaleWin();
- double parseDate(const String&);
- String formatDate(const DateComponents&);
+ virtual double parseDateTime(const String&, DateComponents::Type) OVERRIDE;
#if ENABLE(CALENDAR_PICKER)
- String dateFormatText();
- const Vector<String>& monthLabels();
- const Vector<String>& weekDayShortLabels();
- unsigned firstDayOfWeek() { return m_firstDayOfWeek; }
+ virtual String dateFormatText() OVERRIDE;
+ virtual const Vector<String>& monthLabels() OVERRIDE;
+ virtual const Vector<String>& weekDayShortLabels() OVERRIDE;
+ virtual unsigned firstDayOfWeek() OVERRIDE;
+ virtual bool isRTL() OVERRIDE;
#endif
-#if ENABLE(INPUT_TYPE_TIME_MULTIPLE_FIELDS)
+#if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
+ virtual String dateFormat() OVERRIDE;
virtual String timeFormat() OVERRIDE;
virtual String shortTimeFormat() OVERRIDE;
virtual const Vector<String>& timeAMPMLabels() OVERRIDE;
@@ -66,6 +66,9 @@ public:
double parseDate(const String& format, int baseYear, const String& input);
String formatDate(const String& format, int baseYear, int year, int month, int day);
static String dateFormatText(const String& format, const String& yearText, const String& monthText, const String& dayText);
+#if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
+ static String dateFormat(const String&);
+#endif
private:
explicit LocaleWin(LCID);
@@ -93,6 +96,9 @@ private:
Vector<DateFormatToken> m_shortDateTokens;
Vector<String> m_shortMonthLabels;
Vector<String> m_monthLabels;
+#if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
+ String m_dateFormat;
+#endif
#if ENABLE(CALENDAR_PICKER)
Vector<String> m_weekDayShortLabels;
unsigned m_firstDayOfWeek;