Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: content/renderer/date_time_formatter.cc

Issue 18252003: Replace third_party/icu/public with third_party/icu/source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: roll ICU to 211851 Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/date_time_formatter.h ('k') | content/renderer/date_time_formatter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698