OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/date_time_formatter.h" | 5 #include "content/renderer/date_time_formatter.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "third_party/WebKit/public/platform/WebCString.h" | 9 #include "third_party/WebKit/public/platform/WebCString.h" |
10 #include "third_party/WebKit/public/web/WebDateTimeChooserParams.h" | 10 #include "third_party/WebKit/public/web/WebDateTimeChooserParams.h" |
11 #include "third_party/icu/public/i18n/unicode/smpdtfmt.h" | 11 #include "third_party/icu/source/i18n/unicode/smpdtfmt.h" |
12 | 12 |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 void DateTimeFormatter::CreatePatternMap() { | 16 void DateTimeFormatter::CreatePatternMap() { |
17 // Initialize all the UI elements with empty patterns, | 17 // Initialize all the UI elements with empty patterns, |
18 // then fill in the ones that are actually date/time inputs and | 18 // then fill in the ones that are actually date/time inputs and |
19 // are implemented. | 19 // are implemented. |
20 for (int i = 0 ; i <= ui::TEXT_INPUT_TYPE_MAX; ++i) { | 20 for (int i = 0 ; i <= ui::TEXT_INPUT_TYPE_MAX; ++i) { |
21 patterns_[i] = ""; | 21 patterns_[i] = ""; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 month_ = 0; | 218 month_ = 0; |
219 day_ = 0; | 219 day_ = 0; |
220 hour_ = 0; | 220 hour_ = 0; |
221 minute_ = 0; | 221 minute_ = 0; |
222 second_ = 0; | 222 second_ = 0; |
223 week_year_ = 0; | 223 week_year_ = 0; |
224 week_ = 0; | 224 week_ = 0; |
225 } | 225 } |
226 | 226 |
227 } // namespace content | 227 } // namespace content |
OLD | NEW |