Chromium Code Reviews| Index: content/public/common/date_time_suggestion.h |
| diff --git a/content/public/common/date_time_suggestion.h b/content/public/common/date_time_suggestion.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a9529d703b238a2d252be5f61a5a7ba83519409d |
| --- /dev/null |
| +++ b/content/public/common/date_time_suggestion.h |
| @@ -0,0 +1,34 @@ |
| +// 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_PUBLIC_COMMON_DATE_TIME_SUGGESTION_H_ |
| +#define CONTENT_PUBLIC_COMMON_DATE_TIME_SUGGESTION_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/strings/string16.h" |
| +#include "content/common/content_export.h" |
| +#include "third_party/WebKit/public/web/WebDateTimeChooserParams.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(); |
| + explicit DateTimeSuggestion(const WebKit::WebDateTimeSuggestion& suggestion); |
| + |
| + // The value to suggest. |
| + double value; |
| + // The suggestion value localized. |
| + base::string16 localizedValue; |
|
palmer
2013/11/06 02:29:00
We should localize it on the browser (trusted) sid
keishi
2013/11/06 04:28:46
I don't think we can do that.
We want to show the
|
| + // The label for the suggestion. |
| + base::string16 label; |
|
palmer
2013/11/06 02:29:00
Does the browser side check this for sanity in som
keishi
2013/11/06 04:28:46
We don't do anything right now.
In my next patch
|
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_COMMON_DATE_TIME_SUGGESTION_H_ |