Chromium Code Reviews| 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..6453fd496027748bd252859bfe2d10ae086cba20 |
| --- /dev/null |
| +++ b/content/common/date_time_suggestion.h |
| @@ -0,0 +1,37 @@ |
| +// 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/skia/include/core/SkColor.h" |
| + |
| +namespace blink { |
| +struct WebDateTimeSuggestion; |
| +} |
|
bulach
2013/12/04 10:37:54
nit: // namespace blink
keishi
2013/12/04 12:21:24
Done.
|
| + |
| +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 blink::WebDateTimeSuggestion& suggestion); |
|
jam
2013/12/04 06:25:53
this shouldn't be declared in content/common and d
keishi
2013/12/04 12:21:24
Done.
|
| + |
| + // 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_PUBLIC_COMMON_DATE_TIME_SUGGESTION_H_ |