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

Unified Diff: Source/platform/DateTimeChooser.h

Issue 23623017: Prepare for date/time input datalist support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
Index: Source/platform/DateTimeChooser.h
diff --git a/Source/platform/DateTimeChooser.h b/Source/platform/DateTimeChooser.h
index 1b3da625dfa3697773da8c4551a25e9339153442..510c0971ec24a1811e1629671bc247845202974d 100644
--- a/Source/platform/DateTimeChooser.h
+++ b/Source/platform/DateTimeChooser.h
@@ -38,6 +38,12 @@
namespace WebCore {
+struct DateTimeSuggestion {
+ double value;
+ String localizedValue;
+ String label;
+};
+
struct DateTimeChooserParameters {
AtomicString type;
IntRect anchorRectInRootView;
@@ -45,10 +51,8 @@ struct DateTimeChooserParameters {
// might be an invalid name because it comes from HTML lang
// attributes.
AtomicString locale;
- String currentValue;
- Vector<String> suggestionValues;
- Vector<String> localizedSuggestionValues;
- Vector<String> suggestionLabels;
+ double currentValue;
+ Vector<DateTimeSuggestion> suggestions;
double minimum;
double maximum;
double step;

Powered by Google App Engine
This is Rietveld 408576698