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

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

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, 4 months 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.cc
diff --git a/content/public/common/color_suggestion.cc b/content/public/common/color_suggestion.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a95b4d9dabeb4dd2fbe5c32fb480cebfee330430
--- /dev/null
+++ b/content/public/common/color_suggestion.cc
@@ -0,0 +1,15 @@
+// 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.
+
+#include "content/public/common/color_suggestion.h"
+
+namespace content {
+
+ColorSuggestion::ColorSuggestion(const WebKit::WebColorSuggestion& suggestion)
+ : value_as_color(suggestion.valueAsColor),
+ value_as_text(suggestion.valueAsText),
+ label(suggestion.label) {
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698