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

Unified Diff: content/common/date_time_suggestion.h

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/browser/web_contents/web_contents_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/date_time_suggestion.h
diff --git a/content/common/date_time_suggestion.h b/content/common/date_time_suggestion.h
new file mode 100644
index 0000000000000000000000000000000000000000..ce35430ca816efdd5cf6803ce6d0dca0a640e26e
--- /dev/null
+++ b/content/common/date_time_suggestion.h
@@ -0,0 +1,31 @@
+// Copyright 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.
+
+#ifndef CONTENT_COMMON_DATE_TIME_SUGGESTION_H_
+#define CONTENT_COMMON_DATE_TIME_SUGGESTION_H_
+
+#include <vector>
+
+#include "base/strings/string16.h"
+#include "content/common/content_export.h"
+#include "third_party/skia/include/core/SkColor.h"
+
+namespace content {
+
+// Container for information about datalist suggestion for the date/time input
+// control. Keep in sync with DateTimeSuggestion.java
+struct CONTENT_EXPORT DateTimeSuggestion {
+ DateTimeSuggestion() {}
+
+ // The date/time value represented as a double.
+ double value;
+ // The localized value to be shown to the user.
+ base::string16 localized_value;
+ // The label for the suggestion.
+ base::string16 label;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_DATE_TIME_SUGGESTION_H_
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698