Chromium Code Reviews| Index: content/public/common/color_suggestion.h |
| diff --git a/content/public/common/color_suggestion.h b/content/public/common/color_suggestion.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..625510f6fac64fc98bc8445b980955fd2f8c72f9 |
| --- /dev/null |
| +++ b/content/public/common/color_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_PUBLIC_COMMON_COLOR_SUGGESTION_H_ |
| +#define CONTENT_PUBLIC_COMMON_COLOR_SUGGESTION_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/strings/string16.h" |
| +#include "content/common/content_export.h" |
| +#include "third_party/WebKit/public/web/WebColorSuggestion.h" |
| +#include "third_party/skia/include/core/SkColor.h" |
| + |
| +namespace content { |
| + |
| +// Container for information about datalist suggestion for the color input |
| +// control. |
| +struct CONTENT_EXPORT ColorSuggestion { |
| + |
| + ColorSuggestion() { } |
|
newt (away)
2013/08/26 20:23:20
is it OK to put this constructor definition in the
keishi
2013/08/29 05:04:11
Moved to cc file.
|
| + ColorSuggestion(const WebKit::WebColorSuggestion& suggestion); |
|
newt (away)
2013/08/26 20:23:20
should be "explicit"
keishi
2013/08/29 03:40:47
Done.
|
| + |
| + SkColor value_as_color; |
| + base::string16 value_as_text; |
| + base::string16 label; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_COMMON_COLOR_SUGGESTION_H_ |