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

Side by Side Diff: third_party/WebKit/Source/web/DateTimeChooserImpl.cpp

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 years, 9 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
OLDNEW
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 else if (type == InputTypeNames::datetime_local) 93 else if (type == InputTypeNames::datetime_local)
94 components.setMillisecondsSinceEpochForDateTimeLocal(value); 94 components.setMillisecondsSinceEpochForDateTimeLocal(value);
95 else if (type == InputTypeNames::month) 95 else if (type == InputTypeNames::month)
96 components.setMonthsSinceEpoch(value); 96 components.setMonthsSinceEpoch(value);
97 else if (type == InputTypeNames::time) 97 else if (type == InputTypeNames::time)
98 components.setMillisecondsSinceMidnight(value); 98 components.setMillisecondsSinceMidnight(value);
99 else if (type == InputTypeNames::week) 99 else if (type == InputTypeNames::week)
100 components.setMillisecondsSinceEpochForWeek(value); 100 components.setMillisecondsSinceEpochForWeek(value);
101 else 101 else
102 ASSERT_NOT_REACHED(); 102 ASSERT_NOT_REACHED();
103 return components.type() == DateComponents::Invalid ? String() : components. toString(); 103 return components.getType() == DateComponents::Invalid ? String() : componen ts.toString();
104 } 104 }
105 105
106 void DateTimeChooserImpl::writeDocument(SharedBuffer* data) 106 void DateTimeChooserImpl::writeDocument(SharedBuffer* data)
107 { 107 {
108 String stepString = String::number(m_parameters.step); 108 String stepString = String::number(m_parameters.step);
109 String stepBaseString = String::number(m_parameters.stepBase, 11, WTF::Trunc ateTrailingZeros); 109 String stepBaseString = String::number(m_parameters.stepBase, 11, WTF::Trunc ateTrailingZeros);
110 String todayLabelString; 110 String todayLabelString;
111 String otherDateLabelString; 111 String otherDateLabelString;
112 if (m_parameters.type == InputTypeNames::month) { 112 if (m_parameters.type == InputTypeNames::month) {
113 todayLabelString = locale().queryString(WebLocalizedString::ThisMonthBut tonLabel); 113 todayLabelString = locale().queryString(WebLocalizedString::ThisMonthBut tonLabel);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 void DateTimeChooserImpl::didClosePopup() 206 void DateTimeChooserImpl::didClosePopup()
207 { 207 {
208 ASSERT(m_client); 208 ASSERT(m_client);
209 m_popup = nullptr; 209 m_popup = nullptr;
210 m_client->didEndChooser(); 210 m_client->didEndChooser();
211 } 211 }
212 212
213 } // namespace blink 213 } // namespace blink
214 214
215 #endif // ENABLE(INPUT_MULTIPLE_FIELDS_UI) 215 #endif // ENABLE(INPUT_MULTIPLE_FIELDS_UI)
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/TextBreakIterator.h ('k') | third_party/WebKit/Source/web/WebImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698