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

Unified Diff: content/renderer/date_time_suggestion_builder.cc

Issue 23623019: Support datalist for date/time input types on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/date_time_suggestion_builder.h ('k') | content/renderer/renderer_date_time_picker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/date_time_suggestion_builder.cc
diff --git a/content/renderer/date_time_suggestion_builder.cc b/content/renderer/date_time_suggestion_builder.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4320ceae1843f2ef91a465acc3035c9658381f2d
--- /dev/null
+++ b/content/renderer/date_time_suggestion_builder.cc
@@ -0,0 +1,22 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/renderer/date_time_suggestion_builder.h"
+
+#include "content/common/date_time_suggestion.h"
+#include "third_party/WebKit/public/web/WebDateTimeSuggestion.h"
+
+namespace content {
+
+// static
+DateTimeSuggestion DateTimeSuggestionBuilder::Build(
+ const blink::WebDateTimeSuggestion& suggestion) {
+ DateTimeSuggestion result;
+ result.value = suggestion.value;
+ result.localized_value = suggestion.localizedValue;
+ result.label = suggestion.label;
+ return result;
+}
+
+} // namespace content
« no previous file with comments | « content/renderer/date_time_suggestion_builder.h ('k') | content/renderer/renderer_date_time_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698