Changeset 130127 in webkit
- Timestamp:
- Oct 1, 2012 11:48:59 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r130125 r130127 1 2012-10-01 Yoshifumi Inoue <yosin@chromium.org> 2 3 Adding Localizer::dateFormat() for multiple fields date/datetime input UI 4 https://bugs.webkit.org/show_bug.cgi?id=98109 5 6 Reviewed by Kent Tamura. 7 8 This patch introduces Localizer::dateFormat() function for multiple 9 fields date/datetime/datetime-local input UI inside ENABLE_INPUT_MULTIPLE_FIELDS_UI. 10 11 We'll have platform specific implementations in LocaleICU, LocaleMac, 12 and LocaleWin. 13 14 No new tests. Other patches will add tests for this change. 15 16 * platform/text/LocaleICU.cpp: 17 (WebCore::LocaleICU::dateFormat): Added a stub. 18 * platform/text/LocaleICU.h: 19 (LocaleICU): Changed to add a declaration of dateFormat(). 20 * platform/text/LocaleNone.cpp: 21 (LocaleNone): Changed to add a declaration of dateFormat(). 22 (WebCore::LocaleNone::dateFormat): Added. 23 * platform/text/LocaleWin.cpp: 24 (WebCore::LocaleWin::dateFormat): Added. 25 * platform/text/LocaleWin.h: 26 (LocaleWin): Changed to add a declaration of dateFormat(). 27 * platform/text/Localizer.h: Updates Unicode TR35 URI in a comment. 28 (Localizer): Changed to add a declaration of dateFormat(). 29 * platform/text/mac/LocaleMac.h: 30 (LocaleMac): Changed to add a declaration of dateFormat(). 31 * platform/text/mac/LocaleMac.mm: 32 (WebCore::LocaleMac::dateFormat): Added a stub. 33 1 34 2012-10-01 Adam Barth <abarth@webkit.org> 2 35 -
trunk/Source/WebCore/platform/text/LocaleICU.cpp
r129912 r130127 412 412 } 413 413 414 String LocaleICU::dateFormat() 415 { 416 // FIXME: We should have real implementation of LocaleICU::dateFormat(). 417 return emptyString(); 418 } 419 414 420 String LocaleICU::timeFormat() 415 421 { -
trunk/Source/WebCore/platform/text/LocaleICU.h
r129912 r130127 63 63 64 64 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 65 virtual String dateFormat() OVERRIDE; 65 66 virtual String timeFormat() OVERRIDE; 66 67 virtual String shortTimeFormat() OVERRIDE; -
trunk/Source/WebCore/platform/text/LocaleNone.cpp
r129912 r130127 41 41 virtual String dateFormatText() OVERRIDE; 42 42 #endif 43 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 44 virtual String dateFormat() OVERRIDE; 45 #endif 43 46 }; 44 47 … … 73 76 #endif 74 77 78 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 79 String LocaleNone::dateFormat() 80 { 81 return ASCIILiteral("dd/mm/yyyyy"); 82 } 83 #endif 84 75 85 } // namespace WebCore -
trunk/Source/WebCore/platform/text/LocaleWin.cpp
r129912 r130127 730 730 } 731 731 732 String LocaleWin::dateFormat() 733 { 734 // FIXME: We should have real implementation of LocaleWin::dateFormat(). 735 return emptyString(); 736 } 737 732 738 String LocaleWin::timeFormat() 733 739 { -
trunk/Source/WebCore/platform/text/LocaleWin.h
r129912 r130127 58 58 59 59 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 60 virtual String dateFormat() OVERRIDE; 60 61 virtual String timeFormat() OVERRIDE; 61 62 virtual String shortTimeFormat() OVERRIDE; -
trunk/Source/WebCore/platform/text/Localizer.h
r129973 r130127 58 58 String localizedDecimalSeparator(); 59 59 60 // Returns date format in Unicode TR35 LDML[1] containing day of month, 61 // month, and year, e.g. "dd/mm/yyyy" 62 // [1] LDML http://unicode.org/reports/tr35/#Date_Format_Patterns 63 virtual String dateFormat() = 0; 64 60 65 // Returns time format in Unicode TR35 LDML[1] containing hour, minute, and 61 66 // second with optional period(AM/PM), e.g. "h:mm:ss a" 62 // [1] LDML http://unicode.org/reports/tr35/ tr35-6.html#Date_Format_Patterns67 // [1] LDML http://unicode.org/reports/tr35/#Date_Format_Patterns 63 68 virtual String timeFormat(); 64 69 -
trunk/Source/WebCore/platform/text/mac/LocaleMac.h
r129912 r130127 62 62 63 63 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 64 virtual String dateFormat() OVERRIDE; 64 65 virtual String timeFormat() OVERRIDE; 65 66 virtual String shortTimeFormat() OVERRIDE; -
trunk/Source/WebCore/platform/text/mac/LocaleMac.mm
r129973 r130127 253 253 } 254 254 255 String LocaleMac::dateFormat() 256 { 257 // FIXME: We should have real implementation of LocaleMac::dateFormat(). 258 return emptyString(); 259 } 260 255 261 String LocaleMac::timeFormat() 256 262 {
Note: See TracChangeset
for help on using the changeset viewer.