summaryrefslogtreecommitdiffstats
path: root/content/renderer/date_time_formatter.h
diff options
context:
space:
mode:
authoranton@chromium.org <anton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-16 14:59:09 +0000
committeranton@chromium.org <anton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-16 14:59:09 +0000
commitee59cbecde3b8b22c15609f51528173482a819df (patch)
tree65dc6d5cb1801898fe65ae6fa09527816c18dab7 /content/renderer/date_time_formatter.h
parentb54de4ef76ec4b8e5ab7f9121a09b98adb92f088 (diff)
downloadchromium_src-ee59cbecde3b8b22c15609f51528173482a819df.zip
chromium_src-ee59cbecde3b8b22c15609f51528173482a819df.tar.gz
chromium_src-ee59cbecde3b8b22c15609f51528173482a819df.tar.bz2
Support for seconds and milliseconds in the time input dialog.
C++ reformatting by "git cl format". Previously LGTM in https://codereview.chromium.org/21907003/ TBR=jochen,bulach,palmer BUG=164563 TEST=RendererDateTimePickerTest.* Review URL: https://chromiumcodereview.appspot.com/22921005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/date_time_formatter.h')
-rw-r--r--content/renderer/date_time_formatter.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/content/renderer/date_time_formatter.h b/content/renderer/date_time_formatter.h
index ad4c020..b2b7341 100644
--- a/content/renderer/date_time_formatter.h
+++ b/content/renderer/date_time_formatter.h
@@ -20,15 +20,21 @@ struct WebDateTimeChooserParams;
namespace content {
// Converts between a text string representing a date/time and
-// a set of year/month/day/hour/minute/second and vice versa.
+// a set of year/month/day/hour/minute/second/milli and vice versa.
// It is timezone agnostic.
class CONTENT_EXPORT DateTimeFormatter {
public:
explicit DateTimeFormatter(const WebKit::WebDateTimeChooserParams& source);
- DateTimeFormatter(
- ui::TextInputType type,
- int year, int month, int day, int hour, int minute, int second,
- int week_year, int week);
+ DateTimeFormatter(ui::TextInputType type,
+ int year,
+ int month,
+ int day,
+ int hour,
+ int minute,
+ int second,
+ int milli,
+ int week_year,
+ int week);
~DateTimeFormatter();
int GetYear() const;
@@ -37,6 +43,7 @@ class CONTENT_EXPORT DateTimeFormatter {
int GetHour() const;
int GetMinute() const;
int GetSecond() const;
+ int GetMilli() const;
int GetWeekYear() const;
int GetWeek() const;
ui::TextInputType GetType() const;
@@ -53,12 +60,14 @@ class CONTENT_EXPORT DateTimeFormatter {
ui::TextInputType type_;
icu::UnicodeString patterns_[ui::TEXT_INPUT_TYPE_MAX + 1];
+ icu::UnicodeString time_pattern_;
int year_;
int month_;
int day_;
int hour_;
int minute_;
int second_;
+ int milli_;
int week_year_;
int week_;
const icu::UnicodeString* pattern_;