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

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

Issue 1878493002: ASSERT_NOT_REACHED() -> NOTREACHED() in web. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 components.setMillisecondsSinceEpochForDate(value); 92 components.setMillisecondsSinceEpochForDate(value);
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 NOTREACHED();
103 return components.getType() == DateComponents::Invalid ? String() : componen ts.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) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void DateTimeChooserImpl::didClosePopup() 205 void DateTimeChooserImpl::didClosePopup()
206 { 206 {
207 DCHECK(m_client); 207 DCHECK(m_client);
208 m_popup = nullptr; 208 m_popup = nullptr;
209 m_client->didEndChooser(); 209 m_client->didEndChooser();
210 } 210 }
211 211
212 } // namespace blink 212 } // namespace blink
213 213
214 #endif // ENABLE(INPUT_MULTIPLE_FIELDS_UI) 214 #endif // ENABLE(INPUT_MULTIPLE_FIELDS_UI)
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | third_party/WebKit/Source/web/LocalFileSystemClient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698