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

Unified Diff: public/web/WebDateTimeChooserParams.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: public/web/WebDateTimeChooserParams.h
diff --git a/public/web/WebDateTimeChooserParams.h b/public/web/WebDateTimeChooserParams.h
index 1adc445695b505cf64321cd85ad645085ca36b35..fe00b83ec91b521669cc607c5a57a2afed9e8029 100644
--- a/public/web/WebDateTimeChooserParams.h
+++ b/public/web/WebDateTimeChooserParams.h
@@ -30,6 +30,7 @@
#include "../platform/WebString.h"
#include "../platform/WebVector.h"
#include "WebDateTimeInputType.h"
+#include "WebDateTimeSuggestion.h"
namespace WebKit {
@@ -41,18 +42,10 @@ struct WebDateTimeChooserParams {
// Bounding rectangle of the requester element.
WebRect anchorRectInScreen;
// The current value of the requester element.
- WebString currentValue;
- // <datalist> option values associated to the requester element. These
- // values should not be shown to users. The vector size might be 0.
- WebVector<WebString> suggestionValues;
- // Localized values of <datalist> options associated to the requester
- // element. These values should be shown to users. The vector size must be
- // same as suggestionValues size.
- WebVector<WebString> localizedSuggestionValues;
- // <datalist> option labels associated to the requester element. These
- // values should be shown to users. The vector size must be same as
- // suggestionValues size.
- WebVector<WebString> suggestionLabels;
+ double currentValue;
tkent 2013/11/07 01:43:10 You can't change the type now because it breaks Ch
+ // <datalist> option suggestions associated to the requester element. The
+ // vector size might be 0.
+ WebVector<WebDateTimeSuggestion> suggestions;
// HTMLInputElement::min attribute value parsed in the valusAsNumber rule,
// that is to say, milliseconds from the epoch for non-month types and
// months from the epoch for month type. If the min attribute is missing,

Powered by Google App Engine
This is Rietveld 408576698