Title: [122320] trunk/Source/WebCore
- Revision
- 122320
- Author
- [email protected]
- Date
- 2012-07-11 02:44:03 -0700 (Wed, 11 Jul 2012)
Log Message
[Mac] Expose time format related functions
https://bugs.webkit.org/show_bug.cgi?id=90956
Reviewed by Kent Tamura.
This patch introduces localizedTimeFormatText, localizedShortTimeFormatText
and timeAMPMLabels for Mac within feature flag ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS.
See also:
ICU version: https://bugs.webkit.org/show_bug.cgi?id=89965
Win version: https://bugs.webkit.org/show_bug.cgi?id=90236
No new tests. This patch doesn't change behavior.
* platform/text/mac/LocalizedDateMac.cpp:
(WebCore::localizedTimeFormatText): Added.
(WebCore::localizedShortTimeFormatText): Added.
(WebCore::timeAMPMLabels): Added.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (122319 => 122320)
--- trunk/Source/WebCore/ChangeLog 2012-07-11 09:43:45 UTC (rev 122319)
+++ trunk/Source/WebCore/ChangeLog 2012-07-11 09:44:03 UTC (rev 122320)
@@ -1,3 +1,24 @@
+2012-07-11 Yoshifumi Inoue <[email protected]>
+
+ [Mac] Expose time format related functions
+ https://bugs.webkit.org/show_bug.cgi?id=90956
+
+ Reviewed by Kent Tamura.
+
+ This patch introduces localizedTimeFormatText, localizedShortTimeFormatText
+ and timeAMPMLabels for Mac within feature flag ENABLE_INPUT_TYPE_TIME_MULTIPLE_FIELDS.
+
+ See also:
+ ICU version: https://bugs.webkit.org/show_bug.cgi?id=89965
+ Win version: https://bugs.webkit.org/show_bug.cgi?id=90236
+
+ No new tests. This patch doesn't change behavior.
+
+ * platform/text/mac/LocalizedDateMac.cpp:
+ (WebCore::localizedTimeFormatText): Added.
+ (WebCore::localizedShortTimeFormatText): Added.
+ (WebCore::timeAMPMLabels): Added.
+
2012-07-11 Kenichi Ishibashi <[email protected]>
[Chromium] Adding HarfBuzz-ng for Linux
Modified: trunk/Source/WebCore/platform/text/mac/LocalizedDateMac.cpp (122319 => 122320)
--- trunk/Source/WebCore/platform/text/mac/LocalizedDateMac.cpp 2012-07-11 09:43:45 UTC (rev 122319)
+++ trunk/Source/WebCore/platform/text/mac/LocalizedDateMac.cpp 2012-07-11 09:44:03 UTC (rev 122320)
@@ -92,4 +92,21 @@
}
#endif
+#if ENABLE(INPUT_TYPE_TIME_MULTIPLE_FIELDS)
+String localizedTimeFormatText()
+{
+ return LocaleMac::currentLocale()->timeFormatText();
}
+
+String localizedShortTimeFormatText()
+{
+ return LocaleMac::currentLocale()->shortTimeFormatText();
+}
+
+const Vector<String>& timeAMPMLabels()
+{
+ return LocaleMac::currentLocale()->timeAMPMLabels();
+}
+#endif
+
+}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes