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

Unified Diff: content/public/common/color_suggestion.h

Issue 23026006: Add support for color input datalist on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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: 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..a4a9431a1a39d76f18c1445003c1047613ce9b9d
--- /dev/null
+++ b/content/public/common/color_suggestion.h
@@ -0,0 +1,30 @@
+// 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>
jam 2013/11/07 18:51:57 nit: not needed
keishi 2013/11/13 10:48:12 Done.
+
+#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 {
+
jam 2013/11/07 18:51:57 nti: extra line
keishi 2013/11/13 10:48:12 Done.
+ ColorSuggestion();
+ explicit ColorSuggestion(const WebKit::WebColorSuggestion& suggestion);
jam 2013/11/07 18:51:57 can you inline both of these constructors and then
keishi 2013/11/13 10:48:12 I tried to do this but couldn't. When I had to cha
+
+ SkColor color;
+ base::string16 label;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_COLOR_SUGGESTION_H_

Powered by Google App Engine
This is Rietveld 408576698