OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 virtual const Vector<String>& shortStandAloneMonthLabels() = 0; | 111 virtual const Vector<String>& shortStandAloneMonthLabels() = 0; |
112 | 112 |
113 // Returns localized period field(AM/PM) strings. | 113 // Returns localized period field(AM/PM) strings. |
114 virtual const Vector<String>& timeAMPMLabels() = 0; | 114 virtual const Vector<String>& timeAMPMLabels() = 0; |
115 | 115 |
116 // Returns a vector of string of which size is 12. The first item is a | 116 // Returns a vector of string of which size is 12. The first item is a |
117 // localized string of January, and the last item is a localized string of | 117 // localized string of January, and the last item is a localized string of |
118 // December. These strings should not be abbreviations. | 118 // December. These strings should not be abbreviations. |
119 virtual const Vector<String>& monthLabels() = 0; | 119 virtual const Vector<String>& monthLabels() = 0; |
120 | 120 |
121 #if ENABLE(CALENDAR_PICKER) | |
122 // Returns a vector of string of which size is 7. The first item is a | 121 // Returns a vector of string of which size is 7. The first item is a |
123 // localized short string of Monday, and the last item is a localized | 122 // localized short string of Monday, and the last item is a localized |
124 // short string of Saturday. These strings should be short. | 123 // short string of Saturday. These strings should be short. |
125 virtual const Vector<String>& weekDayShortLabels() = 0; | 124 virtual const Vector<String>& weekDayShortLabels() = 0; |
126 | 125 |
127 // The first day of a week. 0 is Sunday, and 6 is Saturday. | 126 // The first day of a week. 0 is Sunday, and 6 is Saturday. |
128 virtual unsigned firstDayOfWeek() = 0; | 127 virtual unsigned firstDayOfWeek() = 0; |
129 | 128 |
130 // Returns true if people use right-to-left writing in the locale for this | 129 // Returns true if people use right-to-left writing in the locale for this |
131 // object. | 130 // object. |
132 virtual bool isRTL() = 0; | 131 virtual bool isRTL() = 0; |
133 #endif | |
134 | 132 |
135 enum FormatType { FormatTypeUnspecified, FormatTypeShort, FormatTypeMedium }
; | 133 enum FormatType { FormatTypeUnspecified, FormatTypeShort, FormatTypeMedium }
; |
136 | 134 |
137 // Serializes the specified date into a formatted date string to | 135 // Serializes the specified date into a formatted date string to |
138 // display to the user. If an implementation doesn't support | 136 // display to the user. If an implementation doesn't support |
139 // localized dates the function should return an empty string. | 137 // localized dates the function should return an empty string. |
140 // FormatType can be used to specify if you want the short format. | 138 // FormatType can be used to specify if you want the short format. |
141 String formatDateTime(const DateComponents&, FormatType = FormatTypeUnspecif
ied); | 139 String formatDateTime(const DateComponents&, FormatType = FormatTypeUnspecif
ied); |
142 | 140 |
143 virtual ~Locale(); | 141 virtual ~Locale(); |
(...skipping 17 matching lines...) Expand all Loading... |
161 String m_decimalSymbols[DecimalSymbolsSize]; | 159 String m_decimalSymbols[DecimalSymbolsSize]; |
162 String m_positivePrefix; | 160 String m_positivePrefix; |
163 String m_positiveSuffix; | 161 String m_positiveSuffix; |
164 String m_negativePrefix; | 162 String m_negativePrefix; |
165 String m_negativeSuffix; | 163 String m_negativeSuffix; |
166 bool m_hasLocaleData; | 164 bool m_hasLocaleData; |
167 }; | 165 }; |
168 | 166 |
169 } | 167 } |
170 #endif | 168 #endif |
OLD | NEW |